Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8119490

Relative path for ImageView not handled well

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • 8
    • 8
    • javafx
    • None

      Download attached “Relative-Graphic-Test.zip”

      Inside you will find “graphic-test.fxml”. Open this FXML in a text editor and you will see that the path to the image is relative:

      <image>
          <Image url="@HomeRemoteLogo.png" preserveRatio="true" smooth="true" />
      </image>

      However, when you open the FXML in SB2.0 there are a couple of issues:
      1. The path is displayed as an absolute path in the Inspector
      2. A warning Tooltip is shown in the Hierarchy.

            slions Sandra Lions-piron
            mchicharro Moises Chicharro
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: