- Programmatically
- System Property
- Globally
UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName());
java -Dswing.defaultlaf=javax.swing.plaf.nimbus.NimbusLookAndFeel MyApp
Add the following line to the $JAVA_HOME/lib/swing.properties:
swing.defaultlaf=javax.swing.plaf.nimbus.NimbusLookAndFeel
For details see https://docs.oracle.com/javase/tutorial/uiswing/lookandfeel/nimbus.html.
No comments:
Post a Comment