Package com.jidesoft.swing
Class Sticky
- java.lang.Object
-
- com.jidesoft.swing.Sticky
-
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
orJList list = new JList(); new Sticky(list);
JTree tree = new JTree(); new Sticky(tree);
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
install()
Installs the listener to make the list or tree sticky.void
uninstall()
Uninstalls the listener.
-
-
-
Method Detail
-
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 calleduninstall()
to remove the listener.
-
uninstall
public void uninstall()
Uninstalls the listener.
-
-