Ejemplo n.º 1
0
  /**
   * Toggle the info display in the calculator's status area between the author and version
   * information.
   */
  private void showInfo() {
    if (showingAuthor) status.setText(calc.getVersion());
    else status.setText(calc.getAuthor());

    showingAuthor = !showingAuthor;
  }