-
Bug
-
Resolution: Fixed
-
P2
-
6
-
b39
-
generic
-
generic
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
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
- duplicates
-
JDK-6255141 Removing the TabComponent from the the Tab is not behaving properly.
- Closed
-
JDK-6255191 After removing the Tab component, the initial title of the Tab does not come back.
- Closed