|Initializing a dialog? [message #447279]
||Mon, 13 December 2004 07:00
Originally posted by: manish.garg.gmail.com|
I have case where I want to open a dialog and set some data in the text
My calls looks like the following.:
1. MyDialog dlg= new MyDialog (...);
I initialize the value through the method initializeValues on line 2.
However, the textbox which gets calls setEnabledOK() in the modifyListener
and at this point I get a nullPointerException. The setEnabledOK cannot be
called before dlg.open(). But setting the values in the textBox will cause
this to happen.
It looks like a common case and there must be a solutions to this so I hope
someone will reply.
p.s.: I cannot swap lines 2 and 3 because the dlg.initializeValues() will
not be called.
Powered by FUDForum
. Page generated in 0.01681 seconds