JFrame.setDefaultLookAndFeelDecorated(true);
JDialog.setDefaultLookAndFeelDecorated(true);
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
try {
UIManager
.setLookAndFeel("org.jvnet.substance.SubstanceLookAndFeel");
} catch (Exception e) {e.printStackTrace();}
}
});
if (null != comm) {
SwingUtilities.updateComponentTreeUI(comm);
}// end if
1