Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » JFace TitleAreaDialog
JFace TitleAreaDialog [message #454777] Thu, 28 April 2005 13:12 Go to next message
Eclipse UserFriend
Originally posted by: mek.mekistory.de

Hello erverybody,

I have a "MyDialog extends TitleAreDialog" class and added there two input
fields.

When I press "OK", I should get the values of the two input buttons with:

if (myDialog.open() == IDialogConstants.OK_ID){

String benutzer = anmeldeDialog.text_Benutzername.getText();
String passwort = anmeldeDialog.text_Passwort.getText();

}

But the compiler says that the "widget is disposed" in line "String benu..."

Which method and how do I have to overwrite so that the widget is not
disposed before I get the two values.

Thank you in advance...
Re: JFace TitleAreaDialog [message #454780 is a reply to message #454777] Thu, 28 April 2005 14:03 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

In your mydialog subclass, override the okpressed() method and get the
text from the two fields, and store them in the subclass. Then do
super.okPressed(). Provide two methods on your subclass to retrieve
those two pieces of text.


--
Thanks,
Rich Kulp
Re: JFace TitleAreaDialog [message #454796 is a reply to message #454780] Thu, 28 April 2005 23:55 Go to previous message
Eclipse UserFriend
Originally posted by: mek.mekistory.de

Hi Rich,

I've made it work with your help.

Thank You

"Rich Kulp" <richkulp@us.NO_SPAM.ibm.com> schrieb im Newsbeitrag
news:d4qqmh$ami$1@news.eclipse.org...
> In your mydialog subclass, override the okpressed() method and get the
> text from the two fields, and store them in the subclass. Then do
> super.okPressed(). Provide two methods on your subclass to retrieve those
> two pieces of text.
>
>
> --
> Thanks,
> Rich Kulp
Previous Topic:Composite update problem
Next Topic:Repainting question
Goto Forum:
  


Current Time: Sun Mar 07 21:29:38 GMT 2021

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

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

Back to the top