jdk/src/share/classes/javax/swing/text/DefaultCaret.java
changeset 7959 2e05332a8f5c
parent 7668 d4a77089c587
child 9035 1255eb81cc2f
equal deleted inserted replaced
7793:bcc54a3c2825 7959:2e05332a8f5c
    68  * Selection appearance can be customized by supplying a
    68  * Selection appearance can be customized by supplying a
    69  * painter to use for the highlights.  By default a painter is used that
    69  * painter to use for the highlights.  By default a painter is used that
    70  * will render a solid color as specified in the associated text component
    70  * will render a solid color as specified in the associated text component
    71  * in the <code>SelectionColor</code> property.  This can easily be changed
    71  * in the <code>SelectionColor</code> property.  This can easily be changed
    72  * by reimplementing the
    72  * by reimplementing the
    73  * <a href="#getSelectionHighlighter">getSelectionHighlighter</a>
    73  * {@link #getSelectionPainter getSelectionPainter}
    74  * method.
    74  * method.
    75  * <p>
    75  * <p>
    76  * A customized caret appearance can be achieved by reimplementing
    76  * A customized caret appearance can be achieved by reimplementing
    77  * the paint method.  If the paint method is changed, the damage method
    77  * the paint method.  If the paint method is changed, the damage method
    78  * should also be reimplemented to cause a repaint for the area needed
    78  * should also be reimplemented to cause a repaint for the area needed