platform indepedent mask for multi-select

Discussion in 'Java' started by B Young, Nov 29, 2003.

  1. B Young

    B Young Guest

    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
     
    B Young, Nov 29, 2003
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. jcc
    Replies:
    15
    Views:
    4,763
    Nigel Wade
    May 12, 2006
  2. Scott
    Replies:
    1
    Views:
    411
    Scott
    Apr 26, 2007
  3. Marcin Tyman

    Conversion mask in hex to bit mask

    Marcin Tyman, May 6, 2008, in forum: Ruby
    Replies:
    4
    Views:
    886
    Robert Klemme
    May 6, 2008
  4. palmiere
    Replies:
    1
    Views:
    465
    Erwin Moller
    Feb 9, 2004
  5. 187
    Replies:
    2
    Views:
    620
    Bart Lateur
    Jul 29, 2004
Loading...

Share This Page