Class JFileChooserDemo

java.lang.Object
  extended by JFileChooserDemo

public class JFileChooserDemo
extends java.lang.Object

Selecting a filename from an "open" dialog using class JFileChooser and reading from an output file using classes File and Scanner.

Version:
Copyright (c) 2002 -- SCCC West
Author:
Prof. Carl B. Struck

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

JFileChooserDemo

public JFileChooserDemo()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException
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.

Parameters:
args - the String[] array command line parameter
Throws:
java.io.IOException - if some sort of I/O exception has occurred