Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Java Dialog boxes

Status
Not open for further replies.

globos

Programmer
Nov 8, 2000
260
FR
Hi.
I would like to developp some boxes like FileChooser in the Swing API. So, I would like to invoke these boxes in my code. But, I want these boxes to have exclusive focus.

For example, I would like to have something like this :
String res = StringDialog.getSelectedString ();
where getSelectedString () is a static method which manages the execution of a StringDialog box, and returns the selected String when closing the box.

How can I do?

Thanks
 
OK OK OK, I have found a solution to my problem.
These dialog boxes could simply use the static methods
showXXXDialog (...) of the JOptionPane class.

Yep.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top