954,536 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Making searching faster

Heya all,

I have a small problem. I have created a phonebook program for myself. I am using MySQL to store all the data. Just the usuallly stuff like name, tel No, address etc. I have about 400 entries in MySQL.

ON MY SEARCHING MENU:
I use a JTextfield to enter the name i want to search for. When I click my JButton(search), the info is displayed on a JTable. All works perfectly. The problem I am having is that it takes about 3 to 5 seconds to display. How do I make it display the details faster? If I need to use a Thread how do I use one? When must the thread start running? eg, must it start before I click my JButton.

Any help would be great

Thanks

bsunkel
Newbie Poster
12 posts since Nov 2004
Reputation Points: 10
Solved Threads: 0
 

How are you searching through the DB?

server_crash
Postaholic
2,111 posts since Jun 2004
Reputation Points: 113
Solved Threads: 20
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You