Hi All,
Does anyone know if it is possible to force a JWindow to be modal? I have created a custom Dialog box using JWindow that stores user input from a field into a variable. I am calling this dialog from another application like this:
MyEnterDialog ed = new MyEnterDialog();
ed.show();
String theString = ed.getUserString();
The problem is that I now realize that JWindow is not modal, so when I call show(), the program continues to execute so that getUserString() is returning null because it has not been set by the user yet.
I know that I could extend JDialog instead of JWindow, but I am looking to do away with the title bar on the window if it is possible. Thanks very much for your help!!!
Barry