Mos.K Mos.K - 1 month ago 18
Java Question

Autocomplete jcombobox javanetbeans

I am trying to implement autocomplete on my combobox but It says cannot find symbol. Are there any classes I need to import for this method to work? I have already imported javax.swing.*;

Method:

AutoCompleteDecorator.decorate(mycombobox);

Answer

The AutoCompleteDecorator is not part of the standard Java SE distribution, it is part of the SwingX project.

If SwingX is already in your classpath, you can just import the AutoCompleteDecorator with

import org.jdesktop.swingx.autocomplete.AutoCompleteDecorator;
Comments