I tried to add JRadioButton
into JTable
by using CellEditor
and CellRenderer
, but I can't add JRadioButton
into JTable
. I am using NetBeans and backend MySQL. Please help me.
Edit: Thank you, but I have no idea about how to group JRadioButton
. Can you help me?
I have 4 columns .First column cell containing item name , second column cell containing quantity,3rd and 4th column cells contiaining JRadio Buttons.Then I want to grouping 3rd and 4th column cells containing JRadio Buttons in each row
Edit:If I try to add radiobutton in the customize code of jTable by using this,
new JRadioButton("a")
, then it'l come as, javax.swing.JRadioButton[,0,0,0x0,invalid,alignmentX=0.0,.....text=a],
in the column instead of button