Interface VetoableMultipleTabCloseListener

    • Method Detail

      • vetoTabsClosing

        boolean vetoTabsClosing​(JTabbedPane tabbedPane,
                                Set<Component> tabComponents)
        Called when tabs are about to be closed. Can veto the tabs closing.
        Parameters:
        tabbedPane - Tabbed pane.
        tabComponents - Tab components to be closed.
        Returns:
        true if the corresponding tabs shouldn't be closed, false otherwise.