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
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: 39548
    
  27
Does using the Alt/Option key instead of the Command/Apple key work?


Ping & DNS - updated with new look and Ping home screen widget
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JFileChooser Multiple selection not working on Mac using apple, command key
 
Similar Threads
Unusal JFileChooser behaviour
java IDE ?
Java on the Mac.
mulitple file selection using JFileChooser problem
using FileDialog for to select both files AND directories