JSplitPane in Java Swing

Home  »  Java  »  Advance Java  »  Java Swing II  »  JSplitPane


The JSplitPane is commonly used component because it lets you split your window horizontally or vertically in order to create a wide variety of GUI elements to suit your application's needs.

A JSplitPane displays two components, either side by side or one on top of the other. By dragging the divider that appears between the components, the user can specify how much of the split pane's total area goes to each component. You can divide screen space among three or more components by putting split panes inside of split panes

The below program showing how to use JSplitPane in java swing...



C:\>jdk1.4\bin>javac JSplitPaneDemo.java
C:\>jdk1.4\bin>java JSplitPaneDemo


"Output of JSplitPaneDemo.class"


Download Complete Program

  -  



Java Swing-II


JOptionPane Class Input Dialog Boxes JSliders
JProgressBars JTables JTabbedPane
JMenu JPopupMenu JToolBar
JFileChooser JScrollBar JScrollPane
JRootPane JTextPane JTree
JSplitPane JDesktopPane JEditorPane




1 comment: