-
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.
-
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)
-
 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/
-
Hi everyone,
you can do this
Code:
JTextArea.setText("");
Richard West
-
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
-
By nsbscool in forum Java
Replies: 1
Last Post: 05-02-2005, 08:01 AM
-
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
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks