fixed for Paint.JAVA changes