git://git.nikiroo.be
/
fanfix.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
DelayWorker: now delays on work done, not on work scheduled
[fanfix.git]
/
src
/
be
/
nikiroo
/
fanfix_swing
/
gui
/
DetailsPanel.java
diff --git
a/src/be/nikiroo/fanfix_swing/gui/DetailsPanel.java
b/src/be/nikiroo/fanfix_swing/gui/DetailsPanel.java
index ced9c3b939f50d59e038bad8321faa17f001d23c..751e37f511c5ed58fda8a7f7aa1885495755e5ea 100644
(file)
--- a/
src/be/nikiroo/fanfix_swing/gui/DetailsPanel.java
+++ b/
src/be/nikiroo/fanfix_swing/gui/DetailsPanel.java
@@
-85,11
+85,15
@@
public class DetailsPanel extends JPanel {
if (info == null) {
name.setText(null);
opt.setText(null);
if (info == null) {
name.setText(null);
opt.setText(null);
+ } else if (info.getMainInfo() == null) {
+ name.setText("All the " + info.getType().toString().toLowerCase() + "s");
+ opt.setText(info.getSecondaryInfo(true));
} else {
final String myId = info.getId();
name.setText(info.getMainInfo());
opt.setText(info.getSecondaryInfo(true));
} else {
final String myId = info.getId();
name.setText(info.getMainInfo());
opt.setText(info.getSecondaryInfo(true));
+
new SwingWorker<Image, Void>() {
@Override
protected Image doInBackground() throws Exception {
new SwingWorker<Image, Void>() {
@Override
protected Image doInBackground() throws Exception {