Results 1 to 2 of 2
  1. #1
    ayershov777 is offline Member
    Join Date
    Sep 2012
    Rep Power

    Cool how do you update JTextField?

    How do you write a message in a text field through code? For example, if the user enters something like "How are you?" in the text field, how would I make it so that the text field changes to "Great!"?

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Eastern Florida
    Rep Power

    Default Re: how do you update JTextField?

    Take a look at the API doc for the class you are talking about. It has several methods that will help you do what you want. If you have problems understanding any of them, copy the text of the doc here and ask questions about what you don't understand.
    The API doc: Java Platform SE 7
    If you don't understand my response, don't ignore it, ask a question.

Similar Threads

  1. JTextField won't update
    By multarnc in forum New To Java
    Replies: 6
    Last Post: 01-11-2012, 03:07 PM
  2. how can i update my table with Jtextfield filtering?
    By sungirl in forum Advanced Java
    Replies: 4
    Last Post: 12-14-2010, 05:28 PM
  3. can't get JTextField to update
    By rippon in forum AWT / Swing
    Replies: 4
    Last Post: 11-29-2010, 01:34 PM
  4. JTextField won't update from subclass
    By Edward in forum New To Java
    Replies: 9
    Last Post: 06-29-2009, 06:45 AM
  5. Replies: 1
    Last Post: 01-30-2009, 07:44 PM

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