Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: org/gtk/java/swing/plaf/gtk/GtkMenuMouseMotionListener.java


1   /*
2    * @(#)GtkMenuMouseMotionListener.java  1.2 00/01/12
3    *
4    * Copyright 1997-2000 Sun Microsystems, Inc. All Rights Reserved.
5    * 
6    * This software is the proprietary information of Sun Microsystems, Inc.  
7    * Use is subject to license terms.
8    * 
9    */
10  package org.gtk.java.swing.plaf.gtk;
11  
12  import java.awt.event.*;
13  import javax.swing.MenuSelectionManager;
14  
15  /**
16   * A default MouseListener for menu elements
17   *
18   * @version 1.4 08/26/98
19   * @author Arnaud Weber
20   */
21  class GtkMenuMouseMotionListener implements MouseMotionListener {
22      public void mouseDragged(MouseEvent e) {
23          MenuSelectionManager.defaultManager().processMouseEvent(e);
24      }
25  
26      public void mouseMoved(MouseEvent e) {
27          MenuSelectionManager.defaultManager().processMouseEvent(e);
28      }
29  }