Populating JTable with MySQL Data after clicking JButton



Hi All,

Im very new to Java.

Im developing a project in NetBeans 5.5. The Database im using is
MySQL.

I need to add and retrieve data from MySQL Tables and im relatively
successful in that.

I found one tutorials on the web and have followed the procedures to
retrieve data from MySQL Tables.

http://www.netbeans.org/kb/articles/mysql-client.html

In the above mentioned link, there is a topic named - 'Customizing
JTable'

The above tutorial shows and expains how to retrieve data and place it
in JTable.

I need to do the same thing, except after clicking on JButton.

For Eg:

Pressing on 'Show data' button should retrieve the data from
the database.


Thanks in advance,
Pramod

.


Quantcast