|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
Netbeans using old java theme look!Hello.
I have a weird and very annoying problem. When I compile and run I get "the old" java theme look instead of the native system look. It has done this since I upgraded to version 6.0 final of netbeans. The really weird thing is that in the GUI builder I have the native windows xp look, like it should be, but not when compile and run. Here is a screenshot showing the problem: ![]() Best regards Tobias Hope on a solution! :) |
|
|
Re: Netbeans using old java theme look!you have put this code to main method
try { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch (ClassNotFoundException ex) { Exceptions.printStackTrace (ex); } catch (InstantiationException ex) { Exceptions.printStackTrace(ex); } catch (IllegalAccessException ex) { Exceptions.printStackTrace(ex); } catch (UnsupportedLookAndFeelException ex) { Exceptions.printStackTrace(ex); } } On Dec 15, 2007 1:14 AM, tobiaswk <tobiaswk@...> wrote:
-- Anuradha G |
|
|
Re: Netbeans using old java theme look!FYI for future - This type of question best for nbdiscuss list.
That said, Try adding the code to directly set the look&feel. http://java.sun.com/docs/books/tutorial/uiswing/lookandfeel/plaf.html Search for "Programatically Setting the Look and Feel" tobiaswk wrote: > Hello. > > I have a weird and very annoying problem. When I compile and run I get "the > old" java theme look instead of the native system look. It has done this > since I upgraded to version 6.0 final of netbeans. The really weird thing is > that in the GUI builder I have the native windows xp look, like it should > be, but not when compile and run. > > Here is a screenshow showing my problem: > http://www.nabble.com/file/p14339758/netbeansprob.jpg > > Best regards Tobias > Hope on a solution! :) > |
|
|
Re: Netbeans using old java theme look!Thank you! Its partially working now. Now I only have one problem... if you look at this screenshot you will notice that the background colour is not using the system-look. I cant even change the background to correct the problem. What is the problem?
![]() Best regards Tobias and thank you for your help so far! :)
|
|
|
Re: Netbeans using old java theme look!I've sorted the problem myself. The solutions was to add a Panel on the frame.
|
| Free Forum Powered by Nabble | Forum Help |