I'm trying building my tab object close action and for that I'm thinking some ways to do it. The easiest (until now I think so) it's to remove the tab component through the tab index like:
tabcomponent.remove(int index);
but my problem is, I don't know how to get the tab I'm focused on the application (such as returning this focused tab as an int) and pass this to the index to continue the close operation. I found nothing about this problem researching on internet and I would like to know if someone else has another opinion or idea to solve this? thanks in advance