info.aduna.swing.overlay
Class TableOverlay
java.lang.Object
java.awt.event.MouseAdapter
javax.swing.event.MouseInputAdapter
info.aduna.swing.overlay.TableOverlay
- All Implemented Interfaces:
- MouseListener, MouseMotionListener, MouseWheelListener, EventListener, MouseInputListener
public class TableOverlay
- extends MouseInputAdapter
A TableOverlay displays the contents of a table cell 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:
JTable table = ...
new TableOverlay(table);
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TableOverlay
public TableOverlay(JTable table)
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.