Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Limiting the width of a JTextArea
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="osvoldk" data-source="post: 343601" data-attributes="member: 13940"><p>It has been a while since I have posted on Mac forums, and I hope that everyone is doing well. Recently, I started working with Java, and I came across an interesting, and probably easy to fix, problem. I am implemented a class River, and I have implemented JScrollPane, JTextArea, JMenuBar and the like. In the JTextArea, I have made it editable, but now I have difficulties in limiting the width. I want it to be akin to Appleworks, where you have the margins and the text will automatically go down to the next line. I did enable the scrollPane, and perhaps that is where the problem is, doubtful though. </p><p>I tried a few different things from other online sources, to no avail, so I am hoping that the combined knowledge at mac forums can help me with this problem.</p></blockquote><p></p>
[QUOTE="osvoldk, post: 343601, member: 13940"] It has been a while since I have posted on Mac forums, and I hope that everyone is doing well. Recently, I started working with Java, and I came across an interesting, and probably easy to fix, problem. I am implemented a class River, and I have implemented JScrollPane, JTextArea, JMenuBar and the like. In the JTextArea, I have made it editable, but now I have difficulties in limiting the width. I want it to be akin to Appleworks, where you have the margins and the text will automatically go down to the next line. I did enable the scrollPane, and perhaps that is where the problem is, doubtful though. I tried a few different things from other online sources, to no avail, so I am hoping that the combined knowledge at mac forums can help me with this problem. [/QUOTE]
Verification
Name this item 🌈
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Limiting the width of a JTextArea
Top