Answers for "how to open a folder in java swing project"

0

how to open a folder in java swing project

String FolderName="C:/name";//Write your complete path here
try {
       Runtime.getRuntime().exec("rundll32 url.dll,FileProtocolHandler " + FolderName);
    } catch (IOException ex) {
             Logger.getLogger(ClassName.class.getName()).log(Level.SEVERE, null, ex);
    }
Posted by: Guest on May-02-2020

Code answers related to "how to open a folder in java swing project"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language