wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes JCheckBox in JTable 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 "JCheckBox in JTable" Watch "JCheckBox in JTable" New topic
Author

JCheckBox in JTable

seema prakash
Ranch Hand

Joined: Nov 17, 2004
Posts: 59
Hi,

I have a sample table with 3 columns with the first and the third columns rendered as checkboxes.

I want the check box in the third column to be displayed only if the checkbox in the first column

is checked. Can anyone please guide me how to go about.

The sample code is below:

vijaya raghva naidu rambha
Greenhorn

Joined: Jun 18, 2008
Posts: 9
hey you can do tht in setvalue method in your model class . it will wrk













Originally posted by seema prakash:
Hi,

I have a sample table with 3 columns with the first and the third columns rendered as checkboxes.

I want the check box in the third column to be displayed only if the checkbox in the first column

is checked. Can anyone please guide me how to go about.

The sample code is below:



vijay<br />SCJP,SCWD
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4523
    
    5

Cross posted and also answered on the Sun Java forum.
http://forum.java.sun.com/thread.jspa?threadID=5306360


luck, db
There are no new questions, but there may be new answers.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JCheckBox in JTable
 
Similar Threads
Check box in a Table
JTable
JTable and its size
JCheckBox in JTable not working
JTable - selecting multiple rows by selecting checkbox column