hi
i have to make tool which is similar to google search editor right know i only needed graphical help that is hot create that component according to me it is an drop down list with editable facility is there any way for that in java

description

when name enter in textfield it should give suggestion for that i dont need any logical help but how to create that component

Recommended Answers

All 2 Replies

This sounds like drop-down combo box, but I suspect it's not going to work too well with a JComboBox when you need to change the list contents with every character typed (problems getting responses, re-paint flickering, changes of focus...). So I would have a JTextField with a JList positioned underneath it. You can have a TextListener on the JTextField's Document so you can respond to each character as it's typed and update the list as required.

AutoComplete(d) JComboBox/JTextField/JFormattedTextField

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.