I have a question regarding this way of solving the problem. I need a bigger check box. Partial solution of the problem writer in a method:
private JCheckBox createCheckBox() {
Icon normal = new ImageIcon(...);
Icon selected = new ImageIcon(...);
JTable table = new JTable(what parameter);
table.setRowHeight(...);
TableCellRenderer renderer = table.getDefaultRenderer(Boolean.class);
JCheckBox checkBoxRenderer = (JCheckBox)renderer;
checkBoxRenderer.setIcon( normal );
checkBoxRenderer.setSelectedIcon( selected );
DefaultCellEditor editor = (DefaultCellEditor)table.getDefaultEditor(Boolean.class);
JCheckBox checkBoxEditor = (JCheckBox)editor.getComponent();
checkBoxEditor.setIcon( normal );
checkBoxEditor.setSelectedIcon( selected );
return which panel?
}
Two questions
- Which panel should I return if I want to add this panel to my mail panel?
- What parameter can a give in the constructor for
JTable table = new JTable(...);
?