plz plz plz help me(java)


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 5 of 5

Thread: plz plz plz help me(java)

  1. #1
    Join Date
    Aug 2005
    Posts
    4

    plz plz plz help me(java)

    i have a java program.i have inserted a JTextArea. basically i want to create a button thatwill clear the text area.i dnt no hw,could u plx forward me sum ideas and maybe sum code.thanku.

  2. #2
    Join Date
    Jul 2005
    Location
    SW MO, USA
    Posts
    299
    Have you looked at other recently posted Java programs? Some of those have examples of using buttons.

    Hint: To clear a textarea set its contents to "" (an empty string)

  3. #3
    Join Date
    Jul 2005
    Location
    the Netherlands
    Posts
    128
    Quote Originally Posted by kamon
    i have a java program.i have inserted a JTextArea. basically i want to create a button thatwill clear the text area.i dnt no hw,could u plx forward me sum ideas and maybe sum code.thanku.
    http://java.sun.com/docs/books/tutorial/uiswing/

  4. #4
    Join Date
    Oct 2004
    Posts
    151
    Hi everyone,

    you can do this

    Code:
    JTextArea.setText("");
    Richard West
    What type of softwares do you like and what would you pay for it?

    http://www.wizardsolutionsusa.com/fo...hread.php?t=12

  5. #5
    Join Date
    Dec 2004
    Location
    San Bernardino County, California
    Posts
    1,468
    That would be the function of the method invoked in the registered ActionListener responding to the ActionEvent triggered by the push of the "Clear Text" JButton ...

Similar Threads

  1. java applet... i'm in a fix, plz help
    By nsbscool in forum Java
    Replies: 1
    Last Post: 05-02-2005, 08:01 AM
  2. Plz Help!!!!
    By Kyle in forum Java
    Replies: 0
    Last Post: 05-14-2003, 03:25 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
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center