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