示例#1
0
 @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);
 }
示例#2
0
 @Override
 public void paintComponent(final Graphics g) {
   super.paintComponent(g);
   write(g, bar.pos());
 }