mouse events

Bill Hibbard hiding at japan.com
Thu Mar 29 11:01:41 MDT 2007


 Hi Celine,

You need to get the mouse events as DisplayEvents from your
DisplayListener.

Good luck,
Bill

  I added a DisplayListenner to my DisplayImpl2D and I also added a
  MouseListenner to my DisplayPanelJ2D (my display's getComponent)
  but this latter does not catch mouseEvent. I'd like to be able to
  "select" the panel adding a red border and depicting information on
  my DisplayImpl.
  I have tried to create my own JPanel which contains the display's
  canvas so I can add a red border but I can not depict information
  on the display. I have also tried to work with the display's
  getComponent so information can be depicted on the display but the
  panel does not catch mouseEvent...

  Has anyone an idea ?
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: not available
Url: http://mailman.unidata.ucar.edu/mailing_lists/archives/visad/attachments/20070329/ccc05d70/attachment.ksh 


More information about the visad mailing list