InputEvent mask mixup on JTable

Hello,

I am implementing a context filter on a JTable, which is triggered with some mouse combinations. I used CTRL_DOWN_MASK and SHIFT_DOWN_MASK + mouse button 1, but now I have to allow multiple select, and so I need some new keys.

I tried ALT_DOWN_MASK, but for some reasons that did not work. I looked up the returned modifier value (getModifiersEx()) when pressing mouse button 1 while holding down the alt key, and it matches BUTTON2_DOWN_MASK !! Is this a bug? If not, how can I get the ALT_DOWN_MASK to work? ... or, should I just use BUTTON2_DOWN_MASK and hope nothing unexpected will happen?

[620 byte] By [herrena] at [2007-10-2 20:43:15]
# 1
Alt Gr + mouse button 1 produces the modifier (ALT_DOWN_MASK | CTRL_DOWN_MASK) and not ALT_GRAPH_DOWN_MASKBtw. I'm using JDK 1.4.2_06
herrena at 2007-7-13 23:26:38 > top of Java-index,Desktop,Core GUI APIs...
# 2
> Alt Gr + mouse button 1 produces the modifier> (ALT_DOWN_MASK | CTRL_DOWN_MASK) and not> ALT_GRAPH_DOWN_MASKSorry, Alt Gr + mouse button 1 -> (CTRL_DOWN_MASK | BUTTON2_DOWN_MASK)
herrena at 2007-7-13 23:26:38 > top of Java-index,Desktop,Core GUI APIs...