?
=?iso-8859-1?Q?Nils_O=2E_Sel=E5sdal?=
try {
//load a L&F that works first.
UIManager.setLookAndFeel("com.sun.java.swing.plaf.gtk.GTKLookAndFeel");
System.setProperty("os.name", "Windows");
System.setProperty("os.version", "5.1");
UIManager.setLookAndFeel(
"com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
} catch (Exception ex) {
ex.printStackTrace();
}
This is actually quite imortant to me, as I have to assure my GUI's
also looks good with the windows L&F.
//load a L&F that works first.
UIManager.setLookAndFeel("com.sun.java.swing.plaf.gtk.GTKLookAndFeel");
System.setProperty("os.name", "Windows");
System.setProperty("os.version", "5.1");
UIManager.setLookAndFeel(
"com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
} catch (Exception ex) {
ex.printStackTrace();
}
This is actually quite imortant to me, as I have to assure my GUI's
also looks good with the windows L&F.