This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Event in jButton

 
MR Chahal
Greenhorn
Posts: 14
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

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

jTextArea1.setText(tmodel.getRowCount);

Nothing happens. Its like the table is not there. Any help with this will be greatly appreciated.
 
MR Chahal
Greenhorn
Posts: 14
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Correction: Gave the wrong table name.

jTextArea1.setText(table.getRowCount);

still nothing happens. I dont get the row count.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic