Class OptionsDialog

    • Field Detail

      • DIALOG_WIDTH

        public static int DIALOG_WIDTH
      • DIALOG_HEIGHT

        public static int DIALOG_HEIGHT
    • Constructor Detail

      • OptionsDialog

        public OptionsDialog()
    • Method Detail

      • addContent

        public void addContent​(String name,
                               Icon icon,
                               OptionsDialogContent content)
        Adds the specified content as an option in this dialog.
        Parameters:
        name - the name of the content to display
        icon - the icon
        content - the content
      • isCanceled

        public boolean isCanceled()
        Returns:
        true if the dialog was canceled, otherwise false.
      • ok

        protected void ok()
      • apply

        protected void apply()
      • cancel

        protected void cancel()
      • actionPerformed

        public void actionPerformed​(ActionEvent e)
        Invoked when one of the option buttons is clicked.
        Parameters:
        e -
      • displayInit

        protected void displayInit​(Component parent)
        Initializes the dialog for display. This sets the layout, packs() it and so forth.
        Parameters:
        parent -
      • showDialog

        public void showDialog​(JFrame parent,
                               String title)
      • showDialog

        public void showDialog​(JDialog parent,
                               String title)