@ -457,7 +457,8 @@ public class ConfigurableCaret extends DefaultCaret {
case THICK_VERTICAL_LINE_STYLE:
Graphics2D g2 = (Graphics2D) g;
g2.setStroke(new BasicStroke(2));
g2.draw(new Line2D.Float(r.x, r.y, r.x, r.y + r.height));
// 向右再移动一个位置 避免光标太接近文字内容
g2.draw(new Line2D.Float(r.x + 1, r.y, r.x + 1, r.y + r.height));
break;
} // End of switch (style).