File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JNLP and Web Start and the fly likes JFileChooser Multiple selection not working on Mac using apple, command key    Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "JFileChooser Multiple selection not working on Mac using apple, command key    " Watch "JFileChooser Multiple selection not working on Mac using apple, command key    " New topic
Author

JFileChooser Multiple selection not working on Mac using apple, command key

indrajeet sawarkar
Greenhorn

Joined: Jul 31, 2007
Posts: 2
I am using Java 1.4 webstart on Mac machine.

The code is :
JFileChooser fileChooser = new JFileChooser();
fileChooser.setFileSelectionMode(2);
fileChooser.setMultiSelectionEnabled(true);

Once the File dialog opens I have problems in selecting random multiple files. Apple key or command key is used for random selection on Mac. When using either of these keys multiple selection is not possible. Whereas I am able to select files using the shift key by which row selection is possible.
If this is not a bug and some code changes are to be done it would be fine if somebody can help me out in this.
If this is a bug in Java 1.4 and is this fixed in Java 1.5?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41129
    
  45
Does using the Alt/Option key instead of the Command/Apple key work?


Ping & DNS - my free Android networking tools app
 
 
subject: JFileChooser Multiple selection not working on Mac using apple, command key
 
Similar Threads
using FileDialog for to select both files AND directories
Unusal JFileChooser behaviour
java IDE ?
mulitple file selection using JFileChooser problem
Java on the Mac.