return new JButton(label, icon);
JButton button = new JButton(action); button.setText(label); button.setIcon(icon); return button;
  private JButton makeButton(String label, String iconFilename) {    // replace spaces in label with <br> so that labels fit on buttons    int index = label.indexOf(' ');    while (index != -1) {      label = label.substring(0, index) + "<br>" +        label.substring(index+1);      index = label.indexOf(' ');    }    label = PRE + label + POST; // formatting    URL iconURL = getClass().getResource(iconFilename);    if (iconURL == null)      return new JButton(label);    ImageIcon icon = new ImageIcon(iconURL);    return new JButton(label, icon);  }