Package java.awt

Examples of java.awt.FileDialog.pack()


    System.setProperty("apple.awt.fileDialogForDirectories", "true");
    FileDialog fd = new FileDialog(GLOBAL.applet.frame, "open",
        FileDialog.LOAD);
    String currentDir = new File(".").getAbsolutePath();
    fd.setLocation(50, 50);
    fd.pack();

    fd.show();
    System.setProperty("apple.awt.fileDialogForDirectories", "false");

    if (fd.getDirectory() != null) {
View Full Code Here


      return (filename.endsWith("*.cha"));
      }
      });
    */
    fd.setLocation(50, 50);
    fd.pack();

    fd.show();

    //System.out.println(fd.getDirectory() +fd.getFile());
    if (fd.getName() != null) {
View Full Code Here

        {
           
            try
            {
                FileDialog d = new FileDialog(F.this, "Save...", FileDialog.SAVE);
                d.pack();
                d.show();
                File f = new File(d.getDirectory() + File.separator + d.getFile());
                String dit = f.getPath();
                PrintStream os = new PrintStream(new FileOutputStream(dit));
                record rec = new record(dir.getText(), file.getText(), "Cinci, Ohio");
View Full Code Here

        }
        if (e.getSource()==load)
        {
            FileDialog d = new FileDialog(F.this, "Load...", FileDialog.LOAD);
            d.pack();
            d.show();
            File f = new File(d.getDirectory() + File.separator + d.getFile());
            String dit = f.getPath();
            try
            {
View Full Code Here

        {
           
            try
            {
                FileDialog d = new FileDialog(F.this, "Save...", FileDialog.SAVE);
                d.pack();
                d.show();
                File f = new File(d.getDirectory() + File.separator + d.getFile());
                String dit = f.getPath();
                PrintStream os = new PrintStream(new FileOutputStream(dit));
                record rec = new record(dir.getText(), file.getText(), "Cinci, Ohio");
View Full Code Here

        }
        if (e.getSource()==load)
        {
            FileDialog d = new FileDialog(F.this, "Load...", FileDialog.LOAD);
            d.pack();
            d.show();
            File f = new File(d.getDirectory() + File.separator + d.getFile());
            String dit = f.getPath();
            try
            {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.