943,936 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 1447
  • Java RSS
Jun 30th, 2005
0

Making searching faster

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
bsunkel is offline Offline
12 posts
since Nov 2004
Jun 30th, 2005
0

Re: Making searching faster

How are you searching through the DB?
Reputation Points: 113
Solved Threads: 19
Postaholic
server_crash is offline Offline
2,108 posts
since Jun 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: How to handle exceptions in constructor?
Next Thread in Java Forum Timeline: Could someone help please and thankyou





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC