Package java.awt

Examples of java.awt.FileDialog.showOpenDialog()


            } else {
                JFileChooser dia = new JFileChooser(".");
                dia.setCurrentDirectory(new File(System.getProperty("user.home")));
                dia.setDialogTitle("Please show me the path to " + fileID + " (select the directory and confirm)");
                dia.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
                int result = dia.showOpenDialog(null);
                if (result == JFileChooser.APPROVE_OPTION) {
                    dotStarterFileFile = dia.getSelectedFile();
                } else {
                    GeneralDialog.message(fileID + " is not available, sorry I will not be able to perform the according actions.", fileID + " not available");
                    throw new RuntimeException(fileID + " not available: " + dsf);
View Full Code Here


            dia.setDialogTitle(
                    "Verzeichnis zum Extrahieren der Statistiken auswählen");
            dia.setCurrentDirectory(new File(pars.getStdDirectory()));
            dia.setVisible(true);
            dia.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
            final int returnVal = dia.showOpenDialog(this);
            File f = null;
            if (returnVal == JFileChooser.APPROVE_OPTION) {
                f = dia.getSelectedFile();
                filename = f.getAbsolutePath();
                paramsTrace = new String[params.length + 2];
View Full Code Here

            dia.setBounds(0, 0, 800, 600);
            dia.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);
            dia.setMultiSelectionEnabled(true);
            dia.setFileFilter(filter);

            final int returnVal = dia.showOpenDialog(this);
            if (returnVal == JFileChooser.APPROVE_OPTION) {
                final File[] fs = dia.getSelectedFiles();
                String verzeichnis = null;
                String zieldatei;
                final String[] quelldateien = new String[fs.length];
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.