creating a short wizard GUI
- From: Brandon McCombs <none@xxxxxxxx>
- Date: Mon, 17 Jul 2006 01:47:35 GMT
I'm creating a dialog window for adding a user to an LDAP directory. I ask for basic information in the dialog such as the user's first and last name along with some other things. After the window closes I have to take all those pieces of data and create a BasicAttributes object. Then I have to create an LdapName object with the object's distinguishedName as an argument. The LdapName object and the set of attributes are passed to the method that actually creates the entry in the directory.
The problem I'm running into is that I don't know how to stop subsequent methods from executing such as creating the LdapName object and even calling createSubContext() before the application user has entered information into the dialog for the user he/she is creating. I instantiate my dialog class, set it visible and before anything can happen the other methods are executed and I get errors because not all the information has been defined. I guess this process could be considered a 1 screen wizard and I was wondering what the normal design is for preventing subsequent methods from running within a wizard (or that is dependent on data defined during the wizard) before the wizard is done running. How can I go about pausing execution until the dialog has been closed? Is it a matter of setting up ActionListeners in the proper way so that methods are only called after getting a certain action command?
thanks
Brandon
.
- Follow-Ups:
- Re: creating a short wizard GUI
- From: Morten Alver
- Re: creating a short wizard GUI
- Prev by Date: AWT Graphics2d Implementation
- Next by Date: Re: creating a short wizard GUI
- Previous by thread: AWT Graphics2d Implementation
- Next by thread: Re: creating a short wizard GUI
- Index(es):
Relevant Pages
|
|