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,755
    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,755
    Rep Power
    7

Similar Threads

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