platform indepedent mask for multi-select

B

B Young

On Win32 and Linux, control and shift used with a mouse click allows
multi-select behaviour in native apps.

On a Mac, shift does the same thing as the other two platforms.
However, the command key replaces the control key behaviour. How can
I get this from the Java API w/o having to hard code this?

BTW, I know about getMenuShortcutKeyMask but I can find no Toolkit
method to get the multi-select masks. I did notice that JTable
internally handles this stuff correctly, but I'm not sure where in the
JTable source the selection stuff is handled.

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top