* better toString() which is used by swing for copy & paste

This commit is contained in:
Reinhard Pointner 2009-10-22 15:47:16 +00:00
parent 6f95136431
commit 5ef573799f
1 changed files with 10 additions and 1 deletions

View File

@ -176,7 +176,7 @@ class EpisodeBindingDialog extends JDialog {
@Override
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);
super.getTableCellRendererComponent(table, null, isSelected, hasFocus, row, column);
@SuppressWarnings("unchecked")
Future<String> future = (Future<String>) value;
@ -440,6 +440,15 @@ class EpisodeBindingDialog extends JDialog {
return value;
}
@Override
public String toString() {
try {
return get(0, TimeUnit.SECONDS);
} catch (Exception e) {
return null;
}
}
}