Limit of characters in JTextArea row?

If you're using Swing and a JTextArea, try using the setWrapStyleWord and setLineWrap methods.

If you're using Swing and a JTextArea, try using the setWrapStyleWord and setLineWrap methods: textarea. SetWrapStyleWord(true); textarea. SetLineWrap(true); You'll also want to set the column count of the JTextArea: private static final int TA_ROWS = 20; private static final int TA_COLS = 35; private JTextArea textarea = new JTextArea(TA_ROWS, TA_COLS); and wrap the JTextArea in a JScrollPane of course.

Edit I'm assuming that you're using Swing, but on re-reading your question I could be wrong. Is this for Swing? AWT?

Android? Other?

1 It's for Swing. Thank you for the answer, it was very useful. – Noran Dec 4 at 17:29 @Noran accept it~ – rana Dec 4 at 17:31 Document can do that +1 – mKorbel Dec 4 at 18:02.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions