Class TextComponentAdaptor

java.lang.Object
org.jdesktop.swingx.autocomplete.AbstractAutoCompleteAdaptor
org.jdesktop.swingx.autocomplete.TextComponentAdaptor

public class TextComponentAdaptor extends AbstractAutoCompleteAdaptor
An implementation of the AbstractAutoCompleteAdaptor that is suitable for a JTextComponent.
  • Field Details

    • items

      List<?> items
      a List containing the strings to be used for automatic completion
    • textComponent

      JTextComponent textComponent
      the text component that is used for automatic completion
    • selectedItem

      Object selectedItem
      the item that is currently selected
  • Constructor Details

    • TextComponentAdaptor

      public TextComponentAdaptor(JTextComponent textComponent, List<?> items)
      Creates a new TextComponentAdaptor for the given list and text component.
      Parameters:
      textComponent - the text component that will be used automatic completion
      items - a List that contains the items that are used for automatic completion
  • Method Details