File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes Event in jButton Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "Event in jButton" Watch "Event in jButton" New topic
Author

Event in jButton

MR Chahal
Greenhorn

Joined: Nov 27, 2005
Posts: 14
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

Joined: Nov 27, 2005
Posts: 14
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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Event in jButton
 
Similar Threads
Columns on JTable
Display JTable with mysql
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
regarding JTable