Results 1 to 4 of 4

Thread: Simple Search

  1. #1
    vimalaranjan is offline Member
    Join Date
    May 2011
    Posts
    8
    Rep Power
    0

    Default Simple Search

    please have a look my code

    String a = JtextField.getText();
    JTextArea.setText(a);

    i'm getting text from TextField
    i want to display the entered text into the JTextArea using JBttton
    how can i do this
    please help me

  2. #2
    Junky's Avatar
    Junky is offline Grand Poobah
    Join Date
    Jan 2011
    Location
    Dystopia
    Posts
    3,800
    Rep Power
    7

    Default

    Add a Listener to your button. Then add your code to the actionPerformed method.

  3. #3
    vimalaranjan is offline Member
    Join Date
    May 2011
    Posts
    8
    Rep Power
    0

    Default

    how can i do that?

  4. #4
    Junky's Avatar
    Junky is offline Grand Poobah
    Join Date
    Jan 2011
    Location
    Dystopia
    Posts
    3,800
    Rep Power
    7

Similar Threads

  1. Replies: 4
    Last Post: 03-25-2011, 12:50 AM
  2. simple search engine
    By semoche in forum Enterprise JavaBeans (EJB)
    Replies: 3
    Last Post: 12-07-2009, 09:41 AM
  3. Replies: 0
    Last Post: 10-29-2009, 10:28 AM
  4. Replies: 4
    Last Post: 07-23-2009, 10:45 PM
  5. Replies: 5
    Last Post: 08-26-2008, 04:43 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
  •