Exemple #1
0
  /** Presses the retry button. */
  final void pressRetryButton() {
    final MyButton rb = buttonClass(retryButton());

    if (rb != null && rb.isVisible() && rb.isEnabled()) {
      SwingUtilities.invokeLater(
          new Runnable() {
            @Override
            public void run() {
              rb.pressButton();
            }
          });
    }
  }
Exemple #2
0
  /** Hides the retry button if it is there. */
  public final void hideRetryButton() {
    final MyButton rb = buttonClass(retryButton());

    if (rb != null && rb.isVisible()) {
      SwingUtilities.invokeLater(
          new Runnable() {
            @Override
            public void run() {
              rb.setVisible(false);
            }
          });
    }
  }