Class DialogESC

    • Field Detail

      • allowESC

        protected boolean allowESC
        Flag for to allow ESC key to close, Default is True
    • Constructor Detail

      • DialogESC

        public DialogESC()
      • DialogESC

        public DialogESC​(Dialog owner)
      • DialogESC

        public DialogESC​(Dialog owner,
                         boolean modal)
      • DialogESC

        public DialogESC​(Dialog owner,
                         String title)
      • DialogESC

        public DialogESC​(Dialog owner,
                         String title,
                         boolean modal)
      • DialogESC

        public DialogESC​(Frame owner)
      • DialogESC

        public DialogESC​(Frame owner,
                         boolean modal)
      • DialogESC

        public DialogESC​(Frame owner,
                         String title)
      • DialogESC

        public DialogESC​(Frame owner,
                         String title,
                         boolean modal)
    • Method Detail

      • createDialog

        public static DialogESC createDialog​(Component component,
                                             String title)
        Convencience static method to create instance. It will create modal dialog It will search for the owner Window (Frame or Dialog) as specified by JDialog constructor owner
        Parameters:
        component - component that will be searched for the Frame or Dialog owner
        title - title as String
        Returns:
        DialogESC as modal
        See Also:
        createDialog(Component, String, boolean)
      • createDialog

        public static DialogESC createDialog​(Component component,
                                             String title,
                                             boolean modal)
        Convencience static method to create instance. It will search for the owner Window (Frame or Dialog) as specified by JDialog constructor owner
        Parameters:
        component - component that will be searched for the Frame or Dialog owner
        title - title as String
        modal - true or false
        Returns:
        DialogESC
      • createRootPane

        protected JRootPane createRootPane()
        Overidden to make Escape key to close this dialog
        Overrides:
        createRootPane in class JDialog
      • setAllowESC

        public void setAllowESC​(boolean allow)
        Setting allow Escape key to close, default is true
        Parameters:
        allow - true or false
      • isAllowESC

        public boolean isAllowESC()