sessions.requestFocus();
addWindowListener(new WindowAdapter() { public void windowOpened(WindowEvent e) { SwingUtilities.invokeLater(new Runnable() { public void run() {  sessions.requestFocus(); } }); } });
   void jbInit() throws Exception {      // make it non resizable      setResizable(true);      this.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);      // create sessions panel      createSessionsPanel();      // create emulator options panel      createEmulatorOptionsPanel();      // create the button options      createButtonOptions();      JTabbedPane optionTabs = new JTabbedPane();      optionTabs.addChangeListener(this);      optionTabs.addTab(LangTool.getString("ss.labelConnections"),sessionPanel);      optionTabs.addTab(LangTool.getString("ss.labelOptions1"),emulOptPanel);      // add the panels to our dialog      getContentPane().add(optionTabs,BorderLayout.CENTER);      getContentPane().add(options, BorderLayout.SOUTH);      // pack it and center it on the screen      pack();      Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();      Dimension frameSize = getSize();      if (frameSize.height > screenSize.height)         frameSize.height = screenSize.height;      if (frameSize.width > screenSize.width)         frameSize.width = screenSize.width;      setLocation((screenSize.width - frameSize.width) / 2, (screenSize.height - frameSize.height) / 2);      // set default selection value as the first row or default session      if (sessions.getRowCount() > 0) {         int selInterval = 0;         for (int x = 0; x < sessions.getRowCount(); x++) {            if (((Boolean)ctm.getValueAt(x,2)).booleanValue())               selInterval = x;         }         sessions.getSelectionModel().setSelectionInterval(selInterval,selInterval);      }      sessions.requestFocus();      // now show the world what we and they can do      this.setVisible(true);   }