1 /* 2 * @(#)CaretListener.java 1.9 03/12/19 3 * 4 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 5 * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. 6 */ 7 package javax.swing.event; 8 9 10 import java.util.EventListener; 11 12 /** 13 * Listener for changes in the caret position of a text 14 * component. 15 * 16 * @version 1.9 12/19/03 17 * @author Timothy Prinzing 18 */ 19 public interface CaretListener extends EventListener { 20 21 /** 22 * Called when the caret position is updated. 23 * 24 * @param e the caret event 25 */ 26 void caretUpdate(CaretEvent e); 27 } 28 29