setLayout(new BorderLayout());
add(desc, BorderLayout.NORTH);
- this.setSize(800, desc.getHeight() + 0);
+ this.setSize(600, desc.getHeight() + 0);
}
@Override
- public void setVisible(boolean b) {
+ public void setVisible(final boolean b) {
super.setVisible(b);
if (b) {
int titleBarHeight = Math
.abs(getContentPane().getHeight() - getHeight());
-
this.setSize(600, desc.getHeight() + titleBarHeight);
}
}
Map<String, String> desc = BasicReader.getMetaDesc(meta);
Color trans = new Color(0, 0, 0, 1);
- Color base = mainPanelValues.getBackground();
for (String key : desc.keySet()) {
JTextArea jKey = new JTextArea(key);
jKey.setFont(new Font(jKey.getFont().getFontName(), Font.BOLD,
final JTextArea jValue = new JTextArea(desc.get(key));
jValue.setEditable(false);
jValue.setLineWrap(false);
- jValue.setBackground(base);
listenables.add(jValue);
mainPanelValues.add(jValue);
+
+ mainPanelValues.setBackground(jValue.getBackground());
}
// Image