setTitle();
   public void stateChanged(ChangeEvent e) {      JTabbedPane p = (JTabbedPane)e.getSource();      p.setForegroundAt(selectedIndex,Color.black);      p.setIconAt(selectedIndex,unfocused);      Session sg = (Session)p.getComponentAt(selectedIndex);      sg.setVisible(false);      sg = (Session)p.getSelectedComponent();      if (sg == null)         return;      sg.setVisible(true);      sg.grabFocus();      selectedIndex = p.getSelectedIndex();      p.setForegroundAt(selectedIndex,Color.blue);      p.setIconAt(selectedIndex,focused);   }