br.usp.iterador.io
Class FileDialog

java.lang.Object
  extended by br.usp.iterador.io.FileDialog

public class FileDialog
extends java.lang.Object

Deals with file dialogs.

Author:
Guilherme Silveira

Constructor Summary
FileDialog()
           
 
Method Summary
 java.io.File open(java.lang.String file, java.awt.Window w)
          Shows the open dialog.
 java.io.File saveAs(java.lang.String lastFile, java.awt.Window w)
          Shows the save as dialog.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileDialog

public FileDialog()
Method Detail

open

public java.io.File open(java.lang.String file,
                         java.awt.Window w)
Shows the open dialog.

Returns:
returns the selected file

saveAs

public java.io.File saveAs(java.lang.String lastFile,
                           java.awt.Window w)
Shows the save as dialog.

Parameters:
frame - the current frame
Returns:
the new selected file


Copyright 2004-2004-2006 IME - USP. All Rights Reserved.