import javax.swing.*; public class Jaotuspaneel{ public static void main(String argumendid[]){ JSplitPane paneel=new JSplitPane( JSplitPane.VERTICAL_SPLIT, new JButton("Ülemine"), new JToggleButton("Alumine") ); JFrame f=new JFrame("Jagatud raam"); f.getContentPane().add(paneel); f.setSize(200, 200); f.setVisible(true); } }