Re: Window Intefrace theme.
"Abdrabba Yassine" <[email protected]> Sun, 30 Dec 2007 09:50:57 +0100
| Newsgroups | gmane.comp.java.netbeans.user-interface |
|---|---|
| Message-ID | <[email protected]> |
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<http://java.sun.com/docs/books/tutorial/uiswing/lookandfeel/plaf.html>
On Dec 30, 2007 9:03 AM, Benfrid <[email protected]> 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