I have an odd situation where I want to perform a test on the user inputted value of the filename in a JFileChooser.
The .getSelectedFile() function returns a file based on both the user inputted value of the filename and the directory which is not what I want.
As an example: The current directory in the JFileChooser might be "C:\a\b\c" The user inputted value might be "d\e\f.txt"
.getSelectedFile() returns "C:\a\b\c\d\e\f.txt" .getSelectedFile().getName() returns "f.txt"
Whereas I want something like .getInputtedFile() to return "d\e\f.txt"
Is there an available solution like this or would I have to extend JFileChooser?