Change order of tree line entries

This commit is contained in:
2020-02-08 21:09:59 +00:00
parent 356d95191b
commit 5f34c57b23
@@ -96,31 +96,32 @@ public class BookTreeRenderer extends DefaultTreeCellRenderer {
ctx.anchor = GridBagConstraints.LINE_START; ctx.anchor = GridBagConstraints.LINE_START;
p.add(ret, ctx); p.add(ret, ctx);
if (s.isProcessing()) {
JLabel eff = new JLabel();
eff.setIcon(Icons.processing);
ctx.weightx = 0.0d;
ctx.gridx = 1;
p.add(eff);
} else if (s.isQueued()) {
JLabel eff = new JLabel();
eff.setIcon(Icons.queued);
ctx.weightx = 0.0d;
ctx.gridx = 1;
p.add(eff);
}
String effectChain = s.getEffectChain(); String effectChain = s.getEffectChain();
if ((effectChain != null) && (!effectChain.equals("none"))) { if ((effectChain != null) && (!effectChain.equals("none"))) {
Effect e = AudiobookRecorder.window.getBook().effects.get(effectChain); Effect e = AudiobookRecorder.window.getBook().effects.get(effectChain);
if (e != null) { if (e != null) {
JLabel eff = new JLabel(e.toString() + " "); JLabel eff = new JLabel(e.toString() + " ");
ctx.weightx = 0.0d; ctx.weightx = 0.0d;
ctx.gridx = 2; ctx.gridx = 1;
p.add(eff); p.add(eff);
} }
} }
if (s.isProcessing()) {
JLabel eff = new JLabel();
eff.setIcon(Icons.processing);
ctx.weightx = 0.0d;
ctx.gridx = 2;
p.add(eff);
} else if (s.isQueued()) {
JLabel eff = new JLabel();
eff.setIcon(Icons.queued);
ctx.weightx = 0.0d;
ctx.gridx = 2;
p.add(eff);
}
ctx.weightx = 0.0d; ctx.weightx = 0.0d;
ctx.gridx = 3; ctx.gridx = 3;
ctx.anchor = GridBagConstraints.LINE_END; ctx.anchor = GridBagConstraints.LINE_END;