public boolean isVisible(String btnName){
  Button btn=getButton(btnName);
  if (btn != null) {
    return btn.isVisible();
  }
 else {
    try {
      Messagebox.show("No " + btnName + " button available");
    }
 catch (    Exception e) {
      e.printStackTrace();
    }
    return false;
  }
}

public boolean isVisible ( String btnName ) { Button btn = getButton ( btnName ) ; if ( btn != null ) { return btn . isVisible ( ) ; } else { try { Messagebox . show ( "No " + btnName + " button available" ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; } return false ; } }
returns whether the specified button is visible or not
