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);
 
  • Constructor Details

    • Sticky

      public Sticky(JList list)
    • Sticky

      public Sticky(JTree tree)
    • Sticky

      public Sticky(JTable table)
  • Method Details

    • 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.