Search code examples
javaswingnetbeanslook-and-feelnimbus

netbeans java se swing components' look switch to the old


I am using NetBeans 7.2.1, I want to create a Java SE Frame with Panels, swing components. At the begining, my program's swing components are "beautiful", by the NimbusLookAndFeal. I didn't have to setup anything about it, it was working at the begining. After a while, now the components look like the old. Why is that? Why does my NetBeans change his mind, and doesn't show the nimbuslookandfeel? I know that I can write a code to get the nimbuslookandfeel, but I don't want, because it was working at the begining, and I can't figurate out why does my NetBeans change after a while. Please Help!

Thank you.


Solution

  • I figurate it out! I always delete every comment in the Frames and Panels when I generate them, and in the Frame class, in the main method, the comment contains the nimbuslookandfeel settings! The 16. picture showes it: link