title: Set Graphic to label
body: <p>I want to set Label to graphic. I tested this code:</p>
  
  <pre><code>    private static final ImageView livePerformIcon;
  
          static
          {
              livePerformIcon = new ImageView(MainApp.class.getResource("/images/Flex.jpg").toExternalForm());
          }
  
  final Label label = new Label();
              label.setStyle("-fx-background-image: url(\"/images/Flex.jpg\");");
  
              livePerformIcon.setFitHeight(20);
              livePerformIcon.setFitWidth(20);
              label.setGraphic(livePerformIcon);
  </code></pre>
  
  <p>But I don't see any image.</p>
  
  <p>The only way that I found to make it work is this:</p>
  
  <pre><code>label.setStyle("-fx-background-image: url(\"/images/Flex.jpg\");");
  </code></pre>
  
  <p>Is there a way to solve this?</p>