javax.swing.event
Interface CaretListener

All Superinterfaces:
EventListener sample code for java.util.EventListener definition code for java.util.EventListener
All Known Implementing Classes:
JEditorPane.AccessibleJEditorPane sample code for javax.swing.JEditorPane.AccessibleJEditorPane definition code for javax.swing.JEditorPane.AccessibleJEditorPane , JEditorPane.AccessibleJEditorPaneHTML sample code for javax.swing.JEditorPane.AccessibleJEditorPaneHTML definition code for javax.swing.JEditorPane.AccessibleJEditorPaneHTML , JEditorPane.JEditorPaneAccessibleHypertextSupport sample code for javax.swing.JEditorPane.JEditorPaneAccessibleHypertextSupport definition code for javax.swing.JEditorPane.JEditorPaneAccessibleHypertextSupport , JPasswordField.AccessibleJPasswordField sample code for javax.swing.JPasswordField.AccessibleJPasswordField definition code for javax.swing.JPasswordField.AccessibleJPasswordField , JTextArea.AccessibleJTextArea sample code for javax.swing.JTextArea.AccessibleJTextArea definition code for javax.swing.JTextArea.AccessibleJTextArea , JTextComponent.AccessibleJTextComponent sample code for javax.swing.text.JTextComponent.AccessibleJTextComponent definition code for javax.swing.text.JTextComponent.AccessibleJTextComponent , JTextField.AccessibleJTextField sample code for javax.swing.JTextField.AccessibleJTextField definition code for javax.swing.JTextField.AccessibleJTextField

public interface CaretListener
extends EventListener sample code for java.util.EventListener definition code for java.util.EventListener

Listener for changes in the caret position of a text component.


Method Summary
 void caretUpdate sample code for javax.swing.event.CaretListener.caretUpdate(javax.swing.event.CaretEvent) definition code for javax.swing.event.CaretListener.caretUpdate(javax.swing.event.CaretEvent) (CaretEvent sample code for javax.swing.event.CaretEvent definition code for javax.swing.event.CaretEvent  e)
          Called when the caret position is updated.
 

Method Detail

caretUpdate sample code for javax.swing.event.CaretListener.caretUpdate(javax.swing.event.CaretEvent) definition code for javax.swing.event.CaretListener.caretUpdate(javax.swing.event.CaretEvent)

void caretUpdate(CaretEvent sample code for javax.swing.event.CaretEvent definition code for javax.swing.event.CaretEvent  e)
Called when the caret position is updated.

Parameters:
e - the caret event