how can i use 2 splitpanes with 3 components
Posted on 2003-03-20
i want to use 2 SplitPanes for spliting 3 components at a time . The code will make it more clear.
ScrollPane1,ScrollPane2,ScrollPane3 are 3 scrollPanes having 3 components added to it.
sp1,sp2 are 2 SplitPanes.
panel is JPanel.
sp1 = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT,scrollPane,scrollPane1);
sp2 = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT,scrollPane1,scrollPane2);
Means i need to share scrollPane1 between 2 SplitPanes.
PROBLEM OCCURING : 2 SplitPanes are appered properly but only 1 is enabled which is added later i.e. splitPane2.
please give me the appropriate suggetions.
thanx in Advance