I have an application with a JSplitPane with JTree Left - and JTabbedPane Right Component.
When you click on a node in the JTree a JPanel appears in the JTabbedPane (There can only be one JPanel on the JTabbedPane so i use the JTabbedPane.removeAll() to clear the JTabbedPane, this works fine)
The JPanel has a JButton on it to remove the JPanel from its parent the JTabbedPane, ( ((JTabbedPane)JPanel.getParent()).removeAll() ) using the same method as clicking on different nodes, but the item does not refresh before either an run time error occurs or you click on a diffrent node. Why ?
( It is either a focus error or ... ? )
Is there any one that can help me ?
Frustrated Grinler :(