edu.stanford.nlp.ui
Class JarFileChooser

java.lang.Object
  extended by edu.stanford.nlp.ui.JarFileChooser

public class JarFileChooser
extends java.lang.Object

This class shows a dialog which lets the user select a file from among a list of files contained in a given jar file. (This should work for zip files as well, actually.)

Author:
John Bauer

Constructor Summary
JarFileChooser(java.lang.String pattern, javax.swing.JPanel panel)
           
 
Method Summary
 java.util.List<java.lang.String> getFiles(java.io.File jarFile)
           
 java.lang.String show(java.lang.String filename, java.awt.Point location)
           
 java.lang.String showListSelectionDialog(java.util.List<java.lang.String> files, java.awt.Point location)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JarFileChooser

public JarFileChooser(java.lang.String pattern,
                      javax.swing.JPanel panel)
Method Detail

show

public java.lang.String show(java.lang.String filename,
                             java.awt.Point location)

showListSelectionDialog

public java.lang.String showListSelectionDialog(java.util.List<java.lang.String> files,
                                                java.awt.Point location)

getFiles

public java.util.List<java.lang.String> getFiles(java.io.File jarFile)
                                          throws java.util.zip.ZipException,
                                                 java.io.IOException
Throws:
java.util.zip.ZipException
java.io.IOException


Stanford NLP Group