JPanel mainPanelValues = new JPanel();
mainPanelValues
.setLayout(new BoxLayout(mainPanelValues, BoxLayout.Y_AXIS));
+ mainPanelValues.setBackground(UIManager.getColor("List.background"));
mainPanel.add(mainPanelKeys, BorderLayout.WEST);
mainPanel.add(UIUtils.scroll(mainPanelValues, true, false),
jKey.getFont().getSize()));
jKey.setEditable(false);
jKey.setLineWrap(false);
+ jKey.setOpaque(false);
jKey.setBackground(trans);
listenables.add(jKey);
mainPanelKeys.add(jKey);
final JTextArea jValue = new JTextArea(desc.get(key));
jValue.setEditable(false);
jValue.setLineWrap(false);
+ jValue.setOpaque(false);
+ jValue.setBackground(trans);
listenables.add(jValue);
mainPanelValues.add(jValue);
-
- mainPanelValues.setBackground(jValue.getBackground());
}
// Image
area.setCaretPosition(0);
area.scrollRectToVisible(new Rectangle());
+ // To work around the fact that sometimes the space of the
+ // descpane is kept and the title bar has to take it
+ Rectangle pos = getBounds();
+ pack();
+ setBounds(pos);
+
// So we can use the keyboard navigation even after a
// toolbar click
area.requestFocus();