E
E
evgenyt20002020-03-01 15:06:18
Java
evgenyt2000, 2020-03-01 15:06:18

Why time is not considered and because of this the table file grows and how to correct the output in JPane?

Good afternoon!
I can’t find where the error is over time, possibly related to the stack. Due to its incorrect accounting, the file grows very quickly and becomes sized in GB. And I can’t display the file in JPane.
If anyone can help, thanks.
Classes over 10,000 characters, so I can’t lay out the text.
https://drive.google.com/file/d/1DBbp1XiSElDA9ox2g...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
mayton2019, 2020-03-01
@mayton2019

It's unclear what you're going to do inside here. If you load a gigabyte file into one text-control, then of course it will not work. Controls are not designed for this. They don't store gigabytes because memory is expensive for the application.

FileReader reader = new FileReader("table.txt");
            BufferedReader br = new BufferedReader(reader);
            //jTextArea1.read(br, null);
            //jTextArea1.requestFocus();
            br.close();

The error is most likely in the formulation of the problem. State the problem verbally. What need to do. It may not be necessary to display the entire file, but only its tail (the last 50 lines).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question