Hi
I have a jtable that has buttons, jtextfield, and check boxes in cell depending on the data. I had to extend defaultTableRenderer and extend abstractCellEditor to do this. Everything is working great except I can't seem to center the check boxes. I tried adding the line
in the getTableCellRendererComponent method in the class that extends the DefaultTableCellRenderer. This isn't working. Is there something else i need to set? thanks
I have a jtable that has buttons, jtextfield, and check boxes in cell depending on the data. I had to extend defaultTableRenderer and extend abstractCellEditor to do this. Everything is working great except I can't seem to center the check boxes. I tried adding the line
Code:
setHorizontalAlignment (SwingConstants.CENTER);