Loading icons out of a jar file

Mathias Payer <[email protected]> Thu, 16 Sep 2004 08:28:46 +0200
Newsgroups gmane.comp.embedded.carlsbad-cubes
Organization ETH Zurich
Message-ID <[email protected]>
Hi there!
I'm designing an application with the SWIXML Interface.
The whole application will be packed into a jar file (eg. xyz.jar),
shipped with the swixml and other jar files.
The XML-File containing the user interface will also be in xyz.jar

In the program itself the XML-File is loaded with
--SNIP--
Container container =
	swix.render(this.getClass().getResource("StartUp.xml"));
--SNAP--

This XML-File contains some menu items and lots of other stuff.
Now I'm wondering if it is possible to load the icons (specified in the
XML File) also from a JAR file.
e.g. from the directory ./icons relative in the xyz.jar File

And the main question is, if it is possible, how to specify the
--SNIP--
icon="icons/new.gif"
--SNAP--
So that the icon is loaded from the JAR File.

Thanks in advance!

Sincerly yours
Mathias Payer

-- 
GPG-Key: http://relay.gmgnet.li/gpg-keys/payerm_student_ethz_ch.key
Kontakt-Infos: http://relay.gmgnet.li/mathias_payer/kontakt.html

_______________________________________________
Forum mailing list
[email protected]
http://carlsbadcubes.com/mailman/listinfo/forum_carlsbadcubes.com
signature.asc (application/pgp-signature, 197 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iEYEARECAAYFAkFJMqMACgkQqkE3W4yIscHkJwCfRkWBWjXsdREw2NANBjaOMonK
auUAoLUbOTmhtk5RYSWEVP3N63htu4ty
=+qgP
-----END PGP SIGNATURE-----