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