Re: How to send mouse event to another component?



Hi,

> The method above is in your subclass of JPanel, or did I misunderstand
> you?
Correct.

>
> You probably wanted to override method
> protected void processMouseMotionEvent(MouseEvent)
> or
> public boolean mouseDrag(Event e, int x, int y) // deprecated
> of class Component.
>
> Class JPanel has or inherits *no* method
> void mouseDragged(MouseEvent e)
> Hence your method overrides nothing and therefore is not called.
>

The method above is part of an inline implementation of a
MouseMotionAdapter() and it is called. I didn't write that for some stupid
reason. :-) Anyway it's working now since I was able to change the design
and now it's a lot more simple.

cu

René


.