Results 1 to 2 of 2

Thread: JTextArea Help

  1. #1
    gavin.87 is offline Member
    Join Date
    Apr 2012
    Posts
    2
    Rep Power
    0

    Default 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

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,188
    Rep Power
    19

Similar Threads

  1. JTextArea
    By larry_d1990 in forum Advanced Java
    Replies: 4
    Last Post: 01-11-2011, 05:44 PM
  2. JTextArea on PopUp -JTextArea isn't editable
    By Richy76 in forum AWT / Swing
    Replies: 3
    Last Post: 02-01-2010, 07:51 PM
  3. Tab key in JTextArea
    By KristoZ in forum New To Java
    Replies: 1
    Last Post: 09-25-2009, 07:27 PM
  4. About JTEXTAREA
    By makpandian in forum AWT / Swing
    Replies: 4
    Last Post: 03-19-2009, 06:53 AM
  5. JTextArea
    By saytri in forum New To Java
    Replies: 0
    Last Post: 01-13-2008, 01:07 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •