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);
public Sticky(JList list)
public Sticky(JTree tree)
public Sticky(JTable table)
public void install()
uninstall()
to remove the listener.public void uninstall()