RE: mouse clicking multiple cells

Hi Michelle,

>I don?t want the user to be able to just click on the cells and have them 
>selected unless they are pressing "control" simultaneously. I implemented the 
>DisplayListener class with my own class called CellDisplayListener. In 
>, I check if it was a mouse click event and "CONTROL" 
>held down in the code below:  
>e.getId() == DisplayEvent.MOUSE_PRESSED && !e.isRemote()) { ....
>if (e.getModifiers() == InputEvent.CTRL_MASK) {  //is it a ....

  if (e.getInputEvent().getModifiers() | InputEvent.CTRL_MASK != 0) {


  • 2003 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: