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

JavaFx2 ImageView with icon displays in Scenebuilder but does not display during runtime

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Withdrawn
    • Icon: P4 P4
    • None
    • 7u40
    • javafx
    • Windows XP, NetBeans 7.1, Java 7

      In Scenebuilder 1.1 I added an Imageview to a gridpane and selected an icon as a jpeg image. I stored the icon in My Documents\NetBeansProjects\MyProject. It shows up fine in Scenebuilder however when I run the program, no icon shows.

      Here is the tag in my fxml file

                      <ImageView fitHeight="36.28910772144808" fitWidth="96.66667175292969" pickOnBounds="true" preserveRatio="true" GridPane.columnIndex="0" GridPane.rowIndex="0">
                        <image>
                          <Image url="@../../my_pic.JPG" />
                        </image>
                      </ImageView>

            eleponn Eric Le Ponner
            aphilipjfx Anil Philip (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: