Paint Assignment Made with Java Swing