public void setIcon(Icon icon) {
      if (myIcon != null) {
        remove(myIcon);
      }

      if (icon != null) {
        myIcon = new JLabel(icon, SwingConstants.CENTER);
        myIcon.setVerticalAlignment(SwingConstants.TOP);

        add(myIcon, BorderLayout.WEST);
      }

      revalidate();
      repaint();
    }
public void setIcon(Icon icon)