Skip to main content

JTextArea for large Text

2 replies [Last post]
Spinnifex
Offline
Joined: 2011-03-29

Hi,
Is there maybe the possibility to introduce
a new type of JTextArea which can handle large amount of
text?
I got trouble setting or appending text with a size
greater then let's say 2 Megabytes.
The gui freezes... and it takes several minutes until
the user can do anything.
Same behavior occurs using JTables withs a large amount of rows ( lets say > 10000 )
Regards,
Spinnifex

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
kschaefe
Offline
Joined: 2006-06-08

This is not really a SwingLabs/SwingX question.  Do note that most method involving the document are thread-safe, you can do the updates from a background thread, which may be what you need.

Karl

Spinnifex
Offline
Joined: 2011-03-29

Re,

Ok, thank you for the reply.
Spinnifex