KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > java > swing > plaf > motif > MotifMenuMouseMotionListener


1 /*
2  * @(#)MotifMenuMouseMotionListener.java 1.9 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7 package com.sun.java.swing.plaf.motif;
8
9 import java.awt.event.*;
10 import javax.swing.MenuSelectionManager JavaDoc;
11
12 /**
13  * A default MouseListener for menu elements
14  *
15  * @version 1.9 12/19/03
16  * @author Arnaud Weber
17  */

18 class MotifMenuMouseMotionListener implements MouseMotionListener {
19     public void mouseDragged(MouseEvent e) {
20         MenuSelectionManager.defaultManager().processMouseEvent(e);
21     }
22
23     public void mouseMoved(MouseEvent e) {
24         MenuSelectionManager.defaultManager().processMouseEvent(e);
25     }
26 }
27
Popular Tags