Skip to content

Commit

Permalink
added automatic linewrap. close #2596
Browse files Browse the repository at this point in the history
  • Loading branch information
j-dimension committed Oct 1, 2024
1 parent bf0d9de commit 05d650b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@
<Component class="javax.swing.JTextArea" name="taMessage">
<Properties>
<Property name="columns" type="int" value="20"/>
<Property name="lineWrap" type="boolean" value="true"/>
<Property name="rows" type="int" value="5"/>
<Property name="wrapStyleWord" type="boolean" value="true"/>
</Properties>
<Events>
<EventHandler event="keyReleased" listener="java.awt.event.KeyListener" parameters="java.awt.event.KeyEvent" handler="taMessageKeyReleased"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,9 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
jSeparator1.setForeground(new java.awt.Color(255, 255, 255));

taMessage.setColumns(20);
taMessage.setLineWrap(true);
taMessage.setRows(5);
taMessage.setWrapStyleWord(true);
taMessage.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyReleased(java.awt.event.KeyEvent evt) {
taMessageKeyReleased(evt);
Expand Down

0 comments on commit 05d650b

Please sign in to comment.