Package carcel.dialogs

Examples of carcel.dialogs.FileChooser.showOpenDialog()


        cargarFotoButt.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent e) {
                FileChooser chooser = new FileChooser();
                int returnVal = chooser.showOpenDialog(PresoController.this);
                if (returnVal == JFileChooser.APPROVE_OPTION) {
                    try {
                        File file = chooser.getSelectedFile();
                        if (file.exists()) {
                            System.out.println("File " + file.getPath());
View Full Code Here


        cargarHuellaBt.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent e) {
                FileChooser chooser = new FileChooser();
                int returnVal = chooser.showOpenDialog(PresoController.this);

                if (returnVal == JFileChooser.APPROVE_OPTION) {
                    File file = chooser.getSelectedFile();
                    //This is where a real application would open the file.
                    System.out.println("File " + file.getPath());
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.