void (<error descr="Cannot resolve symbol 'Graphics'">Graphics</error> g) { //g.setColor(Color.orange); //g.fillRect(0, 0, getSize().width, getSize().height); //long time = System.currentTimeMillis(); <error descr="Cannot resolve symbol 'Rectangle'">Rectangle</error> clip = g.<error descr="Cannot resolve method 'getClipBounds()'">getClipBounds</error>(); ///dg.setClip(r.x, r.y, r.width, r.height); paint(g, clip.<error descr="Cannot resolve symbol 'x'">x</error>, clip.<error descr="Cannot resolve symbol 'y'">y</error>, clip.<error descr="Cannot resolve symbol 'width'">width</error>, clip.<error descr="Cannot resolve symbol 'height'">height</error>, content, isEnabled()); //System.out.println(System.currentTimeMillis() - time); ///g.setClip(0, 0, getSize().width, getSize().height); //g.setColor(Color.red); g.drawRect(clip.x, clip.y, clip.width - 1, clip.height - 1); }