Populating JTable with MySQL Data after clicking JButton

  • Follow


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

0
Reply pramodsa (3) 4/13/2007 4:23:57 PM

pramodsa wrote:
...
>I need to do the same thing, except after clicking on JButton.

<http://java.sun.com/docs/books/tutorial/uiswing/learn/example2.html#handlingEvents
>

HTH

-- 
Andrew Thompson
http://www.athompson.info/andrew/

Message posted via http://www.javakb.com

0
Reply Andrew 4/13/2007 4:45:15 PM


1 Replies
1585 Views

(page loaded in 0.006 seconds)

Similiar Articles:










7/20/2012 1:35:53 PM


Reply: