Re: MouseListener and DisplayImplJ3D

  • To: Mathias Stümpert <AtzeS@xxxxxx>
  • Subject: Re: MouseListener and DisplayImplJ3D
  • From: Curtis Rueden <curtis@xxxxxxxxxxxxx>
  • Date: Thu, 18 Jan 2001 06:31:02 -0600
Hi Mathias,

You can receive mouse events by adding a DisplayListener to your Display.  In 
the
DisplayListener's displayChanged method, check the DisplayEvent's getId method 
for
DisplayEvent.MOUSE_PRESSED_LEFT, DisplayEvent.MOUSE_RELEASED_LEFT, etc.

-Curtis

At 11:09 18-01-01 +0100, you wrote:
>Hi there,
> 
>I just want to know if there is any possibility to add a MouseListener to a 
>DisplayImplJ3D. I tried to do this with
> 
>JPanel display3DPanel = (JPanel)display3D.getComponent();
>display3DPanel.addMouseListener(this);
> 
>but there was no effekt. No MouseEvents were sent to my program.
> 
>Cheers, Mathias


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