Simple text editor made in Java using Swing