info.aduna.swing.overlay
Class ListOverlay
java.lang.Object
java.awt.event.MouseAdapter
javax.swing.event.MouseInputAdapter
info.aduna.swing.overlay.ListOverlay
- All Implemented Interfaces:
- MouseListener, MouseMotionListener, MouseWheelListener, EventListener, MouseInputListener
public class ListOverlay
- extends MouseInputAdapter
A ListOverlay displays the contents of a JList row in its entirety when it is
partially invisible (e.g. because it's hidden by a JScrollPane) and the mouse
pointer is over it.
This code is largely based on code obtained from the following web pages:
- http://www.jroller.com/page/santhosh?entry=partially_visible_jtree_nodes
- http://www.jroller.com/page/santhosh?entry=partially_visible_jtree_nodes_contd
Use this code in the following way:
JList list = ...
new ListOverlay(list);
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ListOverlay
public ListOverlay(JList list)
mouseExited
public void mouseExited(MouseEvent e)
- Specified by:
mouseExited in interface MouseListener- Overrides:
mouseExited in class MouseAdapter
mouseMoved
public void mouseMoved(MouseEvent e)
- Specified by:
mouseMoved in interface MouseMotionListener- Overrides:
mouseMoved in class MouseAdapter
Copyright © 1997-2008 Aduna. All Rights Reserved.