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. Advertisements

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. miko

    multi platform database

    miko, Sep 21, 2003, in forum: Java
    Replies:
    1
    Views:
    427
    Christophe Vanfleteren
    Sep 21, 2003
  2. jcc
    Replies:
    15
    Views:
    5,084
    Nigel Wade
    May 12, 2006
  3. Coca
    Replies:
    15
    Views:
    898
    Alan Balmer
    Jan 14, 2004
  4. Scott
    Replies:
    1
    Views:
    469
    Scott
    Apr 26, 2007
  5. Kaspar Schiess

    platform.rb (was: PLATFORM tests)

    Kaspar Schiess, Nov 25, 2005, in forum: Ruby
    Replies:
    0
    Views:
    252
    Kaspar Schiess
    Nov 25, 2005
  6. Marcin Tyman

    Conversion mask in hex to bit mask

    Marcin Tyman, May 6, 2008, in forum: Ruby
    Replies:
    4
    Views:
    1,219
    Robert Klemme
    May 6, 2008
  7. palmiere
    Replies:
    1
    Views:
    696
    Erwin Moller
    Feb 9, 2004
  8. 187
    Replies:
    2
    Views:
    883
    Bart Lateur
    Jul 29, 2004
Loading...