By default, “Look and Feel” is metallic, which is good and good for cross-platform applications.
JDK has 4 built-in "looks" (now so far):
- com.sun.java.swing.plaf.gtk.GTKLookAndFeel
- javax.swing.plaf.metal.MetalLookAndFeel
- com.sun.java.swing.plaf.windows.WindowsLookAndFeel
- com.sun.java.swing.plaf.motif.MotifLookAndFeel
you can try any of these “looks and sensations” in 1 line, for example code:
UIManager.setLookAndFeel("com.sun.java.swing.plaf.motif.MotifLookAndFeel");
NOTE: call / call this method of changing the "appearance" before any GUI implementation or throw some kind of exception
source share