United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6252222 Adding a tab component to another parent should clean up tabbed pane
JDK-6252222 : Adding a tab component to another parent should clean up tabbed pane

Details
Type:
Bug
Submit Date:
2005-04-07
Status:
Resolved
Updated Date:
2011-01-19
Project Name:
JDK
Resolved Date:
2005-06-01
Component:
client-libs
OS:
generic
Sub-Component:
javax.swing
CPU:
generic
Priority:
P2
Resolution:
Fixed
Affected Versions:
6
Fixed Versions:

Related Reports
Duplicate:
Duplicate:

Sub Tasks

Description
Consider this test case:

JTabbedPane tp = new JTabbedPane();
tp.add("Title", new JPanel());

JButton button = new JButton();
tp.setTabComponentAt(0, button);

JPanel p = new JPanel();
p.add(button);

The last line, which adds the button to a new parent, causes it to be removed from it's previous parent. The problem is that JTabbedPane needs to be able to deal with this and cleanup properly.
###@###.### 2005-04-07 19:51:10 GMT
###@###.### 2005-04-14 14:53:27 GMT

                                    

Comments
EVALUATION

Removing tabComponent from tabContainer must update properly JTabbedPane.Page instance
###@###.### 2005-04-10 12:48:00 GMT
                                     
2005-04-10



Hardware and Software, Engineered to Work Together