I have a JFrame
containing a JScrollPane
containing a JPanel
.
The JPanel
contains a bunch of JTextArea
s.
I\
The problem had nothing to do with thread safety. After much digging, I found that the underlying window manager implementation for the Look And Feel of JPanel
had a hardcoded 32767 size limit, so it didn't matter that it was sitting in a JScrollPane
. The idea was to avoid a lot of extra managing of individual JScrollPane
s but the limit makes it unavoidable.
Moving the contents of the JPanel
into their own individual JscrollPane
s resolved the issue. The scrolling is still a bit laggy for reasons unknown to me.