I am working on a project that uses Java Swing. The default look and feel of the Java Swing GUI is very boring. Is there any way I can use a better look and feel? Something like on web pages...
Java Swing is a more prominent GUI component which is part of the Oracles JFC – Java Foundation Classes API. This provides a more sophisticated Graphical interface option to the Java Programs.
setLookAndFeel() method with the fully qualified name of the appropriate subclass of LookAndFeel as its argument.
Default is "Java LAF" (or "Metal"), a custom look and feel similar to the Windows look. 2. Motif look available on all platforms. Windows and Mac looks are only available on their native platforms.
You can set the look and feel to reflect the platform:
try { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch (Exception e) { e.printStackTrace(); }
If this is not nice enough for you, take a look at SWT for Eclipse.
Look at the Java tutorial for setting the look and feel. In addition to those mentioned there, recent Java 6 releases also include the Nimbus Look and Feel.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With