• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JCheckBox in JTable

 
seema prakash
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:

 
Darryl Burke
Bartender
Posts: 5148
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Cross posted and also answered on the Sun Java forum.
http://forum.java.sun.com/thread.jspa?threadID=5306360
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic