|
|
Overview
To ship your Java Swing based application by XMLPanelEdit, the following 3 steps are required:
To merge all the required files into a single JAR file in the last step, the output from the former 2 steps should be placed under the same root directory. So, for each of your product, the unique root directory should be allocated. This directory is called project directory and is specified by the project_root property of EditRun.properties.
To make the things clean,
By the Java Swing GUI tool (XML editor), you can write the Swing GUI into the XML.
You can create the tree structure of Swing GUI and edit the properties of each Swing Java component.
On some of Swing Java components, such as JButton or JLabel, image icons can be specified.
To start this Java Swing GUI builder, please edit EditRun.properties and specify your serial ID and project directory.
For each XML for Swing GUI, you need to create the corresponding Java class. XMLPanelEdit includes the 3 abstract classes for generating the Swing GUI from XML. They are:
For each one of your sub-classes, property resource files need to be prepared.
Each property resource file must point the path to the XML for the Swing GUI.
Because the run-time engine will read the property resource file appropriate for the run-time Locale, the different XML can be parsed for each run-time Locale.
Based on the parsed XML, your sub-class can generate the actual Swing GUI.
So, please prepare property resource files for all your intended Locales along with the default one. Note that these property resource files need to be placed just under project directory.
Then, please create manifest file for the JAR file so that it specifies the main class of your application. With the main class specified, double-clicking the JAR file will start your application in case of Windows OS. On UNIX platform, supplying -jar option can start your application.
Now that all you need are prepared. Merge them all into a single JAR file is enough.
Java and all Java-based trademarks and logos are trademarks or registered of Sun Microsystems, Inc. in the United States and other countries.
|
|
ALL CONTENTS COPYRIGHT 2002, Jun Inamori. All rights reserved.
Any questions and comments are welcome to
Jun Inamori
.