« Return to Thread: Window Intefrace theme.

Re: Window Intefrace theme.

by abdrabba yassine :: Rate this Message:

Reply to Author | View in Thread

Hi,
Use the UIManager Class to set the Look and Feel that you want :
in the main method insert this code.

public static void main(String[] args) {
try {
// Set System L&F
UIManager.setLookAndFeel(
UIManager.getSystemLookAndFeelClassName());

}
catch (UnsupportedLookAndFeelException e) {
// handle exception
}
catch (ClassNotFoundException e) {
// handle exception
}
catch (InstantiationException e) {
// handle exception
}
catch (IllegalAccessException e) {
// handle exception
}

new SwingApplication(); //Create and show the GUI.
}

For more information about How to Set the Look and Feel


On Dec 30, 2007 9:03 AM, Benfrid < virginlimb@...> wrote:

Hi, im new in NetBeans.
Im using MS Windows XP Professional, NetBeans 6, JDK 6, JRE 6.

I saw a few Java Desktop Application example videos; always when the guy
runs the proyect, the window theme is like a MS Windows Form.

When a i run mine, the color of the window is set to blue, including buttons
and background, even if a change the color in the GUI desinger.

Is possible to run a form like a MS Widows Form (the standar color and
layout)?

Thanks.

I've alreday searched this issue in forums, with no results.


--
View this message in context: http://www.nabble.com/Window-Intefrace-theme.-tp14545145p14545145.html
Sent from the Netbeans - UI mailing list archive at Nabble.com.



--
Abdrabba Yassine
Blog: http://a-yassine.blogspot.com

 « Return to Thread: Window Intefrace theme.