jbutton

jButton not clickable in jTable

淺唱寂寞╮ 提交于 2020-12-13 03:11:14
问题 I got the problem, that I cannot click on buttons. They behave like they are just textfields with the design of buttons. my Main : tableModStudents = (DefaultTableModel) studentsTable.getModel(); studentsTable.getColumn(studentsTable.getColumnName(8)) .setCellRenderer(new JButtonRenderer()); studentsTable.getColumn(studentsTable.getColumnName(8)) .setCellEditor(new JButtonEditor()); my CellRenderer : public class JButtonRenderer implements TableCellRenderer { private JButton button = new

jButton not clickable in jTable

笑着哭i 提交于 2020-12-13 03:09:19
问题 I got the problem, that I cannot click on buttons. They behave like they are just textfields with the design of buttons. my Main : tableModStudents = (DefaultTableModel) studentsTable.getModel(); studentsTable.getColumn(studentsTable.getColumnName(8)) .setCellRenderer(new JButtonRenderer()); studentsTable.getColumn(studentsTable.getColumnName(8)) .setCellEditor(new JButtonEditor()); my CellRenderer : public class JButtonRenderer implements TableCellRenderer { private JButton button = new

jButton not clickable in jTable

被刻印的时光 ゝ 提交于 2020-12-13 03:07:55
问题 I got the problem, that I cannot click on buttons. They behave like they are just textfields with the design of buttons. my Main : tableModStudents = (DefaultTableModel) studentsTable.getModel(); studentsTable.getColumn(studentsTable.getColumnName(8)) .setCellRenderer(new JButtonRenderer()); studentsTable.getColumn(studentsTable.getColumnName(8)) .setCellEditor(new JButtonEditor()); my CellRenderer : public class JButtonRenderer implements TableCellRenderer { private JButton button = new

jButton not clickable in jTable

♀尐吖头ヾ 提交于 2020-12-13 03:07:46
问题 I got the problem, that I cannot click on buttons. They behave like they are just textfields with the design of buttons. my Main : tableModStudents = (DefaultTableModel) studentsTable.getModel(); studentsTable.getColumn(studentsTable.getColumnName(8)) .setCellRenderer(new JButtonRenderer()); studentsTable.getColumn(studentsTable.getColumnName(8)) .setCellEditor(new JButtonEditor()); my CellRenderer : public class JButtonRenderer implements TableCellRenderer { private JButton button = new