开发者

JcheckBox in Jtable

开发者 https://www.devze.com 2023-01-17 10:30 出处:网络
I am having Check box in my Jtable.Check box displayed in center 开发者_如何学运维of column.My problem is when i click on check box it moves to left of that column and comes to center functionality wi

I am having Check box in my Jtable.Check box displayed in center 开发者_如何学运维of column.My problem is when i click on check box it moves to left of that column and comes to center functionality wise works fine.Can any one tell How to stop the movement of checkbox

Thanks Ganesh


Renderer and editor are handled separately. So when you click the cell, it will display the editor component instead of the renderer component displayed previously. Sounds like you have centered the JCheckBox used as renderer, but not the JCheckBox used as editor. Center the editor the same way you have centered the renderer.

This is the best answer I can give you without further details.

0

精彩评论

暂无评论...
验证码 换一张
取 消