gpt4 book ai didi

java - 如何设置 Jcombobox 的智能

转载 作者:行者123 更新时间:2023-12-01 14:32:46 24 4
gpt4 key购买 nike

在 Jcombobox 中,当我输入一些字母(例如“j”)时,默认情况下会聚焦第一个以“j”开头的项目。但是相同的逻辑不适用于许多字母(例如“ji”)。如何当我输入“ji”时,它应该关注以“ji”开头的第一个项目,依此类推?

最佳答案

In Jcombobox when i type some letter say ('j'),the first item that starts with 'j' will be focussed by default.But the same logic is not applicable with many letters(say 'ji').How to make it possible in such a way that when i type 'ji' it should focus onto the first item that starts with 'ji' and so on.

参见AutoComplete JComboBox / JTextField

关于java - 如何设置 Jcombobox 的智能,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16730677/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com