How can I trap a "mouse over" event for a component?

Jay Detwiler

The MouseListener interface includes notification for "mouse over" with a mouseEntered event. Implement the MouseListener interface (or extend the MouseAdapter class) and add it to the component you're interested in.

For example:

component.addMouseListener (new MouseAdapter () {
  public void mouseEntered (MouseEvent event) {
    System.out.println ("I got a mouse over");
0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



About | Sitemap | Contact