    All Packages    This Package    Previous    Next

# Class awt.FileDialog

    java.lang.Object
       |
       +----awt.FileDialog

public class FileDialog
extends Object

A class that brings up a file dialog using the native gui platform's dialog.

Version:
  1.10 31 Jan 1995
Author:
  Sami Shaio

##

parent
title

##

FileDialog(String, Frame)
  Create a FileDialog, str is the title of the FileDialog.

##

chooseFile(String)
  Put up a FileDialog and wait for the user to either select a file or cancel.
dispose()
  Disposes of this FileDialog.

##

title

      public String title

parent

      public Frame parent

##

FileDialog

      public FileDialog(String str,
                        Frame p)

  Create a FileDialog, str is the title of the FileDialog. It can be null in which case a default title is chosen.

##

chooseFile

      public String chooseFile(String initValue)

  Put up a FileDialog and wait for the user to either select a file or cancel. If a file was chosen it will be returned, otherwise, null is returned. If initValue is not null, then it will be used as the initial value for the file dialog.

dispose

      public void dispose()

  Disposes of this FileDialog.

    All Packages    This Package    Previous    Next