"quickly preview without running" causes Eclipse shutDown

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

"quickly preview without running" causes Eclipse shutDown

Postby izzet_gezer » Tue Jun 15, 2010 3:47 am

Hi Mr. Eric,

I have myJframe whose windowClosing() metod is overriden as System.exit(0).
After pressing "quickly preview without running" button of WindowBuilder 7.4, myJFrame appears as if it was in runtime.No problem
But the problem is,
if i press the close button of myJframe then myJframe disappears and Eclipse shutDown...
I think,this can be a bug of WindowBuilder 7.4
may be :"quickly preview without running" code must not be run in the same execution-context as Eclipse does

fyi
izzet_gezer
 
Posts: 2
Joined: Thu May 13, 2010 10:54 pm

Re: "quickly preview without running" causes Eclipse shutDown

Postby Eric Clayberg » Wed Jun 16, 2010 4:15 am

Please give this a try using the latest Swing Designer v7.5 build.

Note that you can also wrap the call to System.exit() in a Beans.isDesignTime() check.
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