File

Specifies the file name and path of the image component. When the GUI Builder builds the panel, the image is found by using the file name and searching relative to where the GUI Builder started. For example, if the GUI Builder started from c:\mydirpanel and you specify ../img/myimage.gif as the file parameter for the component, the image is only loaded from the c:\mydirpanel\img subdirectory. You can also click  to locate the file.

When you preview a panel that contains a component referenced by File, the component is found by using the CLASSPATH environment variable. This is also true when you display the panel by using the runtime framework.