Java Swing based text editor (built for learning purposes)