void (<error descr="Cannot resolve symbol 'Graphics'">Graphics</error> g, int clipx, int clipy, int clipwidth, int clipheight, Object component, int width, int height, boolean inside, boolean pressed, boolean focus, boolean enabled, boolean hidden, int left) { boolean editable = getBoolean(component, "editable", true); paintRect(g, 0, 0, width, height, enabled ? c_border : c_disable, editable ? c_textbg : c_bg, true, true, true, true); g.<error descr="Cannot resolve method 'clipRect(int, int, int, int)'">clipRect</error>(1 + left, 1, width - left - 2, height - 2); String text = getString(component, "text", ""); int offset = getInteger(component, "offset", 0); <error descr="Cannot resolve symbol 'FontMetrics'">FontMetrics</error> fm = g.<error descr="Cannot resolve method 'getFontMetrics()'">getFontMetrics</error>(); //java int caret = 0; if (focus) { int start = getInteger(component, "start", 0); int end = getInteger(component, "end", 0); caret = hidden ? (fm.<error descr="Cannot resolve method 'charWidth(char)'">charWidth</error>('*') * end) : fm.<error descr="Cannot resolve method 'stringWidth(java.lang.String)'">stringWidth</error>(text.substring(0, end)); //java //midp font.substringWidth(text, 0, end); if (start != end) { int is = hidden ? (fm.<error descr="Cannot resolve method 'charWidth(char)'">charWidth</error>('*') * start) : fm.<error descr="Cannot resolve method 'stringWidth(java.lang.String)'">stringWidth</error>(text.substring(0, start)); //java //midp font.substringWidth(text, 0, start); g.<error descr="Cannot resolve method 'setColor(Color)'">setColor</error>(c_select); g.<error descr="Cannot resolve method 'fillRect(int, int, int, int)'">fillRect</error>(2 + left - offset + Math.min(is, caret), 1, Math.abs(caret - is), height - 2); } } if (focus) { g.<error descr="Cannot resolve method 'setColor(Color)'">setColor</error>(c_focus); g.<error descr="Cannot resolve method 'fillRect(int, int, int, int)'">fillRect</error>(1 + left - offset + caret, 1, 1, height - 2); } g.<error descr="Cannot resolve method 'setColor(Color)'">setColor</error>(enabled ? c_text : c_disable); int fx = 2 + left - offset; int fy = (height + fm.<error descr="Cannot resolve method 'getAscent()'">getAscent</error>() - fm.<error descr="Cannot resolve method 'getDescent()'">getDescent</error>()) / 2; //java //midp int fy = (height - font.getHeight()) / 2; if (hidden) { int fh = fm.<error descr="Cannot resolve method 'charWidth(char)'">charWidth</error>('*'); for (int i = text.length(); i > 0; i--) { g.<error descr="Cannot resolve method 'drawString(java.lang.String, int, int)'">drawString</error>("*", fx, fy); //java //midp g.drawChar('*', fx, fy, Graphics.LEFT | Graphics.TOP); fx += fh; } } else { g.<error descr="Cannot resolve method 'drawString(java.lang.String, int, int)'">drawString</error>(text, fx, fy); //java //midp g.drawString(text, fx, fy, Graphics.LEFT | Graphics.TOP); } g.<error descr="Cannot resolve method 'setClip(int, int, int, int)'">setClip</error>(clipx, clipy, clipwidth, clipheight); }