Laba Jolly

Greenhorn
+ Follow
since Nov 17, 2003
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Laba Jolly

Originally posted by Sergio Baca:
I have 2 JTextArea objects which I'm setting to same JScrollPane, the problem is that one object have bigger text than other and has Vertical Scrollbar, both JTextArea objects have word wrap enabled so they should not have Horizontal Scroll Bar, but when I move from JTextArea with no Vertical Scrollbar, to JTextArea with it, the resulting object is slightly bigger and a Horizontal Scrollbar appears.
Is there a way to call some kind of layout so that size will be evaluated each time ViewportView is set (or after it is set)?


Can you please clarify your problem? I have some experience with java text elements and may be I can help. Why don't you change text in JTextArea but change text elements in JScrollPane?
18 years ago