I'm looking for a way to clone (duplicate) a whole tab (the selected one) in a JTabbedPane
. Every time I take the tabwith getSelectedComponent()
and add it to the pane, the title of the tab disapnö rs and I get no second tab. But there is no exception.
I tried to copy the currently selected tab. Each tab is a JPanel
with a simple JTable
on it and I want to get the selected tab two times.