The BeanDemo Sample
[this is the initial sample project when AnyJ is installed]
Creating the workspace:
- Choose 'Workspace|new Workspace' from the menu.
- Select 'Core java Workspace' from the 'New Workspace' dialog. Also enter a directory to contain your project
configuration.
- Choose 'Workspace|Import .ajpr', select the 'beandemo.ajpr' found in the same directory as this readme.html.
Alternatively you may just drag the 'beandemo.ajpr' to the filetree or toolbar of AnyJ.
This sample shows:
- The usage of .ajpr files.
- How to organize a swing workspace
- How to create and use visual java beans
- How to deploy applications and java beans (see 'Tools|Deploy|..' to run deployment).
- Note that the source root has been added to the classpath, since the Main.java uses
an image which has to be found at runtime (via classpath).
- Also have a look at the deployment configuration; only .gif images are copied from the source tree to the deployment directory.
The correct RessourceBase setting is required here to ensure the images are deployed to the correct subdirectory.