RE: mouse clicking multiple cells

Hi Michelle,

SpreadSheet's top-level selectCell(int, int) method calls
FancySSCell.setSelected(boolean). With a little bit of
digging into the visad.ss source code, or even scanning the
Javadocs, you can uncover things like this yourself.

-Curtis

At 03:53 PM 7/1/2003, you wrote:
>Hi Curtis,
>
>I added a Vector to SpreadSheet.java so that when a user clicks on a cell,
>that cell # is stored in the vector at SpreadSheet.selectCell(). I also
>implemented DisplayListener.java with my class CellDisplayListener.java that
>checks if the mouse was clicked and "control" was held down. In that case,
>it calls selectCell() where it updates the vector of selected cells by
>adding this one. 
>
>The cell #'s seem to be added into the vector as I click on them, but
>multiple cells cannot be highlighted at once. ie. I'll click on a cell and
>then release the mouse to click on another cell but then the first cell is
>no longer highlighted. Only the most recently selected cell is highlighted.
>Is there a way to disable the de-selection of cells once the user clicks on
>another cell? Below is CellDisplayListener.java:


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