[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: guidance



On Tue, Jun 06, 2000 at 01:24:54PM +0530, Rohit Singh typed:
> 
> >     in my Frame i want to detect that the mouse has been moved over a
> > button. ( i am programming in java ) how can this be acheived ?
> 
> #1: Use a MouseMotionListener or Adapter
> #2: Subclass Button and enableEvents(AWTEvent.MOUSE_EVENT) in its
> constructor after calling super().

> public void processMouseEvent( Mouse Event e) {
> ...

That should be  ProcessMouseMotionEvent(MouseEvent e) {

Kala