code: public void configureButton(AbstractButton button) {
          Assert.notNull(button);
          button.setText(this.text);
          button.setMnemonic(getMnemonic());
          button.setDisplayedMnemonicIndex(getMnemonicIndex());
      }
docs: Configures the given button with the properties held in this instance. Note that this
  instance doesn't hold any keystroke accelerator information.
  
  @param button The button to be configured.
  
  @throws IllegalArgumentException if {@code button} is null.