質問

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??

役に立ちましたか?

解決

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

他のヒント

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

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top