Apprisant Logo Project Demo

This demo is a hypothetical project status display. Each rectangle represents a project, positioned by priority. The color of the rectangle displays the project type, and the red or green dot in the top right corner indicates its status, waiting or ready.

The Add button adds additional predefined projects while the Remove button removes the selected project.

Click on the screen shot to run the applet.

Java Web Start
Command line: javaws http://www.apprisant.com/product/demo/project/project.jnlp

screen shot

The demo's data model, ProjectData, extends the toolkit's SimpleDataModel class to hold Job instances, and fires events as they are added and removed. The ProjectModel class extends the toolkit's element model and uses a layout manager to implement dynamic layout based on the priorities of the jobs and the rendered sizes of the headers.

The main class, Project, assembles the demo using renderers from the ProjectRenderers class or read from the project.rdr XML file. Shape and text renderers display the projects. Note the use of converters to read the job type and status values from the XML file.

The project.properties file sets rendering hints.