tabbedPane.removeTabAt(0);
DockLayout dockLayout = (DockLayout)desktop.getLayout();
dockLayout.replaceLayoutComponent(tabbedPane, frame);
desktop.remove(tabbedPane);
desktop.add(frame);
desktop.moveToFront(frame);
}
}
protected JInternalFrame getInternalFrame(JTabbedPane tabbedPane, int tabIndex) {
return getInternalFrame(tabbedPane.getComponentAt(tabIndex));