Code example for Button

Methods: setEnabled

0
    disconnect(); 
  } 
   
  private void disconnect() { 
    service=null;
    btn.setEnabled(false);
  } 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE