code: public void init(Icon icon, String text)
      {
          if (text != null)
              this.setText(text);
          if (icon != null)
              this.setIcon(icon);
          this.addMouseListener(this);
      }
docs: Constructor.
  NOTE: The params are reversed, because JButton has an init(text, icon) method.
  @param icon The (optional) button icon.
  @param text The (optional) button text.