I want to load large text file quickly in a JTextArea
using Swing components. I tried to load a 100MB file, and it loads within seconds. But when I try to load more than a 200MB file, it takes more than 5 minutes.
How can I load large data files? For reading I use a BufferedReader
and to display I use the setText()
method from JTextArea
.