Windows Look and Feel?

i wanted to know how i can implement the Windows Look and Feel in my app? thnx guys
[90 byte] By [Alex1989a] at [2007-11-27 1:27:42]
# 1
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
nobbynobbesa at 2007-7-12 0:24:25 > top of Java-index,Desktop,Core GUI APIs...
# 2

i tried what u told me (had to catch a few would be exceptions):

try {

UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());

} catch (ClassNotFoundException ex) {

ex.printStackTrace();

} catch (InstantiationException ex) {

ex.printStackTrace();

} catch (IllegalAccessException ex) {

ex.printStackTrace();

} catch (UnsupportedLookAndFeelException ex) {

ex.printStackTrace();

}

but for some reason only a few components have the windows look and feel, the rest have the java look and feel. do u know why this could be?

Alex1989a at 2007-7-12 0:24:25 > top of Java-index,Desktop,Core GUI APIs...
# 3
bump
Alex1989a at 2007-7-12 0:24:25 > top of Java-index,Desktop,Core GUI APIs...
# 4
Stop bumping. Set the LAF before you create your first frame (in the main method).
kirillga at 2007-7-12 0:24:25 > top of Java-index,Desktop,Core GUI APIs...
# 5
What he said. May as well make it the first thing you do in main. http://java.sun.com/docs/books/tutorial/uiswing/lookandfeel/plaf.html
pthorsona at 2007-7-12 0:24:25 > top of Java-index,Desktop,Core GUI APIs...
# 6
thnx guys, solved my problem :)
Alex1989a at 2007-7-12 0:24:25 > top of Java-index,Desktop,Core GUI APIs...