Package com.jidesoft.swing
Class Sticky
- java.lang.Object
-
- com.jidesoft.swing.Sticky
-
public class Sticky extends java.lang.ObjectStickyis 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 voidinstall()Installs the listener to make the list or tree sticky.voiduninstall()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.
-
-