Autocomplete jPopupMenu

T

tbsetlalekgosi

Gday can i please get some assistance from someone that has done an
Auto complete field using a popupmenu and a jList before to hel me
out.

The process of what i want to achieve goes like this.

The use enter some text in to a textField, the string is used to run a
query then the resultSet or values returned are added to the jList
then the list is populated and the popup appears, the problem i am
having is that my popup does not dissapear after the no match is
found.

Kind like the same thing i want to emulate on the google textfiled.
 
M

Martin Gregorie

Gday can i please get some assistance from someone that has done an
Auto complete field using a popupmenu and a jList before to hel me
out.

The process of what i want to achieve goes like this.

The use enter some text in to a textField, the string is used to run a
query then the resultSet or values returned are added to the jList
then the list is populated and the popup appears, the problem i am
having is that my popup does not dissapear after the no match is
found.
If the ResultSet is empty pop up a JOptionPane or use a non-editable
JTextField in your query dialogue to tell the user there are no hits.
Otherwise populate and display your JList to show the results.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top