I just set my applications theme to Synthetica Alu Oxide but some reason the JFrame doesn\'t repaint but another Synthetica theme will repaint the JFrame.
This is what m
Swing GUI objects should be constructed and manipulated only on the event dispatch thread, after you've invoked UIManager.setLookAndFeel()
.
try {
UIManager.setLookAndFeel(new SyntheticaAluOxideLookAndFeel());
} catch (UnsupportedLookAndFeelException e) {
e.printStackTrace();
} catch (ParseException e) {
e.printStackTrace();
}
EventQueue.invokeLater(new Runnable() {
public void run() {
JFrame frame = new JFrame();
…
frame.pack(true);
frame.setVisible(true);
}
});