Due to the current gap in continued funding from the U.S. National Science Foundation (NSF), the NSF Unidata Program Center has temporarily paused most operations. See NSF Unidata Pause in Most Operations for details.
Hi, >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: