Problem with look and feel when export to jar

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

Problem with look and feel when export to jar

Postby vtanathip » Sun Jan 09, 2011 8:23 pm

I'm already choose look and feel (Office sliver 2007) in window builder and it work correctly (In run-time and preview) but when I export to jar file it seen jar file using system look and feel. Anyone know how I export jar file with look and feel that I choose.

PS: Sorry about my English.
vtanathip
 
Posts: 2
Joined: Sun Jan 09, 2011 8:12 pm

Re: Problem with look and feel when export to jar

Postby Eric Clayberg » Mon Jan 10, 2011 5:20 am

Do you have the Apply chosen LookAndFeel in main() method preference enabled?

If so, a L&F class is no different than any other class in Java. If you are using it, make sure that you include it on your classpath and when you package your app.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Re: Problem with look and feel when export to jar

Postby vtanathip » Mon Jan 10, 2011 6:01 am

Eric Clayberg wrote:Do you have the Apply chosen LookAndFeel in main() method preference enabled?

If so, a L&F class is no different than any other class in Java. If you are using it, make sure that you include it on your classpath and when you package your app.


Thank you for your answer but Im found what I did wrong. I choose wrong export function It must choose runnable jar with include library.

Anyway,Thank you :D
vtanathip
 
Posts: 2
Joined: Sun Jan 09, 2011 8:12 pm

Re: Problem with look and feel when export to jar

Postby Eric Clayberg » Mon Jan 10, 2011 6:39 am

Good. I did not think this was Swing Designer related.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
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: No registered users and 1 guest

cron