Class CaretMonitor

java.lang.Object
jsyntaxpane.actions.CaretMonitor
All Implemented Interfaces:
EventListener, CaretListener

public class CaretMonitor extends Object implements CaretListener
This class can be used to display the caret location in friendly manner for an EditorPane.
  • Constructor Details

  • Method Details

    • caretUpdate

      public void caretUpdate(CaretEvent evt)
      Specified by:
      caretUpdate in interface CaretListener
    • updateLabel

      protected void updateLabel(int pos)
    • finalize

      protected void finalize() throws Throwable
      Overrides:
      finalize in class Object
      Throws:
      Throwable
    • getNoSelectionFormat

      public String getNoSelectionFormat()
    • setNoSelectionFormat

      public void setNoSelectionFormat(String noSelectionFormat)
    • getSelectionFormat

      public String getSelectionFormat()
    • setSelectionFormat

      public void setSelectionFormat(String selectionFormat)