Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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: 41890
    
  63
Does using the Alt/Option key instead of the Command/Apple key work?


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JFileChooser Multiple selection not working on Mac using apple, command key