Class DialogAction

    • Constructor Detail

      • DialogAction

        public DialogAction(JComponent source,
                            String icon,
                            String title,
                            String description)
        Public constructor.
        Parameters:
        source - the component to use for determining the frame to use as a parent for the dialog to display
        icon - the icon to use in menus etc.
        title - the title of the action.
        description - the description of the action.
    • Method Detail

      • actionPerformed

        public void actionPerformed(ActionEvent e)
      • createDialog

        protected abstract JComponent createDialog()
        This is the method an extending class has to implement to provide a Dialog to be displayed.
        Returns:
        the component that will be shown in a dialog.