JTable Boolean.class
问题 import java.awt.BorderLayout; import javax.swing.JFrame; import javax.swing.JScrollPane; import javax.swing.JTable; import javax.swing.table.AbstractTableModel; import javax.swing.table.TableModel; class ColorTableModel extends AbstractTableModel { Object rowData[][] = { { "value1", Boolean.FALSE }, { "value1", Boolean.FALSE }, { "value1", Boolean.FALSE }, { "value1", Boolean.FALSE}, { "value1", Boolean.FALSE }, }; String columnNames[] = { "English", "Boolean" }; public int getColumnCount() {