Get your CodeRanch badge!*
The moose likes Swing / AWT / SWT and the fly likes How to add a columns with a button set to a Jtable built with database result set Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How to add a columns with a button set to a Jtable built with database result set" Watch "How to add a columns with a button set to a Jtable built with database result set" New topic
Author

How to add a columns with a button set to a Jtable built with database result set

Dips Cruise
Greenhorn

Joined: May 17, 2012
Posts: 3
hi,
i have to build a gui to display account numbers and account balances of a particular person, after he logged with the correct user name and password. and when he get the account number and balances in a table, there should be another button to get further details of a account such as transactions, amount of each transaction etc. now i have stucked in the point of adding that button column to the table which is built with database result set. i would thank you if you could help me to implement that part. thank you
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 9990
    
    7

Welcome to the Ranch.
Here is an example on how to add a button to a table http://www.java2s.com/Code/Java/Swing-Components/ButtonTableExample.htm


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Dips Cruise
Greenhorn

Joined: May 17, 2012
Posts: 3
Thank you Maneesh... I tried that too.
But i need to add an additional button column to the table which i build using a record set from database. I built a table with two columns and the number of rows depend on the record set. I can add an additional column name to the column name String type array. but i cannot add buttons to the rowdata Object[] type List . So i'm stuck in adding button column. are there any ideas?
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 9990
    
    7

Dips Cruise wrote:Thank you Maneesh... I tried that too.

Did you also check your private message?
wong chang kit
Greenhorn

Joined: May 15, 2012
Posts: 20
Hi, I'm having this problem too. Anyone knows how to solve it?
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
you need to post what your specific problem is,
and the code you've tried.

also would be better in your own thread,
include a link to this thread if you want.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to add a columns with a button set to a Jtable built with database result set
 
Similar Threads
Oracle stored procedures
How can i show backend table data in CSV format
Display all Users Detail on JSP page when we Loged in through ADMIN
Need some help to put me in the right direction
How to add a columns with a button set to a Jtable built with database result set