public class Sticky extends 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 | Description |
---|---|
Sticky(JList list) |
|
Sticky(JTable table) |
|
Sticky(JTree tree) |
Modifier and Type | Method | Description |
---|---|---|
void |
install() |
Installs the listener to make the list or tree sticky.
|
void |
uninstall() |
Uninstalls the listener.
|
public Sticky(JList list)
public Sticky(JTree tree)
public Sticky(JTable table)
public void install()
uninstall()
to remove the listener.public void uninstall()