Re: How to send mouse event to another component?
- From: "Rene Ruppert" <rene.ruppert@xxxxxxxxxxx>
- Date: Thu, 24 Nov 2005 09:54:44 +0100
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é
.
- References:
- How to send mouse event to another component?
- From: Rene Ruppert
- Re: How to send mouse event to another component?
- From: Thomas Fritsch
- How to send mouse event to another component?
- Prev by Date: Re: How to send mouse event to another component?
- Next by Date: mouseDragged() sensitivity?
- Previous by thread: Re: How to send mouse event to another component?
- Next by thread: DefaultTreeCellRenderer moves the placement of children in JTree
- Index(es):