i have this problem, once again i have a splitpane that has 2 scrollpanes on the left and on the right.the left scrollpane contains a tree and the right sp contains a jpanel that displays various components depending on the node selected.
the problem is , when selected , everything seems to work fine until the retrieval of the gui in the userObject (userObjec.getGui() returns a jpanel containing components).To display the gui i do something like:
guiPanel = new JPanel(new BorderLayout());
//after an event in the valueAdded() method of treeSelectionListener
//******the problem is here
no uo.getGui() returns the correct jpanel (i did a print() ) , but the remove all doesnt seem to work well because at times ,the component displayed on the right is the correct one and at times it doesn't change.. which seems bizzaire..
any ideas.. hoping i was clear enuff
thanks in advace