Package com.l2fprod.common.swing

Examples of com.l2fprod.common.swing.JDirectoryChooser.showOpenDialog()


              bulkInsertMenuItem.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent evt) {
                  JDirectoryChooser chooser = new JDirectoryChooser();
                  chooser.setShowingCreateDirectory(false);
                  chooser.setDialogTitle(Libelle.getLibelle("selectionEmplacement"));
                  int choice = chooser.showOpenDialog(me);

                  if(choice != JDirectoryChooser.CANCEL_OPTION) {
                    BulkInsertSelection inst = new BulkInsertSelection(me);
                    inst.setVisible(true);
                    analyseMedia = new AnalyseMediaThread(inst,chooser.getSelectedFile().getAbsolutePath());
View Full Code Here


    accessory.setFocusable(false);
    chooser.setAccessory(accessory);

    chooser.setMultiSelectionEnabled(true);

    int choice = chooser.showOpenDialog(parent);
    if (choice == JDirectoryChooser.APPROVE_OPTION) {
      String filenames = "";
      File[] selectedFiles = chooser.getSelectedFiles();
      for (int i = 0, c = selectedFiles.length; i < c; i++) {
        filenames += "\n" + selectedFiles[i];
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.