com.jidesoft.swing
Class Sticky
java.lang.Object
com.jidesoft.swing.Sticky
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);
Method Summary |
void |
install()
Installs the listener to make the list or tree sticky. |
void |
uninstall()
Uninstalls the listener. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Sticky
public Sticky(JList list)
Sticky
public Sticky(JTree tree)
Sticky
public Sticky(JTable table)
install
public void install()
- Installs the listener to make the list or tree sticky. This method is called by constructor, so you don't need to
call it unless you called
uninstall()
to remove the listener.
uninstall
public void uninstall()
- Uninstalls the listener.