Results 1 to 2 of 2
  1. #1
    jimmy-lin is offline Member
    Join Date
    Oct 2009
    Posts
    17
    Rep Power
    0

    Default grabbing text from JTextField and replace it.

    Can anyone help me with this?

    for example my label = new GLabel " Original Message "

    Where I create a Jbutton and JTextField, and when i click the Jbutton, it will grab the new message from JTextField and replace it into the Original Message.

  2. #2
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    8

    Default

    Read the API specs for the JLabel.setText and JTextField.getText methods.

Similar Threads

  1. Replies: 8
    Last Post: 08-13-2009, 04:23 AM
  2. replace a string using Text i/o
    By PureAwesomeness in forum New To Java
    Replies: 9
    Last Post: 07-06-2009, 02:38 AM
  3. find and replace text from a text file
    By gezzel in forum New To Java
    Replies: 2
    Last Post: 09-19-2008, 04:04 PM
  4. grabbing an item from an arraylist.
    By newtojava7 in forum New To Java
    Replies: 1
    Last Post: 03-17-2008, 08:25 PM
  5. Replies: 5
    Last Post: 01-17-2008, 09:01 PM

Posting Permissions

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