Question on jtable cell editors in swing
问题 I want to implement a component that serves as a list of options, that a user can choose to select or not. Visually I thought that it would be best presented in a UI (if there is a better approach please tell me) as follows: Anyway, I thought that this could be implemented via a JTable (single column) and using a JCheckBox as a cell editor. I tried it but did not work. Example of code: public class ListRenderer extends JFrame { JCheckBox checkbox = new JCheckBox("Test"); DefaultCellEditor