| Author |
Split Pane & JTable - program hangs. Help!
|
Graham Russell
Greenhorn
Joined: Jul 15, 2004
Posts: 6
|
|
I have a split pane with the top half used for ComboBoxes and search criteria and the bottom half devoted to displaying the results of the search criteria in a JTable. This is how I bind my panels: doublePane = new JSplitPane(JSplitPane.VERTICAL_SPLIT, comboPanel, jsp); doublePane.setOneTouchExpandable(true); doublePane.setDividerLocation(200); (jsp is the JScrollPane in which I have my JTable). And this is how I try to display them: getContentPane().add(doublePane); setVisible(true); And yet when I run it the program just hangs. Any Ideas?
|
 |
sasi kala
Ranch Hand
Joined: Dec 17, 2004
Posts: 68
|
|
Hi, Try this code.... doublePane = new JSplitPane(); doublePane.setOrientation(JSplitPane.HORIZONTAL_SPLIT); doublePane.setOneTouchExpandable(true); doublePane.setDividerLocation(200); doublePane.setTopComponent(comboPanel); doublePane.setBottomComponent(jsp); getContentPane().add(doublePane); setVisible(true);
|
 |
 |
|
|
subject: Split Pane & JTable - program hangs. Help!
|
|
|