My environment is JDK6. And I test my code in Win7 and Win2003 both using the same JRE.
I installed JAVA WindowsLookAndFeel using code "UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");".
I supposed UI should behave consistently in Win7 and Win2003 after I installed WindowsLookAndFeel. I think it should be different from using code "UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());"which is OS-related. But the truth is UI looks like Win7 in Win7, looks like Win2003 in Win2003. I read source code of WindowsLookAndFeel and found if windows NT version is less than 4.0, WindowsLookAndFeel will use WindowsClassicLookAndFeel instead. But Win2003's windows NT version is 5.2.
And even CrossPlatformLookAndFeelClassName also has a different java look in Win7 and Win2003.
Can you explain it? I am really confused.
Can I have same UI on different windows OS by installing WindowsLookAndFeel? Thank you.