Update Painter.java