KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * @(#)MotifMenuMouseListener.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 MotifMenuMouseListener extends MouseAdapter {
19     public void mousePressed(MouseEvent e) {
20         MenuSelectionManager.defaultManager().processMouseEvent(e);
21     }
22     public void mouseReleased(MouseEvent e) {
23         MenuSelectionManager.defaultManager().processMouseEvent(e);
24     }
25     public void mouseEntered(MouseEvent e) {
26         MenuSelectionManager.defaultManager().processMouseEvent(e);
27     }
28     public void mouseExited(MouseEvent e) {
29         MenuSelectionManager.defaultManager().processMouseEvent(e);
30     }
31 }
32
Popular Tags