Following part of java program will demonstrate you the use of JSplitPane class of java, please review it carefully:
Code:
public JSplitPane()
JSplitPane splitPn = new JSplitPane();
public JSplitPane(int Orn)
JSplitPane splitPn = new JSplitPane(JSplitPane.VERTICAL_SPLIT);
public JSplitPane(int Orn, Component newLeftComponent, Component newRightComponent)
JComponent topComponent = new JButton("Top Button");
JComponent bottomComponent = new JButton("Bottom Button");
JSplitPane splitPn = new JSplitPane(JSplitPane.VERTICAL_SPLIT, topComponent, bottomComponent);
public JSplitPane(int Orn, boolean newContinuousLayout)
JSplitPane splitPn = new JSplitPane(JSplitPane.VERTICAL_SPLIT, true);
public JSplitPane(int Orn, boolean newContinuousLayout, Component newLeftComponent, Component newRightComponent)
JSplitPane splitPn = new JSplitPane(JSplitPane.VERTICAL_SPLIT, true, topComponent, bottomComponent);
Bookmarks