getContentPane().add(new JButton("JButton south"), BorderLayout.SOUTH);      JMenuBar mb = new JMenuBar(); JMenu menu = new JMenu("JMenu test"); JMenuItem mi = new JMenuItem("JMenuItem test"); mb.add(menu); menu.add(mi); setJMenuBar(mb);
getContentPane().add(south = new JButton("JButton south"), BorderLayout.SOUTH);
    public SwingTest(String title) {        super(title);        getRootPane().setDoubleBuffered(false);        setLocation(100, 100);        setSize(400, 400);        getContentPane().add(new JButton("JButton north"), BorderLayout.NORTH);        getContentPane().add(new JTextArea("JTextArea test"), BorderLayout.CENTER);        getContentPane().add(new JButton("JButton south"), BorderLayout.SOUTH);        //JTabbedPane tabs = new JTabbedPane();        //tabs.add("Tab1", new JButton("JButton1"));        //tabs.add("Tab2", new JButton("JButton2"));        //tabs.add("Tab3", new JButton("JButton3"));        //getContentPane().add(tabs, BorderLayout.CENTER);        JMenuBar mb = new JMenuBar();        JMenu menu = new JMenu("JMenu test");        JMenuItem mi = new JMenuItem("JMenuItem test");        mb.add(menu);        menu.add(mi);        setJMenuBar(mb);    }