This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Event in jButton Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Event in jButton" Watch "Event in jButton" New topic

Event in jButton

MR Chahal

Joined: Nov 27, 2005
Posts: 14

I have connected a table to a database in jFrame through coding. Not the drag and drop jtable from the component panel. My problem is how will i interact with that table through the normal drag and drop jbutton? This is my code:

When i add a new button the generated code looks like this :

But when i type something like for example


Nothing happens. Its like the table is not there. Any help with this will be greatly appreciated.
MR Chahal

Joined: Nov 27, 2005
Posts: 14
Correction: Gave the wrong table name.


still nothing happens. I dont get the row count.
I agree. Here's the link:
subject: Event in jButton
Similar Threads
Display JTable with mysql
regarding JTable
Invoking ODBC database source administrator component of windows
how to add jbutton in jtable in each row with record while data is filled from database
Columns on JTable