Is there some simple way to choose a file path in Java? I've been searching around, and JFileChooser
keeps coming up, but that's already too excessive for what I want now, as it seems to require making a whole GUI just for that. I'll do it if need be, but is there a simpler way to get the file path?
I'm wondering if there's something like a JOptionPane
dialog box to search for the file path.
When you have no surrounding UI, you can simply use this (based on the Answer from Valentin Montmirail)