Hi,
you could add your own listener to this object.
Consider this sample:
. . .
import javax.swing.JPanel;
import java.awt.event.*;
. . .
public void onStart(IContext context) throws JFException {
this.userInterface = context.getUserInterface();
JPanel myTab = context.getUserInterface().getBottomTab("My new tab");
myTab.addHierarchyListener(new HierarchyListener(){
@Override
public void hierarchyChanged(HierarchyEvent e) {
if (e.getChangeFlags() == HierarchyEvent.DISPLAYABILITY_CHANGED)
console.getOut().println(" Close My tab ");
}
});
}