To load images into your application at runtime, start with a placeholder in an Image component. Dynamically loaded images do not require an Image Definition
in the Image Definitions Folder, but instead require that you instantiate a RuntimeImageDefinition
in your Java code. You can use the UICreateEvent
to access your Panel and its Image component, and use the Image component’s setImage
method to assign the image that you are accessing by URL
or API
.
For details on accessing Panels and UI Components in Java code see the UI Annotations section.
Image REQUESTED
Sample Java code for setting an Image Definition dynamically and loading an image at runtime