Class DialogWithButtons

    • Field Detail

      • m_PanelButtons

        protected JPanel m_PanelButtons
        the panel with the buttons (left and right).
      • m_PanelButtonsLeft

        protected JPanel m_PanelButtonsLeft
        the panel with the buttons (left).
      • m_PanelButtonsRight

        protected JPanel m_PanelButtonsRight
        the panel with the buttons (right).
    • Constructor Detail

      • DialogWithButtons

        public DialogWithButtons​(Dialog owner)
        Creates a modeless dialog without a title with the specified Dialog as its owner.
        Parameters:
        owner - the owning dialog
      • DialogWithButtons

        public DialogWithButtons​(Dialog owner,
                                 Dialog.ModalityType modality)
        Creates a dialog with the specified owner Dialog and modality.
        Parameters:
        owner - the owning dialog
        modality - the type of modality
      • DialogWithButtons

        public DialogWithButtons​(Dialog owner,
                                 String title)
        Creates a modeless dialog with the specified title and with the specified owner dialog.
        Parameters:
        owner - the owning dialog
        title - the title of the dialog
      • DialogWithButtons

        public DialogWithButtons​(Dialog owner,
                                 String title,
                                 Dialog.ModalityType modality)
        Creates a dialog with the specified title, modality and the specified owner Dialog.
        Parameters:
        owner - the owning dialog
        title - the title of the dialog
        modality - the type of modality
      • DialogWithButtons

        public DialogWithButtons​(Frame owner)
        Creates a modeless dialog without a title with the specified Frame as its owner.
        Parameters:
        owner - the owning frame
      • DialogWithButtons

        public DialogWithButtons​(Frame owner,
                                 boolean modal)
        Creates a dialog with the specified owner Frame, modality and an empty title.
        Parameters:
        owner - the owning frame
        modal - whether the dialog is modal or not
      • DialogWithButtons

        public DialogWithButtons​(Frame owner,
                                 String title)
        Creates a modeless dialog with the specified title and with the specified owner frame.
        Parameters:
        owner - the owning frame
        title - the title of the dialog
      • DialogWithButtons

        public DialogWithButtons​(Frame owner,
                                 String title,
                                 boolean modal)
        Creates a dialog with the specified owner Frame, modality and title.
        Parameters:
        owner - the owning frame
        title - the title of the dialog
        modal - whether the dialog is modal or not
    • Method Detail

      • initGUI

        protected void initGUI()
        Initializes the widgets.
        Overrides:
        initGUI in class BaseDialog
      • getButtonsPanel

        public JPanel getButtonsPanel()
        Returns the parent panel for left/right buttons.
        Returns:
        the panel
      • getButtonsPanel

        public JPanel getButtonsPanel​(boolean left)
        Returns a panel for buttons. By default, only the right one is initialized with buttons.
        Parameters:
        left - whether to retrieve the left or right panel
        Returns:
        the specified panel