Every time I run my Java SE(swing) program it runs with Nimbus Look and Feel, but my design is based on Windows Look and Feel, how can I make it so that my default program running has Windows look and feel and not Nimbus?
I have searched in few places, they are saying to change "Nimbus" to "Windows" which does not work for me.
try {
for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
if ("Nimbus".equals(info.getName())) {
javax.swing.UIManager.setLookAndFeel(info.getClassName());
break;
}
}
} catch (ClassNotFoundException ex) {
java.util.logging.Logger.getLogger(ValidFileGui.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (InstantiationException ex) {
java.util.logging.Logger.getLogger(ValidFileGui.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (IllegalAccessException ex) {
java.util.logging.Logger.getLogger(ValidFileGui.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (javax.swing.UnsupportedLookAndFeelException ex) {
java.util.logging.Logger.getLogger(ValidFileGui.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
}