Examples/Components.jaxx

From JAXXWiki

The Components demo displays many different Swing components being used in a variety of ways; it is JAXX's equivalent of the SwingSet demo. Various pages use advanced features such as data binding, scripting, event handling, and CSS stylesheets.

Screen shot

Image:Components-screenshot.gif

letovar

See it in action

To run this example in Java Web Start, click the following link: webstart.gif

To compile and run it yourself, first follow the instructions for installing JAXX. Then download and save the source code using the link below. Once you have done that, compile and run it as follows:

c:\jaxx\examples\Components> jaxxc Components.jaxx
c:\jaxx\examples\Components> java -classpath .;c:\jaxx\lib\jaxx-runtime.jar Components

The first command above assumes that you are in the directory containing the Components.jaxx file. Compiling it as shown will produce a class file named Components.class in the current directory, and because you were in the same directory as the JAXX file the resulting class will not be placed in a package (its fully-qualified name is just Components).

At this point Components is a perfectly ordinary Java class, and the only special requirement to run it is that jaxx-runtime.jar be in the classpath.

Source code

Unlike the other examples, the source code for Components is too big to display here. You can view it yourself by downloading JAXX, and you can also view the source code for the individual demos by clicking the "Source" tabs.