i'm creating a simple window that allows the user to enter some text...the problem I'm having is that I want the rest of the application to wait until the user has entered the data before continuing to process data.
For example, I have a similar function in the app that uses a JFileChooser; in that case, the file chooser dialog apppears, when the user selects the files they want, an object is created and then methods are executed, but not until the user has selected the files. In the dialog I'm writing, that doesn't happen; the application keeps right on going before the user can enter the information the dialog; the object is created with a null value, and of course, screws up the processing I want to do.
When using the JFileChooser, I have an if block that says something like
but I'm having trouble replicating that for my own dialog....
here's the relevant code that creates the dialog...