在java中的问题自动完成组合框 [英] Auto complete combo box in java problems
问题描述
我使用
import org.jdesktop.swingx.autocomplete.Configurator;
Configurator.enableAutoCompletion(combo);
让我的组合框自动完成。但是,这是行不通的。我的组合框的名字是组合。当我进口的NetBeans说,该进口org.jdesktop.swingx.autocomplete.Configurator;不存在。任何人都可以提出一个简单的方法来自动完成组合框。在C $ CS的$行方面对这个项目我不能添加的$多行C $ CS,因为我有一定的限制。
to make my combo box auto complete. But this is not working. My combo box name is combo. When i am importing NetBeans says that that import org.jdesktop.swingx.autocomplete.Configurator; does not exists. Can anyone suggest a simple way to auto complete the combo box. I cannot add more lines of codes because i have some restriction in terms of lines of codes for this project.
推荐答案
您必须从这里下载.jar-文件(例如:的http://repo1.maven.org/maven2/org/swinglabs/swingx/swingx-all/1.6.3/swingx-all-1.6.3.jar
You have to download the .jar- File ( for example from here: http://repo1.maven.org/maven2/org/swinglabs/swingx/swingx-all/1.6.3/swingx-all-1.6.3.jar
您然后转到文件>项目属性>库>编译时库在NetBeans项目
并添加您刚刚下载该.jar。
You then go to File > Project Properties > Libraries > Compile-Time Libraries in your Netbeans Project and add the .jar you just downloaded.
这篇关于在java中的问题自动完成组合框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!