|
Duplicate :
|
|
|
Duplicate :
|
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
|