public void setTabCloseCallback( int tabIndex, BiConsumer<JTabbedPane, Integer> tabCloseCallback ) {
		JComponent c = (JComponent) getComponentAt( tabIndex );
		c.putClientProperty( TABBED_PANE_TAB_CLOSE_CALLBACK, tabCloseCallback );
	}
Specifies the callback that is invoked when the tab close button at the given tab index is clicked.
The callback is responsible for closing the tab.

@see #setTabCloseCallback(BiConsumer)
flatlaf-extras/src/main/java/com/formdev/flatlaf/extras/components/FlatTabbedPane.java