FileDocCategorySizeDatePackage
FileChooserDemo.javaAPI DocExample670Fri Jun 08 10:23:00 BST 2001None

FileChooserDemo

public class FileChooserDemo extends JFrame

Fields Summary
Constructors Summary
public FileChooserDemo()

    super("FileChooserDemo");

    JFileChooser fileChooser = new JFileChooser();
    fileChooser.setDialogTitle("Choose a file");
    this.getContentPane().add(fileChooser);
    fileChooser.show();
  
Methods Summary
public static voidmain(java.lang.String[] args)

    JFrame frame = new FileChooserDemo();
    frame.addWindowListener(new WindowAdapter() {
      public void windowClosing(WindowEvent e) {System.exit(0);}
    });

    frame.pack();
    frame.setVisible(true);