public class Sticky
extends java.lang.Object
Sticky is a helper class to make JList or JTree or JTable changing selection when mouse moves. To use
it, you simply call
JList list = new JList();
new Sticky(list);
or
JTree tree = new JTree();
new Sticky(tree);
| Constructor and Description |
|---|
Sticky(javax.swing.JList list) |
Sticky(javax.swing.JTable table) |
Sticky(javax.swing.JTree tree) |
| Modifier and Type | Method and Description |
|---|---|
void |
install()
Installs the listener to make the list or tree sticky.
|
void |
uninstall()
Uninstalls the listener.
|
public Sticky(javax.swing.JList list)
public Sticky(javax.swing.JTree tree)
public Sticky(javax.swing.JTable table)
public void install()
uninstall() to remove the listener.public void uninstall()