Package com.l2fprod.common.swing

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


  @Override
  public void actionPerformed(ActionEvent arg0) {
    JDirectoryChooser chooser = new JDirectoryChooser();
    chooser.setShowingCreateDirectory(false);

    int choice = chooser.showDialog(parent, "Add Folder");
    if (choice == JFileChooser.APPROVE_OPTION) {
      File folder = chooser.getSelectedFile();

      controller.getLibraryManager().addFolder(folder);
    }
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.