1. /*
  2. * @(#)CaretListener.java 1.6 00/02/02
  3. *
  4. * Copyright 1998-2000 Sun Microsystems, Inc. All Rights Reserved.
  5. *
  6. * This software is the proprietary information of Sun Microsystems, Inc.
  7. * Use is subject to license terms.
  8. *
  9. */
  10. package javax.swing.event;
  11. import java.util.EventListener;
  12. /**
  13. * Listener for changes in the caret position of a text
  14. * component.
  15. *
  16. * @version 1.6 02/02/00
  17. * @author Timothy Prinzing
  18. */
  19. public interface CaretListener extends EventListener {
  20. /**
  21. * Called when the caret position is updated.
  22. *
  23. * @param e the caret event
  24. */
  25. void caretUpdate(CaretEvent e);
  26. }