public void enableButtons(boolean b){
  pubButton.setEnabled(b);
}

public void enableButtons ( boolean b ) { pubButton . setEnabled ( b ) ; }
this enables or disables the publish button depending on the value of the boolean .
