Question

I made a simple Jframe with its child components in netbeans, when i run the application it shows it in NIMBUZZ lookandfeel as shown below:-

This is what i have

But I want it to be always shown in WINDOWS lookandfeel as shown below :-

This is what i want

How am I suppose to do that??

Was it helpful?

Solution

Before creating your first window call this code:

UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());

note that this will work as expected only under windows where this is the system LAF

OTHER TIPS

You maybe looking for setWindowDecorationStyle(), although some L&Fs may not support the feature. A complete example is cited here.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top