Is it possible to select multiple files using java.awt.FileDialog?
Since I want my dialog to have an OSX search interface, I cannot use JFileChooser.
According to Javadoc, this is possible in JDK7 (see setMultipleMode(boolean) or getFiles() , which returns an array of files). However, cross validation with Javadoc for JDK6 is not possible in older versions ...
setMultipleMode(boolean)
getFiles()
You just need to set the parameters (default is false)
setMultiSelectionEnabled (true)
http://download.oracle.com/javase/7/docs/api/javax/swing/JFileChooser.html#setMultiSelectionEnabled(boolean )
Here's another question that talks about how to make JFileChooser correct on OS-X, maybe this will help.
JFileChooser on OS-X
Source: https://habr.com/ru/post/1342130/More articles:C #, bitmap gets doubled, why? - c #Calling functions from a linq expression - c #IOS Push Notification Using Flash (AIR 2.5) - airHow to use automatic postback with checkboxes and dropdowns? - c #silverlight UnitTesting does not call TestInitialize - c #Make h: inputText is required only when the checkbox is selected - inputRechecking values ββin Traceback - pythonReducing the overhead of a Javascript function - javascriptCommon class / protocol for UIView / CALayer - software development issues - iphoneHandle AdWhirl onFailure - androidAll Articles