Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ImageView image created in Scene Builder 2.0 doesn't display in running app

TOLIS TimSep 9 2014 — edited Nov 5 2014

I'm using Scene Builder 2.0 and have added an ImageView to the parent AnchorPane.  I've added my PNG files for the app icon and the various buttons. I select the ImageView in Scene Builder and then crawl the filesystem to the project package folder and select the PNG for the Image.  The assigned image is displayed in the Imageview in Scene Builder in both design mode and Preview mode.

While everything else shows up properly when the app is executed, the image assigned to the ImageView does not display.

From the FXML file:

      <ImageView fx:id="ivBRULogo" fitHeight="64.0" fitWidth="64.0" layoutX="14.0" layoutY="14.0" pickOnBounds="true" preserveRatio="true" AnchorPane.leftAnchor="14.0" AnchorPane.topAnchor="14.0">

         <image>

            <Image url="@BRU_PE_B_64.png" />

         </image>

      </ImageView>

Does anyone have an idea of what might be occurring between the compiled app and what Scene Builder generates?

Thanks,

Tim

This post has been answered by TOLIS Tim on Sep 9 2014
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 3 2014
Added on Sep 9 2014
6 comments
6,217 views