NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
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 >CellDisplayListener.java, 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 .... Try: if (e.getInputEvent().getModifiers() | InputEvent.CTRL_MASK != 0) { -Curtis
visad
archives: