setTitle();
setSessionTitle();
   private void prevSession() {      final int index = sessionPane.getSelectedIndex();      sessionPane.setForegroundAt(index,Color.black);      sessionPane.setIconAt(index,unfocused);      SwingUtilities.invokeLater(new Runnable() {         public void run() {            int index1 = index;            if (index1 == 0) {               sessionPane.setSelectedIndex(sessionPane.getTabCount() - 1);               sessionPane.setForegroundAt(sessionPane.getSelectedIndex(),Color.blue);               sessionPane.setIconAt(sessionPane.getSelectedIndex(),focused);            }            else {               sessionPane.setSelectedIndex(--index1);               sessionPane.setForegroundAt(index1,Color.blue);               sessionPane.setIconAt(index1,focused);            }            ((Session)sessionPane.getComponent(sessionPane.getSelectedIndex())).grabFocus();            setTitle();       }      });   }