The following code will print “pom.xml” to the console. But it will not mark the selected file in the GUI as if the user had done it with a mouse. So how can I select AND highlight the selected file programmatically? JFileChooser fc = new JFileChooser(); FileFilter filter = new FileNameExtensionFilter("POM", new String[] { "xml" […]
The post setSelectedFile(File file) does not present selection in GUI of JFileChooser appeared first on BlogoSfera.