JFileChooser fc = new JFileChooser(); int returnVal = fc.showDialog(null); if (returnVal == JFileChooser.APPROVE_OPTION) { // Accéder au fichier séléctionné File file = fc.getSelectedFile(); }
JLabel labelImage = new JLabel(new ImageIcon(image), SwingConstants.CENTER);