Class ReplaceDialog

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, EventListener, Accessible, CaretListener, RootPaneContainer, WindowConstants, EscapeListener

public class ReplaceDialog extends JDialog implements CaretListener, EscapeListener
A Find and Replace Dialog. The dialog will also act as a listener to Document changes so that all highlights are updated if the document is changed.
See Also:
  • Constructor Details

  • Method Details

    • updateHighlights

      public void updateHighlights()
      updates the highlights in the document when it is updated. This is called by the DocumentListener methods
    • caretUpdate

      public void caretUpdate(CaretEvent e)
      Specified by:
      caretUpdate in interface CaretListener
    • escapePressed

      public void escapePressed()
      Description copied from interface: EscapeListener
      This method will be called when ESC key is pressed.
      Specified by:
      escapePressed in interface EscapeListener