toh6wy
Emperor
I wouldn't be surprised if this is really basic, but... I'm trying to create a text editor. Right now, when I load a file (one line at a time, using BufferedReader's readLine and then TextArea's append), it always scrolls as it appends. Although I use TextArea's setCaretPosition to make it go back to the top, you can still quite easily see it very quickly scroll to the bottom before jumping to the top when you open a file. How do I prevent this, and make it act like a normal text editor??