How to list suggestions to when typing inside the text field

前端 未结 4 1855

Hi in my Java swing application I need to show all possible existing entries with same initial characters while user typing in a text field. Lets say user type letter \'A\'

4条回答
  •  有刺的猬
    2020-12-06 04:07

    there are two classes (you are needed both for correct funcionalities), Auto Complete JTextField and AutoComplete JComboBox, excelent is that you can set if is strict (allows typing if List doesn't contains ) or not

提交回复
热议问题