Design of File Choosers



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


.



Relevant Pages

  • Re: Making jelly less set
    ... Did you use Liquid or Powder Pectin? ... Liquid tends to yield a softer set ... jar. ... Six Great State Fair of Texas entries in the jars and waiting for September. ...
    (rec.food.preserving)
  • Re: How to modify java.lang.Object
    ... Two additional constructors need to be added. ... states that it is an unsupported hack. ... create a jar and make sure the jar is first in the boot classpath. ... just compile with javac as normal. ...
    (comp.lang.java.programmer)
  • Adding/deleting Jar entries?
    ... Given a jar that contains entries representing files (as opposed to ... so simple that there are obviously no deficiencies. ...
    (comp.lang.java.programmer)
  • Re: Adding/deleting Jar entries?
    ... > Given a jar that contains entries representing files (as opposed to ... is it possible to add new file entries to the jar or to remove ... FirstSQL/J Object/Relational DBMS ...
    (comp.lang.java.programmer)