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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Withdrawn
    • Affects Version/s: 7u40
    • Fix Version/s: None
    • Component/s: javafx
    • Labels:
    • Environment:

      Windows XP, NetBeans 7.1, Java 7

      Description

      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>

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: