setTabComponentCloseCallback

fun JComponent.setTabComponentCloseCallback(tabCloseCallback: TabCloseCallback)

Configures the callback for deciding on the tab close type on this tab component. Note that this is only relevant for tabs configured with JComponent.setTabComponentCloseButtonVisible and JTabbedPane.setTabCloseButtonsVisible APIs.

Parameters

tabCloseCallback

Callback for deciding on the tab close type on the tab component.

See also