最近IM工作的/ w的項目,該項目需要編輯的組合框...在開始我連着的動作監聽蒙山,但它並沒有工作...然後我開始尋找在文檔偵聽這似乎是適當的針對這種情況JCombo框搜索
我要創建這個
-------------------------
a //---------- Consider this as a combo box
-------------------------
a
ab
aba
abca
abdaa
---------------------
ab //---------- Consider this as a combo box
---------------------
ab
aba
abca
abdaa //- Hints
現在我感到有點困惑如何使用文檔偵聽與組合框,因爲每一個地方JTextComponent
附有它....請幫助。
歡迎在此論壇 – mKorbel
另請參閱此[問題](http://stackoverflow.com/questions/6478577/how-to-make-a-text-field-for-searchingwith-tips-like-a-google -search/6479302#6479302)。 – trashgod