@Override public void connectionChange(ConnectionEvent evt){
  m_Connected=evt.isConnected();
  m_DbUtils=evt.getDbUtils();
  setButtons();
}

@ Override public void connectionChange ( ConnectionEvent evt ) { m_Connected = evt . isConnected ( ) ; m_DbUtils = evt . getDbUtils ( ) ; setButtons ( ) ; }
this method gets called when the connection is either established or disconnected .
