문제

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