-
JTextArea
Hello,
How can I restrict JTextArea to allow only 255 Words. Any Suggestions?
Regards.
Hasnain.
-
 Originally Posted by Hasnain
Hello,
How can I restrict JTextArea to allow only 255 Words. Any Suggestions?
Regards.
Hasnain.
Add a listener to the JTextArea. When the text changes get the string and limit as neccessary. Then write the updated length text back to the area.
I suppose you mean chars and not words although it doesn't really matter.
Similar Threads
-
By bilinmiyo in forum Java
Replies: 1
Last Post: 03-04-2005, 06:57 AM
-
Replies: 1
Last Post: 11-16-2001, 10:53 AM
-
Replies: 1
Last Post: 02-13-2001, 10:46 AM
-
Replies: 1
Last Post: 04-28-2000, 01:18 PM
-
By Huiyuanm in forum Java
Replies: 1
Last Post: 03-22-2000, 08:03 AM
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