@Override public void paintComponent(final Graphics g) { super.paintComponent(g); init(g, bar.pos()); while (more(g)) write(g); wordW = 0; final int s = text.size(); if (cursor && s == text.cursor()) drawCursor(g, x); if (s == text.error()) drawError(g); }
@Override public void paintComponent(final Graphics g) { super.paintComponent(g); write(g, bar.pos()); }