org.xnap.gui.event
Class DoubleClickListener

java.lang.Object
  extended by java.awt.event.MouseAdapter
      extended by 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)
           
 
Method Summary
static DoubleClickListener install(javax.swing.JComponent jc, java.awt.event.ActionListener ac)
           
 void mousePressed(java.awt.event.MouseEvent e)
           
 
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
 

Constructor Detail

DoubleClickListener

public DoubleClickListener(javax.swing.JComponent jc,
                           java.awt.event.ActionListener ac)
Method Detail

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.