Re: simple input box ok button?



On 31 Aug 2005 07:42:40 -0700, 6e wrote:

> I am creating a small pop-up input box, and I want the user to be able
> to insert text into a JTextField, and hit "ok" to return close the
> screen AND return the text in JTextField.
...
> ..it seems like overkill for a such a simple routine...

<http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JOptionPane.html>

String inputValue = JOptionPane.showInputDialog("Input a value");

HTH

--
Andrew Thompson
physci.org 1point1c.org javasaver.com lensescapes.com athompson.info
"Her voice was soft and cool, her eyes were clear and bright, ..but she's
not there"
The Zombies 'She's Not There'
.


Quantcast