Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » WindowBuilder » JFace close(Close a JFace application from a button)
JFace close [message #777475] Tue, 10 January 2012 15:14 Go to next message
Bill Brandley is currently offline Bill BrandleyFriend
Messages: 12
Registered: October 2011
Junior Member
I created a JFace application containing a "Close" button. In the "mouseUp" event, I placed:

Display.getCurrent().dispose();

I modified main() thusly:

if(Display.getCurrent() != null) {
Display.getCurrent().dispose();
}

Is this a reasonable way to clode a JFace application from a button?

Thanx,
Bill
Re: JFace close [message #777557 is a reply to message #777475] Tue, 10 January 2012 17:37 Go to previous messageGo to next message
Konstantin Scheglov is currently offline Konstantin ScheglovFriend
Messages: 555
Registered: July 2009
Senior Member
window.close();


http://www.informit.com/guides/content.aspx?g=java&seqNum=92



Konstantin Scheglov,
Google, Inc.
Re: JFace close [message #777584 is a reply to message #777557] Tue, 10 January 2012 19:02 Go to previous message
Eric Clayberg is currently offline Eric ClaybergFriend
Messages: 979
Registered: July 2009
Location: Boston, MA
Senior Member
BTW, general questions about JFace should be posted to the Eclipse JFace forum.

Likewise, general questions about SWT should be posted to the Eclipse SWT forum.
Previous Topic:Databinding for an Enumeration
Next Topic:DataBinding - Enumerations
Goto Forum:
  


Current Time: Fri Apr 26 12:26:49 GMT 2024

Powered by FUDForum. Page generated in 0.03288 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top