dcsimg
Differences in GUI appearence. NetBeans preview vs when run
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   crypt_scrypt
Posted On:   Thursday, November 16, 2006 03:15 PM

I'm running the NetBeans IDE on Windows XP. When I preview the GUI in the NetBeans IDE I get Windows style components (buttons and such). When I build and run the application I get different style components. The buttons are larger and square, instead of round cornered. The default background color in the IDE is beige while when the application is run it is kind of a steel grey.

Does anyone know why they are different? I prefer the look of the GUI in the Netbeans IDE previewer.

TIA

Re: Differences in GUI appearence. NetBeans preview vs when run

Posted By:   Robert_Lybarger  
Posted On:   Friday, December 15, 2006 01:57 PM

Yes, lookup (google for) swing look and feel. Netbeans is using native (windows) look and feel. When not specified otherwise, java on its own runs with metal (java) look and feel. There's a "-D" arg to set it at runtime.

Re: Differences in GUI appearence. NetBeans preview vs when run

Posted By:   Robert_Lybarger  
Posted On:   Thursday, November 16, 2006 07:07 PM

Its a "look and feel" thing. The netbeans IDE is probably setting a look and feel on your behalf when the previewer runs. You can set the look and feel either programmatically or via a "-D" command line argument to "java". The usual Sun java tutorial site covers this rather well.
About | Sitemap | Contact