dirchooser2
Class DirChooser2

java.lang.Object
  extended by dirchooser2.DirChooser2

public class DirChooser2
extends java.lang.Object


Constructor Summary
DirChooser2()
           
 
Method Summary
static void main(java.lang.String[] args)
          Opens a file chooser, and prints the fully-qualified path of the selected directory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirChooser2

public DirChooser2()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.reflect.InvocationTargetException
Opens a file chooser, and prints the fully-qualified path of the selected directory. DirChooser2 is designed as a platform-independent way for scripts to open a popup window to choose a directory.

Example: java -jar DirChooser2.jar "Choose the directory in which you wish to work"

pops up a window with the message in the title line. If the user selects the directory "/home/psgendb/demo" and presses Open, DirChooser2.jar will print the line

/home/psgendb/demo

Parameters:
[title - title for DirChooser2 window ]
Throws:
java.lang.reflect.InvocationTargetException