モジュール java.desktop
パッケージ javax.swing.event

インタフェースCaretListener

すべてのスーパー・インタフェース:
EventListener
既知のすべての実装クラス:
JEditorPane.AccessibleJEditorPane, JEditorPane.AccessibleJEditorPaneHTML, JEditorPane.JEditorPaneAccessibleHypertextSupport, JPasswordField.AccessibleJPasswordField, JTextArea.AccessibleJTextArea, JTextComponent.AccessibleJTextComponent, JTextField.AccessibleJTextField

public interface CaretListener extends EventListener
テキスト・コンポーネントのキャレット位置の変更リスナーです。
  • メソッドのサマリー

    修飾子と型
    メソッド
    説明
    void
    キャレット位置が更新されたときに呼び出されます。
  • メソッドの詳細

    • caretUpdate

      void caretUpdate(CaretEvent e)
      キャレット位置が更新されたときに呼び出されます。
      パラメータ:
      e - キャレット・イベント