interfacePanel = new JPanel(); interfacePanel.setLayout(new AlignLayout(2,5,5));
interfacePanel = new JPanel(new GridBagLayout());
   private void createEmulatorOptionsPanel() {      // create emulator options panel      emulOptPanel.setLayout(new BorderLayout());      JPanel contentPane = new JPanel();      contentPane.setLayout(new BoxLayout(contentPane,BoxLayout.Y_AXIS));      emulOptPanel.add(contentPane,BorderLayout.NORTH);      // setup the frame interface panel      interfacePanel = new JPanel();      interfacePanel.setLayout(new AlignLayout(2,5,5));      TitledBorder tb = BorderFactory.createTitledBorder(                              LangTool.getString("conf.labelPresentation"));      interfacePanel.setBorder(tb);      ButtonGroup intGroup = new ButtonGroup();      // create the checkbox for hiding the tab bar when only one tab exists      hideTabBar = new JCheckBox(LangTool.getString("conf.labelHideTabBar"));      hideTabBar.setSelected(false);      if (props.containsKey("emul.hideTabBar")) {         if (props.getProperty("emul.hideTabBar").equals("yes"))            hideTabBar.setSelected(true);      }      hideTabBar.addItemListener(new java.awt.event.ItemListener() {         public void itemStateChanged(ItemEvent e) {            hideTabBar_itemStateChanged(e);         }      });      intTABS = new JRadioButton(LangTool.getString("conf.labelTABS"));      intTABS.setSelected(true);      intTABS.addItemListener(new java.awt.event.ItemListener() {         public void itemStateChanged(ItemEvent e) {            intTABS_itemStateChanged(e);         }      });      intMDI = new JRadioButton(LangTool.getString("conf.labelMDI"));      // add the interface options to the group control      intGroup.add(intTABS);      intGroup.add(intMDI);      if (props.containsKey("emul.interface")) {         if (props.getProperty("emul.interface").equalsIgnoreCase("MDI"))            intMDI.setSelected(true);      }      interfacePanel.add(intTABS);      interfacePanel.add(hideTabBar);      interfacePanel.add(intMDI);      interfacePanel.add(new JLabel());      // create show me panel      JPanel showMePanel = new JPanel();      TitledBorder smb = BorderFactory.createTitledBorder("");      showMePanel.setBorder(smb);      showMe = new JCheckBox(LangTool.getString("ss.labelShowMe"));      if(props.containsKey("emul.showConnectDialog"))         showMe.setSelected(true);      showMe.addItemListener(new java.awt.event.ItemListener() {         public void itemStateChanged(ItemEvent e) {            showMe_itemStateChanged(e);         }      });      showMePanel.add(showMe);      contentPane.add(interfacePanel);      contentPane.add(showMePanel);   }