how to use an autocomplete JCombobox?
Answered
I saw intelliJ using i autocomplete itself at many places like for selecting the type of psi while using psi tree buiding tool . But I do not know how to use such Combobox for myself in my project.
Please sign in to leave a comment.
Hi,
I'm not sure which places you mean, but you can easily find out the underlying implementation with UI Inspector: https://plugins.jetbrains.com/docs/intellij/internal-ui-inspector.html.
I know about this tool but couldn't find the class which is actually implementing that autocomplete JComboBox. Can you please refer to me the link.
Please show on a screenshot which component exactly you mean.
I want these kind of searchable combobox. But want to add my own set of items that get searched as i type in the editable combobox.
Basically I want a Dropdown with Autocomplete functionality.
Or
a AutoCompleteTextField that can listen to ENTER key event to automatically get me the text. Without having need of a submit button.