Java Gui Builder
You are here: Home   >   Documentation   >   Batch & Scripts Reference

Batch & Scripts Reference

The Java Gui Builder comes with a few scripts. These can be used out of the box for the functionnality they provide. Alternatively, you can copy them and use them as you see fit.

The table below summarizes the batch files or shell scripts and any parameters associated with them.

Script Name Options Description
bin/runexample.bat
bin/runexample.sh
--verbose
-v
Makes the jgb.builder.Builder verbose by reporting every element as it is encountered and any ID attributes.
--show
Makes the jgb.BuildWindowFromXmlFile pack and show the window once it is built.
This script sets the classpath to include jgb.jar, jgb-examples.jar, your personal classpath and finally jaxp.jar from the lib/ folder.
It then starts up the JVM with the jgb.BuildWindowFromXmlFile class. Command line parameters are directly passed to the class.
bin/testwin.bat
bin/testwin.sh
--verbose
-v
Makes the jgb.builder.Builder verbose by reporting every element as it is encountered and any ID attributes.
--show
Makes the jgb.BuildWindowFromXmlFile pack and show the window once it is built.
This script sets the classpath to include jgb.jar, your personal classpath and finally jaxp.jar from the lib/ folder.
It then starts up the JVM with the jgb.BuildWindowFromXmlFile class. Command line parameters are directly passed to the class.
You will notice that this script does the same thing as bin/runexample.bat, except it does not include jgb-examples.jar.
bin/tojava.bat
bin/tojava.sh
None This script uses Xalan's command line XSLT processor to transform from the XML GUI description to a Java implementation that does the same layout. This allows you to define your window simply in an XML format and then translate to Java for performance reasons, or otherwise.
This script has three required parameters:
xmlsource
The path to the XML source file you want to translate.
buildDir
The folder in which the generated file should be created. You should include the package path in this parameter.
package
The package in which the class will be created.
bin/validatefile.bat
--verbose | -v
Makes the jgb.ValidateFile verbose by reporting every element as it is encountered, as well as any ID attributes.
This script sets the classpath to include jgb.jar, your personal classpath and finally jaxp.jar from the lib/ folder.
It then starts up the JVM with the jgb.ValidateFile class. Command line parameters are directly passed to the class.
Use this script when you want to validate that one of your XML GUI description files is valid compared to the JGB DTD included in your version.
Back to top
SourceForge Logo
Hosted on SourceForge.net
Valid XHTML 1.0!
Valid XHTML 1.0 !
Valid CSS!
Valid CSS !
Code Coverage by Clover
Code Coverage provided by Clover
 |  Home |  License |  Downloads |  Documentation |  Developers |  Mailing Lists |  Dependencies |  Links |  Privacy Policy |  SF Project Home |