Results 1 to 2 of 2
Thread: JTextArea Help
- 04-11-2012, 05:05 PM #1
Member
- Join Date
- Apr 2012
- Posts
- 2
- Rep Power
- 0
JTextArea Help
hi,
as i said in a previous thread i am developing a text adventure game using swing. At the moment i can only output to the console using the following :
this.println("[1] Start Game");
this.println("[2] Terminate Game");
i have a class creating the GUI and a seperate class which handles all the input from the player.
I would like to enter the players decision (eg gonorth) into a textfield and have the corresponding action out to the text area.
So instead of entering 1 for the above example into the console you would enter one into the text field and the corresponding message, "game has started" would be seen in the textarea
Any help would be appreciated thanks :D
- 04-11-2012, 05:28 PM #2
Re: JTextArea Help
Why do they call it rush hour when nothing moves? - Robin Williams
Similar Threads
-
JTextArea
By larry_d1990 in forum Advanced JavaReplies: 4Last Post: 01-11-2011, 05:44 PM -
JTextArea on PopUp -JTextArea isn't editable
By Richy76 in forum AWT / SwingReplies: 3Last Post: 02-01-2010, 07:51 PM -
Tab key in JTextArea
By KristoZ in forum New To JavaReplies: 1Last Post: 09-25-2009, 07:27 PM -
About JTEXTAREA
By makpandian in forum AWT / SwingReplies: 4Last Post: 03-19-2009, 06:53 AM -
JTextArea
By saytri in forum New To JavaReplies: 0Last Post: 01-13-2008, 01:07 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks