posted 3 years ago
I have been reading several suggested solutions for implementing autocomplete for a JTextField. However, the documentation is a bit confusing to me. It seems like they mostly require switching to a JComboBox. Can I or can I not continue to use a JTextField and implement an autocomplete feature? I also saw what I thought was a built-in autocomplete "decorator" for swing objects (although it was not clear if it can be used for JTextField) but most of the implementations seem to start from scratch. Can someone clarify the best and simplest way to implement this (assuming those 2 conditions are not mutually exclusive)? TIA.