Top "Jtextarea" questions

A JTextArea is a multi-line area that displays plain text.

How to limit JTextArea max Rows and Columns?

I am using JTextArea in JScrollPane I want to limit the maximum number of lines possible and the maximum chars …

java text limit lines jtextarea
Auto-Resizing JTextArea

I want my JTextArea to resize itself (expand vertically) when the last line (that the text area's height can offer) …

java jtextarea autoresize
Align Strings in columns in JTextArea

I want to print Strings in JTextArea and align them properly. Its hard to explain so I will upload the …

java swing jtextarea
How to set jTextArea to have height that matches the size of a text it contains (to avoid scrollbars)

This problem looks trivial, but I can't find the solution. When I create a form it contains a JTextArea. I …

java swing jscrollpane jtextarea jscrollbar
Scrollbars on JTextArea in a JScrollPane do not work

I'm having trouble getting a JTextArea to scroll. I'm not sure how you can mess up a JScrollPane but I …

java swing jscrollpane jtextarea
How to find Cursor position in a JTextArea

Would someone help me in finding cursor position in a JTextArea in terms of pixel? I have used txtArea.getCaretPosition(). …

java swing jtextarea
Highlighting Text in java

We are developing a plagiarism detection framework. In there i have to highlight the possible plagiarized phrases in the document. …

java swing indexing highlighting jtextarea
Auto text scroll for text area (JTextArea) with caret position set to the beginning of the last line

I have a simple Java question here. I want to auto text scroll to the beginning of the last line …

java swing jtextarea caret autoscroll
How to Limit number of lines in JTextArea?

I am trying to make a GUI for a service, which have a JTextArea to view messages in, each message …

java swing jtextarea
Setting fixed width of JTextArea while height should be automatically adjusted to its content

When I run the sample code below the width of JTextArea is fixed (100px) while its height is dynamically adjusted …

java swing jtextarea