Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Advanced-java] Mouse listener question


  • From: dovle@xxxxxxxxxx (dovle)
  • Subject: [Advanced-java] Mouse listener question
  • Date: Sat, 23 Feb 2002 17:23:47 +0200

Hi all,

This does not affect my work but I found a 'strange' way of acting in java 
awt. This seems pretty strange to me, wondering if someone can tell me if 
this is the right behaviour or I have mixed something up into my class.

When the mouse is pressed the mousePressed method is called. But before of 
this the mouseEntered method is called. Is this correct ? Why the 
mouseEntered method is called even if the mouse was for long time over the 
panel ? 

Otherwise the mouseEntered and mouseExited are called corectly (when entering 
or exiting of the panel) . 

The code is simple, a System.out.println("<action name>" ) for each 
mouseAction. And a simple panel.

Thanks 
dovle