Package ij.gui

Class SaveChangesDialog

All Implemented Interfaces:
ActionListener, KeyListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible

public class SaveChangesDialog extends Dialog implements ActionListener, KeyListener
A modal dialog box with a one line message and "Don't Save", "Cancel" and "Save" buttons.
See Also:
  • Constructor Details

    • SaveChangesDialog

      public SaveChangesDialog(Frame parent, String fileName)
  • Method Details

    • actionPerformed

      public void actionPerformed(ActionEvent e)
      Specified by:
      actionPerformed in interface ActionListener
    • cancelPressed

      public boolean cancelPressed()
      Returns true if the user dismissed dialog by pressing "Cancel".
    • savePressed

      public boolean savePressed()
      Returns true if the user dismissed dialog by pressing "Save".
    • keyPressed

      public void keyPressed(KeyEvent e)
      Specified by:
      keyPressed in interface KeyListener
    • keyReleased

      public void keyReleased(KeyEvent e)
      Specified by:
      keyReleased in interface KeyListener
    • keyTyped

      public void keyTyped(KeyEvent e)
      Specified by:
      keyTyped in interface KeyListener