code: public void setSvgIcon(final SVGIcon svgIcon) {
          if (this.svgIcon != null) {
              stack.getChildren().remove(this.svgIcon);
          }
          this.svgIcon = svgIcon;
          this.svgIcon.setSize(size);
          stack.getChildren().add(this.svgIcon);
          stack.requestLayout();
      }
docs: Method sets the icon to display.
  @param svgIcon