Change components in TabbedPane
Is there a way to add a Component to a tab only after it has been selected (on selectionChanged event)?
My application has 7 tabs with different components on each and I don't want to create all the components for each tab when I add it. I just want to create the component when a user selects the tab.
So two possible changes would be.
TabbedPane.addTab(title, icon, null); // allow null component
TabbedPane.setTabComponent(index, component); // call on selectionChanged event