try {
UIManager.setLookAndFeel(
UIManager.getSystemLookAndFeelClassName());
}
catch (Exception e) {
e.printStackTrace();
}Even with the new naming mecanism in JDK1.2, some LookAndFeel packages are keeping the oldname.
| Windows | com.sun.java.swing.plaf.windows (no change) |
| Motif | com.sun.java.swing.plaf.motif (no change) |
| Mac | com.sun.java.swing.plaf.mac (no change) |
| Metal | javax.swing.plaf.metal (new) |
| Basic | javax.swing.plaf.basic (new) |
| Multi | javax.swing.plaf.multi (new) |
These packages are located in the rt.jar file.
Written and compiled by Réal Gagnon ©1998-2012
[ home ]