java.lang.ObjectJFileChooserDemo
public class JFileChooserDemo
Selecting a filename from an "open" dialog using class JFileChooser and reading from an output file using classes File and Scanner.
| Constructor Summary | |
|---|---|
JFileChooserDemo()
|
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
Gets a File object from the showOpenDialog() method of class JFileChooser, opens an input Scanner file, reads name, age and phone number data into a StringBuilder object and then writes the StringBuilder object to the terminal window. |
| Methods inherited from class |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JFileChooserDemo()
| Method Detail |
|---|
public static void main(java.lang.String[] args)
throws java.io.IOException
args - the String[] array command line parameter
java.io.IOException - if some sort of I/O exception has occurred