(int index)
| 1034 | /// |
| 1035 | /// - #insertTab |
| 1036 | public void removeTabAt(int index) { |
| 1037 | checkIndex(index); |
| 1038 | int act = activeComponent - 1; |
| 1039 | act = Math.max(act, 0); |
| 1040 | setSelectedIndex(act); |
| 1041 | Component key = tabsContainer.getComponentAt(index); |
| 1042 | tabsContainer.removeComponent(key); |
| 1043 | Component content = contentPane.getComponentAt(index); |
| 1044 | contentPane.removeComponent(content); |
| 1045 | setTabsLayout(tabPlacement); |
| 1046 | } |
| 1047 | |
| 1048 | /// Returns the tab at `index`. |
| 1049 | /// |