public void stateChanged(ChangeEvent e){
  int index=tabbedPane.getSelectedIndex();
  m_selectionActive=(index == 0);
}

public void stateChanged ( ChangeEvent e ) { int index = tabbedPane . getSelectedIndex ( ) ; m_selectionActive = ( index == 0 ) ; }
change listener ( tab changed )
