Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Project Rio
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jini.rio.resources.util
Class XMLFileChooser

    java.lang.Object
      org.jini.rio.resources.util.XMLFileChooser

    public class XMLFileChooser

extends Object

Creates a JFileChooser filtering for .xml files

Constructor Summary
`XMLFileChooser(JFrame frame, File path, String title)` Create a XMLFileChooser

Method Summary
`File` | `getCurrentDirectory()` Get the current directory
`File` | `getFile()` Get the chosen File
`String` | `getName()` Get the file name chosen

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### XMLFileChooser

    public XMLFileChooser(JFrame frame,
                          File path,
                          String title)

  Create a XMLFileChooser

  Parameters:
    `frame` - The parent JFrame
    `path` - File Object for a starting point
    `title` - String title for the chooser

Method Detail

### getName

    public String getName()

  Get the file name chosen

  Returns:
    The name of the chosen file or null if none selected

### getFile

    public File getFile()

  Get the chosen File

  Returns:
    The chosen File or null if none selected

### getCurrentDirectory

    public File getCurrentDirectory()

  Get the current directory

  Returns:
    The current working directory

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Project Rio
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © Project Rio.