Resources

Resources are images (.gif, .jpg, .png), documents (.html, .rtf, .txt, referenced with the page property of JEditorPane) or JAR files from which custom Beans were imported.

Whenever you reference an image or document, you specify its location (most often you do this by loading the resource through a file dialog). RADi needs a way to reference a resource relative to the project location, so the reference will stay valid when the project is moved.
The one location RADi knows of and will always search for resources is the project's resources directory.

So, whenever you load a resource from a location other than the project directory, you will see a offering you to copy the resource to the resources directory.


The Check Resources dialog

From the of the active project select 'Check Resources'. This command searches for non-relative references and for non-existing references (displayed in red) and also for unreferenced files in the resources directory.
Copy resources copies the specified resources to the project's resources directory and updates all references.
Delete resources irrevocably deletes the specified files.

Note: RADi only knows about its own resources, so, if a resource is marked as unused, it might easily be used by other code. Icons and URLs specified as default values when extending an R-Bean's public interface are not considered when checking resources.


Missing resources

At startup or when a layout is displayed the first time, RADi may encounter references to non-existing resources. If this is the case, you will see a telling you, which resources are missing and which references are invalid.

You will have to inspect the components in question. For missing images you will see this , text panes whose "page" URL can not be resolved, you will see this , missing custom Beans will mutate to .

Note: If the missing resource is a custom Bean, you probably moved or deleted or renamed the JAR file from which the Bean was imported.

See also:
Packaging your application
JavaBeans(TM) Support