Swing Designer allows you to quickly create the frames, panels, dialogs, applets and other UI elements that comprise Java Swing applications.
Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg
by ncister » Wed Jan 19, 2005 9:06 am
Hi,
Why the Look&Feel selected at design-time (and tested using the "Test/Preview" function...) isn't stored into code ?
How i can obtain the same L&F when i run my JFrame class using "Run Java Application" ?
Thanks.
Nicola.
-
ncister
-
- Posts: 14
- Joined: Wed Jan 19, 2005 1:57 am
by Eric Clayberg » Wed Jan 19, 2005 11:32 am
ncister wrote:Why the Look&Feel selected at design-time (and tested using the "Test/Preview" function...) isn't stored into code ?
The Look & Feel drop down is intended to let you preview your window under different Look & Feels.
The Look & Feel actually used by your application at runtime is a global setting that you should set up in your application startup code. Something like...
UIManager.setLookAndFeel(new com.incors.plaf.kunststoff.KunststoffLookAndFeel());
-
Eric Clayberg
- Moderator
-
- Posts: 4503
- Joined: Tue Sep 30, 2003 6:39 am
- Location: Boston, MA USA
-
Return to Swing Designer
Who is online
Users browsing this forum: Google [Bot] and 1 guest