Friday, February 10, 2006

Swing: look and feel

system default:
javax.swing.UIManager.setLookAndFeel (
javax.swing.UIManager.getSystemLookAndFeelClassName() );


windows:
javax.swing.UIManager.setLookAndFeel(
"com.sun.java.swing.plaf.windows.WindowsLookAndFeel" );

motif:
javax.swing.UIManager.setLookAndFeel(
"com.sun.java.swing.plaf.motif.MotifLookAndFeel");

No comments: