org.xnap.gui.event
Class DoubleClickListener
java.lang.Object
java.awt.event.MouseAdapter
org.xnap.gui.event.DoubleClickListener
- All Implemented Interfaces:
- java.awt.event.MouseListener, java.util.EventListener
public class DoubleClickListener
- extends java.awt.event.MouseAdapter
Convenience class for a double click listener in a table. Use it like this:
JTable jta;
Action action;
jta.addMouseListener(new DoubleClickListener(action, jta));
Constructor Summary |
DoubleClickListener(javax.swing.JComponent jc,
java.awt.event.ActionListener ac)
|
Methods inherited from class java.awt.event.MouseAdapter |
mouseClicked, mouseEntered, mouseExited, mouseReleased |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DoubleClickListener
public DoubleClickListener(javax.swing.JComponent jc,
java.awt.event.ActionListener ac)
install
public static DoubleClickListener install(javax.swing.JComponent jc,
java.awt.event.ActionListener ac)
mousePressed
public void mousePressed(java.awt.event.MouseEvent e)
- Specified by:
mousePressed
in interface java.awt.event.MouseListener
- Overrides:
mousePressed
in class java.awt.event.MouseAdapter
Copyright © 2001-2005 XNap Team. All Rights Reserved.