JDK-6255141 : Removing the TabComponent from the the Tab is not behaving properly.
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 6
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2005-04-14
  • Updated: 2010-04-02
  • Resolved: 2005-04-14
Related Reports
Duplicate :  
Description
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

Comments
EVALUATION This is actually a duplicate of 6252222. I actually intended to file that bug about removing components from tabs, but used a bad test case. I'll update that bug with the correct test case. ###@###.### 2005-04-14 14:41:03 GMT
14-04-2005