How to impement a autocomplete popup

I have a  JTextFied, and I want to implement autopopup function like "Evalution Express Dialog" when Debug

 

 

user input some text into the JtextField, it triggers a http request to get a list of suggestion using the input keyworld.

 

I'm wondering what ui component or API to use to implement this.

 

Thanks for your kind suggestion!

1 comment
Official comment

You can use TextFieldWithAutoCompletion instead of JTextField, and do provide your variants in TextFieldWithAutoCompletionListProvider#getItems. Unfortunately, this is not well-documented, but you can find some examples of using these classes in intellij-community codebase.

Please sign in to leave a comment.