| Share this post! | Vote this! |
|
The following example will show you how to create a single line
This can be done by putting a property called
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 JTextArea. more...



0 comments:
Post a Comment