Results 1 to 4 of 4
Thread: User input- Pop Up Box
- 03-21-2009, 06:03 AM #1
Member
- Join Date
- Mar 2009
- Posts
- 2
- Rep Power
- 0
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!
- 03-21-2009, 07:19 AM #2
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Use user input message box. JOptionPane.inputMessage(). Did you search anything on Google?
- 03-22-2009, 12:22 AM #3
Member
- Join Date
- Mar 2009
- Posts
- 2
- Rep Power
- 0
Brilliant! Thanks a lot
I did, but got caught with some implementation of JFrame.
This works just fine.
Thanks!!
- 03-23-2009, 04:47 AM #4
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
You are welcome. If you have solve the problem please mark the thread solved.
Similar Threads
-
how to get input from User
By Alvaro in forum New To JavaReplies: 7Last Post: 01-15-2010, 11:02 PM -
Getting User Input to Drawing Shapes
By mlfatty in forum AWT / SwingReplies: 2Last Post: 03-04-2009, 06:36 AM -
loop when there is no user-input
By becky in forum New To JavaReplies: 12Last Post: 02-02-2009, 10:02 PM -
who to take user input ,not by console...
By Shyam Singh in forum New To JavaReplies: 3Last Post: 06-13-2008, 10:09 PM -
cant take input from user
By new_1 in forum New To JavaReplies: 6Last Post: 12-25-2007, 07:38 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks