Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » how to detect a child dialog is closed?
how to detect a child dialog is closed? [message #446890] Mon, 06 December 2004 01:14 Go to next message
andrew is currently offline andrewFriend
Messages: 8
Registered: July 2009
Junior Member
Dear all,

I am having problem to detect child dialog events. On my main appication,
there is a button which will bring a child dialog when a user click on it.
This child dialog is an sub class of JFace dialog and is not an inner-class
of the main application

I want my main application to perform some action when ever the child dialog
is closed (2 types event, "OK" close and "Close" close")

I don't know how to caputure the events fired by the child dialog.

Can anyone help me on this?

Thanks.

Andrew
Re: how to detect a child dialog is closed? [message #446894 is a reply to message #446890] Mon, 06 December 2004 08:23 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: olivier.larivain.criltechnology.com

The class Dialog has a method open() wich opens the dialog box et returns a
code for Ok, Cancel and any Button you define in it, this should help you
with your Ok close event.

What do you mean by Close close? closing the windpw through the title bar?

"andrew" <andrewcomputer@yahoo.com> a
Re: how to detect a child dialog is closed? [message #447136 is a reply to message #446894] Thu, 09 December 2004 00:58 Go to previous message
andrew is currently offline andrewFriend
Messages: 8
Registered: July 2009
Junior Member
Thanks man :) this solves my problems.

Andrew
Previous Topic:Mac OS X: Right aligned Text control
Next Topic:Unable to select JTable rows??
Goto Forum:
  


Current Time: Wed Apr 10 06:26:07 GMT 2024

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

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

Back to the top