Apache JMeter
2.0.1.20050615

org.apache.jmeter.gui.util
Class FileDialoger

java.lang.Object
  extended byorg.apache.jmeter.gui.util.FileDialoger

public final class FileDialoger
extends Object

Version:
$Revision: 1.7 $
Author:
Michael Stover

Field Summary
static JFileChooser jfc
           
static String lastJFCDirectory
          The last directory visited by the user while choosing Files.
 
Method Summary
static JFileChooser promptToOpenFile()
           
static JFileChooser promptToOpenFile(String[] exts)
          Prompts the user to choose a file from their filesystems for our own devious uses.
static JFileChooser promptToSaveFile(String filename)
          Prompts the user to choose a file from their filesystems for our own devious uses.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lastJFCDirectory

public static String lastJFCDirectory
The last directory visited by the user while choosing Files.


jfc

public static JFileChooser jfc
Method Detail

promptToOpenFile

public static JFileChooser promptToOpenFile(String[] exts)
Prompts the user to choose a file from their filesystems for our own devious uses. This method maintains the last directory the user visited before dismissing the dialog. This does NOT imply they actually chose a file from that directory, only that they closed the dialog there. It is the caller's responsibility to check to see if the selected file is non-null.

Returns:
the JFileChooser that interacted with the user, after they are finished using it (accept or otherwise).

promptToOpenFile

public static JFileChooser promptToOpenFile()

promptToSaveFile

public static JFileChooser promptToSaveFile(String filename)
Prompts the user to choose a file from their filesystems for our own devious uses. This method maintains the last directory the user visited before dismissing the dialog. This does NOT imply they actually chose a file from that directory, only that they closed the dialog there. It is the caller's responsibility to check to see if the selected file is non-null.

Returns:
the JFileChooser that interacted with the user, after they are finished using it (accept or otherwise).
See Also:
promptToOpenFile(java.lang.String[])

Apache JMeter
2.0.1.20050615

Copyright © 1998-2005 Apache Software Foundation. All Rights Reserved.