Skip to main content

[REORG] Demo

No replies
Joined: 2003-07-08

Hey everybody,

I just cut some code to the reorg project for doing demos. I created a new subdirectory beneath reorg called demos. I don't have the build.xml or netbeans project files created for it, however.

In the org.jdesktop.demo package are two files, CmdLineParser and Main. The CmdLineParser code is from the jargs project on sourceforge (bsd licensed). The Main file contains common code to be reused by all of the demos.

I then have an org.jdesktop.demo.ab package that contains the Adventure Builder demo that I've been using to test the DataSet API in the incubator. This demo should compile for everybody (if it doesn't let me know!). You may not get the pictures though...

In order to run the Adventure Builder demo, you actually run the common Main file, and pass in the name of the adventure builder main form. For example, I use the following settings to run the demo:

main class: org.jdesktop.demo.Main
vm args: -Dorg.jdesktop.demo.LookAndFeel=com.jgoodies.looks.plastic.PlasticXPLookAndFeel -Dorg.jdesktop.demo.Theme=com.jgoodies.looks.plastic.theme.ExperienceBlue
application args: -w org.jdesktop.demo.ab.MainWindow

So the only difference from running one demo or another is the application arg -w.