|
Re: how to position scrollbar in scrollpane
|
Posted: Sep 27, 2005 11:07 PM
|
|
Like what do you mean. Every time I place a JTextArea in a ScrollPane, I don't have to worry about the Scrollbar settings - unless you have a very specific way you want it to function. The ScrollPolicies are automatically set.
Well at least in terms of the Java 5 on the desk top I'm using right now and Java 1.4.2 that is on my laptop.
Doesn't simply doing:
JTextArea myText = new JTextArea(col, rows);
JScrollPane scrollPane = new JScrollPane(myText);
do the trick for you?
What ScrollPolicies are you trying to satisfy? Or maybe you are using an older Swing Library that did not support this?
|
|