Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

checkbox in JTable - event must fire ONLY on clicking box

614170Feb 23 2011 — edited Feb 28 2011
Hi,
I have a Jtable implementation and for a boolean value column i have it as a checkbox. due to the column header field being too big for this, the column is much bigger than the checkbox. the checkbox can be toggled by clicking anywhere in the field. i dont want this behavior. the value should toggle only when i click on the box (the square box with tick/untick) and not in the surrounding of the box in the empty area.

is this behavior possible. the default is, it toggles the box when clicked anywhere in that cell.

appreciate any responses.

thanks,
khan
This post has been answered by aterai on Feb 24 2011
Jump to Answer

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Mar 28 2011
Added on Feb 23 2011
13 comments
2,809 views