Toms
Toms

Reputation: 239

How to make a textfield for searching data from Database?

I am trying to develop a Java application that runs on Windows. For part of the application, I want to allow the user to enter a date into a text field in a form. My application will use that date to query a MSAccess database to retrieve information which will be placed in other elements of the form.

How should I retrieve the information from the database using a document listener?

[I have tried searching for advice, but have not found what I need.]

Upvotes: 0

Views: 626

Answers (1)

Skylion
Skylion

Reputation: 2752

I wrote a decorator for a text field that display matching results as the user types. I think that is what you want if I am not mistaken. Here is the link https://github.com/Skylion007/java-manga-reader/blob/master/src/org/skylion/mangareader/util/AutoSuggestor.java

Upvotes: 1

Related Questions