File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes returning a value from a custom dialog Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "returning a value from a custom dialog" Watch "returning a value from a custom dialog" New topic
Author

returning a value from a custom dialog

Leon Glass
Greenhorn

Joined: Jan 22, 2009
Posts: 5


I would like to alter the following code so that showNewLevel() is able to return the input[]. If I just alter the signature and add the return as it is I get a return value of null I think because the actionlistener isn't called when I think it is. How can I make this method have similar functionality to JOptionPane.ShowInputDialog()?


Noli illegitemi carborundum
Leon Glass
Greenhorn

Joined: Jan 22, 2009
Posts: 5
It seems that I only needed to set my dialog as modal and I have the functionality I require.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: returning a value from a custom dialog
 
Similar Threads
Input Display
JTextField and JButton: share the same event handler
Need to convert Console App to GUI...
GUI
Visibility help?