Changing Look&Feel
public void changeLookTo(String cName) {
try { UIManager.setLookAndFeel(cName); }
catch (Exception e) { System.out.println("Could not change l&f"); }
SwingUtilities.updateComponentTreeUI(this);
- "javax.swing.plaf.metal.MetalLookAndFeel";
- "javax.swing.plaf.motif.MotifLookAndFeel";
- “javax.swing.plaf.windows.WindowsLookAndFeel";