Netbeans using old java theme look!

View: New views
5 Messages — Rating Filter:   Alert me  

Netbeans using old java theme look!

by tobiaswk :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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!

by Anuradha G :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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:

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:
http://www.nabble.com/file/p14339758/netbeansprob.jpg

Best regards Tobias
Hope on a solution! :)
--
View this message in context: http://www.nabble.com/Netbeans-using-old-java-theme-look%21-tp14339758p14339758.html
Sent from the Netbeans - UI mailing list archive at Nabble.com.



--
Anuradha G

Re: Netbeans using old java theme look!

by Ann Sunhachawee :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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!

by tobiaswk :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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! :)

Anuradha G wrote:
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@gmail.com> 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 screenshot showing the problem:
> http://www.nabble.com/file/p14339758/netbeansprob.jpg
>
> Best regards Tobias
> Hope on a solution! :)
> --
> View this message in context:
> http://www.nabble.com/Netbeans-using-old-java-theme-look%21-tp14339758p14339758.html
> Sent from the Netbeans - UI mailing list archive at Nabble.com.
>



--
Anuradha G

Re: Netbeans using old java theme look!

by tobiaswk :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I've sorted the problem myself. The solutions was to add a Panel on the frame.


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! :)

Anuradha G wrote:
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@gmail.com> 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 screenshot showing the problem:
> http://www.nabble.com/file/p14339758/netbeansprob.jpg
>
> Best regards Tobias
> Hope on a solution! :)
> --
> View this message in context:
> http://www.nabble.com/Netbeans-using-old-java-theme-look%21-tp14339758p14339758.html
> Sent from the Netbeans - UI mailing list archive at Nabble.com.
>



--
Anuradha G

LightInTheBox - Buy quality products at wholesale price!