Like This Site? 
 
RSS Feed Follow Us 

on Twitter! Be Our Fan!

How to create a single line JTextArea?

Share this post!
 Vote this!

The following example will show you how to create a single line JTextArea. A single line means that you cannot insert a new line in the text area. When pressing the enter key it will be replaced by a space.
This can be done by putting a property called filterNewlines and set the value to Boolean.TRUE into the document model of the JTextAreamore...

0 comments:

Post a Comment