Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / July 2007

Tip: Looking for answers? Try searching our database.

Autocomplete jPopupMenu

Thread view: 
tbsetlalekgosi@gmail.com - 05 Jul 2007 13:35 GMT
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.
Martin Gregorie - 05 Jul 2007 18:32 GMT
> 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
[quoted text clipped - 7 lines]
> 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.

Signature

martin@   | Martin Gregorie
gregorie. | Essex, UK
org       |



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.