Best way to implement a selection box from a large number of entries

前端 未结 3 850
猫巷女王i
猫巷女王i 2021-01-20 12:31

I have a large set of data from which the user has to select one. I\'m thinking of a way to implement it (of course, in a GUI). I have a few ideas. But just thought of posti

3条回答
  •  无人共我
    2021-01-20 13:08

    use AutoComplete JComboBox/JTextField

    • based on Standard Java Classes

    • no issue with larger sets of data

    • no issue with Focus, BackSpace Key, Caret

    • for better performance to required sort the array before use

    • simple workaround for setStrict(true/false), restrict input to array

提交回复
热议问题