Building the Library

  1. Comfirm you have a working version of Ant installed.
  2. Download the source jar from SourceForge.
  3. Extract the code from the source jar. It will expand into a folder called YetAnotherSwingLib with the following files and sub-folders:
    • build.xml
    • /deployment
    • /lib (This folder is a placeholder for future use.)
    • /logging-props
    • /source
    • /source-slf4j
  4. Execute the following in the same folder as build.xml: ant build. The build.xml file has the following targets:
    • api: creates API documentation in the JavaDoc format.
    • build: compiles all source files and creates all jars.
    • clean: removes all files created by the build.
    • clean-build: executes clean then build.

The output from the build will be located in the deployment folder. The build will create four jar files:

Running the Test Application

You can run the test application with the following command: java -jar yasl-testapp-1.0.jar. The sole purpose of this application is to test components and architecture features. Note that the test application depends on the other three yasl jars. These jars (slf4j-api-1.3.0.jar; yasl-arch-1.0.jar; yasl-slf4j-1.0.jar; yasl-components-1.0.jar) must be in the same folder as the test application jar.