Dynamically Change Tab Border in JTabbedPane
Hi, I have a JTabbedPane which adds new tabs dynamically (according to user action). Every time a Tab is added its inner component is being written in a process which takes +- 20 seconds. I want to change the Tab border to yellow "LineBorder" at the beginning of this process and to green when the process ends. I searched JTabbedPane API and found no reference to a single Tab object so I can't access it nor to change its border.
Is there a way to access a single Tab object according to its index?
(not the inner component but the Tab frame itself)