-
Bug
-
Resolution: Duplicate
-
P2
-
None
-
6
-
generic
-
generic
Please compile and run the attached test case with the latest Swing PIT (Containing the fix for Tabs as JComponent).
Steps to reproduce:
------------------
1) Compile and run the attached test case.
2) Click on the "Remove the Button from Tab" button. This will remove the tab component and add it a JPanel (Pink colored).
3) We can see that the tab component is removed.
4) Now Change the look and feel from the Look and Feel menu to windows.
5) Notice that the TabComponent (JButton in this case) comes back on the tab.
There is one more bug filed similar to this. But that bug is about removing the component on the Tab page. This one is removing the component from the Tab and not the TabbedPane's Page. Please see Bug#6252222 (Adding a tab component to another parent should clean up tabbed pane )
###@###.### 2005-04-14 07:57:49 GMT
Steps to reproduce:
------------------
1) Compile and run the attached test case.
2) Click on the "Remove the Button from Tab" button. This will remove the tab component and add it a JPanel (Pink colored).
3) We can see that the tab component is removed.
4) Now Change the look and feel from the Look and Feel menu to windows.
5) Notice that the TabComponent (JButton in this case) comes back on the tab.
There is one more bug filed similar to this. But that bug is about removing the component on the Tab page. This one is removing the component from the Tab and not the TabbedPane's Page. Please see Bug#6252222 (Adding a tab component to another parent should clean up tabbed pane )
###@###.### 2005-04-14 07:57:49 GMT
- duplicates
-
JDK-6252222 Adding a tab component to another parent should clean up tabbed pane
- Resolved