c.setLayout(new GridBagLayout());
    private void buildGUI()    {        Container c = getContentPane();        c.setLayout(new GridBagLayout());        //      Create and initialize the tabs        JTabbedPane tabs = new JTabbedPane(JTabbedPane.TOP,                                JTabbedPane.WRAP_TAB_LAYOUT);        tabs.setAlignmentX(LEFT_ALIGNMENT);        ControlPane pane = (ControlPane) controlPanes.get(DOMAIN);        tabs.insertTab(pane.getPaneName(), pane.getPaneIcon(), pane,                        pane.getPaneDescription(), pane.getPaneIndex());        pane = (ControlPane) controlPanes.get(CODOMAIN);        tabs.insertTab(pane.getPaneName(), pane.getPaneIcon(), pane,                        pane.getPaneDescription(), pane.getPaneIndex());        GridBagConstraints gbc = new GridBagConstraints();        gbc.fill = GridBagConstraints.BOTH;        gbc.anchor = GridBagConstraints.CENTER;                c.add(tabs, gbc);        gbc.gridy = 1;        gbc.fill = GridBagConstraints.NONE;        gbc.anchor = GridBagConstraints.EAST;        c.add(createButtonPanel(),gbc);    }