aspose file tools
The moose likes Swing / AWT / SWT and the fly likes JCheckBox in JTable Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply 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: 4167
    
    3

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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: JCheckBox in JTable
 
Similar Threads
JTable
Check box in a Table
JTable - selecting multiple rows by selecting checkbox column
JCheckBox in JTable not working
JTable and its size