C
christopher
Greetings,
I can access the contents of the jar files indicated as archives in
the applet tag using the getResource() method. However, I want to be
able to alter the contents of the jar without hard-coding all the file
names. Unfortunately, I cannot find a way to get a directory listing
from the jar file.
In short:
url=getClass().getResource("/"+animationRoot+"/rotate/0.png");
gives a valid URL but:
url=getClass().getResource("/"+animationRoot+"/");
or
url=getClass().getResource("/"+animationRoot);
do not.
Is there a solution to this?
thx
I can access the contents of the jar files indicated as archives in
the applet tag using the getResource() method. However, I want to be
able to alter the contents of the jar without hard-coding all the file
names. Unfortunately, I cannot find a way to get a directory listing
from the jar file.
In short:
url=getClass().getResource("/"+animationRoot+"/rotate/0.png");
gives a valid URL but:
url=getClass().getResource("/"+animationRoot+"/");
or
url=getClass().getResource("/"+animationRoot);
do not.
Is there a solution to this?
thx