/** 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(); } }); } }
/** 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); } }); } }