FileDocCategorySizeDatePackage
FileDialogNew.javaAPI DocExample4635Mon Apr 06 18:10:22 BST 1998None

FileDialogNew

public class FileDialogNew extends Frame

Fields Summary
TextField
filename
TextField
directory
Button
open
Button
save
Constructors Summary
public FileDialogNew()

    
    setTitle("File Dialog Test");
    Panel p = new Panel();
    p.setLayout(new FlowLayout());
    open.addActionListener(new OpenL());
    p.add(open);
    save.addActionListener(new SaveL());
    p.add(save);
    add(p, BorderLayout.SOUTH);
    directory.setEditable(false);
    filename.setEditable(false);
    p = new Panel();
    p.setLayout(new GridLayout(2,1));
    p.add(filename);
    p.add(directory);
    add(p, BorderLayout.NORTH);
  
Methods Summary
public static voidmain(java.lang.String[] args)

    Frame f = new FileDialogNew();
    f.addWindowListener(
      new WindowAdapter() {
        public void windowClosing(WindowEvent e) {
          System.exit(0);
        }
      });
    f.setSize(250,110);
    f.setVisible(true);