Help to paint in Java 1