![]() |
Focus on the last active tab when closing current one?
Hi everyone,
I have a JTabbedPane and I am trying to figure out how to code it so that when closing the current tab, the last active tab is focused. I have some methods as below but they do not work as when closing, the stateChange method is called. Does anyone know how to code this and have it be n levels deep, not just one? Code:
frame.tabbedPane.addChangeListener(new ChangeListener() { |
| All times are GMT +5.5. The time now is 04:02. |