Simple paint in Java