-
User input- Pop Up Box
Hello,
I want to create a pop-up box in Eclipse, which accepts user input and on clicking Enter, processes that input to do something else.
Eg: A pop up box which says: Enter a value
User enters: 5 and hits Enter
After that, 5 is accepted and multiplied by 7 and stored in a variable for further processing.
Please suggest how this can be done.
Thanks!
-
Use user input message box. JOptionPane.inputMessage(). Did you search anything on Google?
-
Brilliant! Thanks a lot
I did, but got caught with some implementation of JFrame.
This works just fine.
Thanks!!
-
You are welcome. If you have solve the problem please mark the thread solved.