Quote:
Originally Posted by SuF
You can set the look and feel of it.... Jimmy does it a lot... I never have because I don't care. InbeforeJimmy.
|
I lol'ed.
First of all, the first window is seen under the Aero theme on Vista, whereas the second is seen on Windows XP. This accounts for the clear frame, as opposed to the blue one. This can be observed in Java programs that don't change the LookAndFeel at all (Example:
JMacro back in 2007). If you want your Java applications to have a more native-looking LookAndFeel, as opposed to the default MetalLookAndFeel (the cross-platform one), then you have several options.
- Use AWT. The downside to this is that most of your components will look rather old.
- Use SWT. The downside to this is that you have to include external libraries with your application. This, like AWT, is a wrapper to native GUI components, however these generally look more modern than AWT components.
- Use Swing, but call the setLookAndFeel() method in the UIManager class. This is probably the easiest solution, as you can still make all of your GUI in Swing. The code for doing this would be placed before you create your GUI, and would be something along the lines of:
Code:
UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName());
Hope I helped.