Is there a method that i can use to simply find a file location? I\'m trying allow the user to choose a file and open it, but I have to have the JFileChooser just choose the
chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
// You can use
// chooser.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES); too
File file = chooser.getSelectedFile();
String fullPath = file.getAbsolutePath();