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)?