Why does the Basic Java Hex Editor I made freeze on files around 2MB size and up

I don’t give a shit about rotating cubes. I care about usability and completeness.
Edit: sorry, time to stop spamming the thread now.

Just so everyone knows the new source is at the end of page 2.