R
Rhino
I would like to have a file chooser that lets me look at all of the entries
in a Jar (and maybe a Zip file) the way that a standard JFileChooser lets me
look at all of the entries in a directory. Ideally, the jar could be located
in the filesystem, on or off the classpath, or even online at a location
described like this: jar:http:/xyz.com/images/photoJar!/
Standard JFileChoosers don't have any constructors for finding files in a
jar. Would I be able to get that functionality by subclassing JFileChooser
and adding new constructors that handle files in jars? Or would I have to
create a whole new class that reads jars?
I'd like to leverage the functionality built into existing JFileChoosers if
possible but my theory is weak in some areas and I can't quite figure out
how to do so.
Can anyone suggest a good approach?
--
Rhino
---
rhino1 AT sympatico DOT ca
"There are two ways of constructing a software design. One way is to make it
so simple that there are obviously no deficiencies. And the other way is to
make it so complicated that there are no obvious deficiencies." - C.A.R.
Hoare
in a Jar (and maybe a Zip file) the way that a standard JFileChooser lets me
look at all of the entries in a directory. Ideally, the jar could be located
in the filesystem, on or off the classpath, or even online at a location
described like this: jar:http:/xyz.com/images/photoJar!/
Standard JFileChoosers don't have any constructors for finding files in a
jar. Would I be able to get that functionality by subclassing JFileChooser
and adding new constructors that handle files in jars? Or would I have to
create a whole new class that reads jars?
I'd like to leverage the functionality built into existing JFileChoosers if
possible but my theory is weak in some areas and I can't quite figure out
how to do so.
Can anyone suggest a good approach?
--
Rhino
---
rhino1 AT sympatico DOT ca
"There are two ways of constructing a software design. One way is to make it
so simple that there are obviously no deficiencies. And the other way is to
make it so complicated that there are no obvious deficiencies." - C.A.R.
Hoare