Results 1 to 7 of 7
Thread: user input with JTextArea
- 04-15-2009, 04:58 AM #1
Member
- Join Date
- Feb 2009
- Location
- Sacramento CA
- Posts
- 17
- Rep Power
- 0
-
If you haven't looked here, this is where I'd start. Much luck.
- 04-15-2009, 05:24 AM #3
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
I'm not clear what you mean by via keyboard. Are you looking to do this using shot-cuts?
- 04-15-2009, 05:28 AM #4
Member
- Join Date
- Feb 2009
- Location
- Sacramento CA
- Posts
- 17
- Rep Power
- 0
I have a menu which is displayed inside of a JTextArea
the user must enter an option
I need to get back what the user entered
the problem is how do I get back what the user typed inside of the JTextArea
- 04-15-2009, 05:42 PM #5
There's a method called getText you can call that will return what is currently inside the TextArea.
*edit*
Using JTextField you can do this. I misread your post but JTextArea should have something very similar if not the sameLiberty has never come from the government.
Liberty has always come from the subjects of government.
The history of liberty is the history of resistance.
The history of liberty is a history of the limitation of governmental power, not the increase of it.
- 04-15-2009, 09:50 PM #6
Member
- Join Date
- Feb 2009
- Posts
- 2
- Rep Power
- 0
thanks
buddy
- 04-16-2009, 04:09 AM #7
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Similar Threads
-
how to get input from User
By Alvaro in forum New To JavaReplies: 7Last Post: 01-15-2010, 11:02 PM -
User input for frame
By JavaStarter in forum AWT / SwingReplies: 7Last Post: 04-03-2009, 06:11 AM -
User input- Pop Up Box
By dedachi in forum AWT / SwingReplies: 3Last Post: 03-23-2009, 04:47 AM -
loop when there is no user-input
By becky in forum New To JavaReplies: 12Last Post: 02-02-2009, 10:02 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