A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Swing / AWT / SWT
How Do I add a vertical scroll bar to a JTextArea?
Joined: Jan 31, 2006
Mar 08, 2006 07:05:00
How Do I add a vertical scroll bar to a
At the moment text is appended to the text area and when there is too much text the text area increases for some reason.
Joined: Feb 26, 2006
Mar 08, 2006 09:26:00
Can you send me the code snippet, as to where are you adding the
? In what layout etc.
I may be able to help
-Sam Codean<br />SCJP 1.4 (98%)<br />SCJD 5.0 (87.5%)
Joined: Jan 14, 2004
Mar 08, 2006 09:28:00
The tutorial recommends setting the number of rows and columns to control the size of the
. You can add the
JTextArea textArea = new JTextArea(5,20); container.add(new JScrollPane(textArea));
I agree. Here's the link:
subject: How Do I add a vertical scroll bar to a JTextArea?
JScrollPane JViewport question
JTextArea Scroll Focus
JTextArea and scrolling
Very Different Problem with JScrollPane
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014