Simple Paint application in Java Swing