Interface VetoableTabCloseListener

    • Method Detail

      • vetoTabClosing

        boolean vetoTabClosing​(javax.swing.JTabbedPane tabbedPane,
                               java.awt.Component tabComponent)
        Called when a tab is about to be closed. Can veto the tab closing.
        Parameters:
        tabbedPane - Tabbed pane.
        tabComponent - Tab component to be closed.
        Returns:
        true if the corresponding tab shouldn't be closed, false otherwise.