Re: SwixML UI descriptors in a Jar file
Kazuhiko TAMURA <[email protected]>
| Newsgroups | gmane.comp.embedded.carlsbad-cubes |
|---|---|
| Message-ID | <[email protected]> |
Dimitri Pissarenko <[email protected]> wrote: > Hello! > > I am working on an open source project > (http://demetrix.sourceforge.net/), parts of which I want to use in > several other projects. > > The JAR file of that project uses SwixML for displaying some common > properties. > > Is it possible to use SwixML, if the UI descriptors of the forms and > panels are stored in a JAR file? > > TIA > > dap > Hi dap, By following way, it is possible to load the XML file defined the resource such as form, label and panel. 1. Add jar files included XML files to the classpath. 2. Load resource files with ether ClassLoader.getResource() or ClassLoader.getResourceAsStream() method. 3. Construct the component with SwixML library. Regards, ktz