-
Enhancement
-
Resolution: Fixed
-
P4
-
6, 6u18
-
b85
-
x86
-
windows_vista, windows_7
A DESCRIPTION OF THE REQUEST :
On Windows desktop applications, you are able to select more than one file at a time in the File Dialog. For example, if you want to drag several files into the Recycle Bin or to another folder, you can use the Control Key to select multiple files before the drag.
The AWT FileDialog has never allowed multiple file selection...only single file selection.
There's a property that can be set in the native Windows File Dialog that enables multiple selection. With the AWT FileDialog , there is currently no method that allows a programmer to set this property.
JUSTIFICATION :
To allow a Java Swing/AWT desktop application running on Windows to behave more like a native Windows application. Plus, it makes life easier for the user to deal with multiple files at a time, rather than only one at a time.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
In the File Dialog, you should be able to use the control key to select multiple files.
ACTUAL -
Currently, you can only select one file at a time before performing a file operation. The control key has no effect.
---------- BEGIN SOURCE ----------
Any instance of an AWT FileDialog will demonstrate the problem. I hope there's no need for code that creates an AWT FileDialog.
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
I have a code that calls the native Windows File Dialog via JNI, and bypasses the AWT FileDialog altogether. There's too much code to paste here, but I can email it if you'd like.
On Windows desktop applications, you are able to select more than one file at a time in the File Dialog. For example, if you want to drag several files into the Recycle Bin or to another folder, you can use the Control Key to select multiple files before the drag.
The AWT FileDialog has never allowed multiple file selection...only single file selection.
There's a property that can be set in the native Windows File Dialog that enables multiple selection. With the AWT FileDialog , there is currently no method that allows a programmer to set this property.
JUSTIFICATION :
To allow a Java Swing/AWT desktop application running on Windows to behave more like a native Windows application. Plus, it makes life easier for the user to deal with multiple files at a time, rather than only one at a time.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
In the File Dialog, you should be able to use the control key to select multiple files.
ACTUAL -
Currently, you can only select one file at a time before performing a file operation. The control key has no effect.
---------- BEGIN SOURCE ----------
Any instance of an AWT FileDialog will demonstrate the problem. I hope there's no need for code that creates an AWT FileDialog.
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
I have a code that calls the native Windows File Dialog via JNI, and bypasses the AWT FileDialog altogether. There's too much code to paste here, but I can email it if you'd like.
- duplicates
-
JDK-6901239 RFE: Support Platform standard file chooser
-
- Closed
-