1. iscelleditable is not working in jtable coderanch.comi am trying the jtable cell uneditable but it is not working can any body tell what is the problem View Employee1.java import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.JScrollPane; import javax.swing.JTable; import java.awt.Dimension; import java.awt.GridLayout; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.sql.*; import javax.swing.table.DefaultTableModel; public class ViewEmployee1 extends JPanel { private boolean DEBUG = false; public ViewEmployee1() { super(new GridLayout(1,0)); ResultSet rs=null; try ... |
2. JTable isCellEditable method dbforums.comHi, How can I make a column with Boolean values in a JTable Editable? I have something like this, but it doesn't work: data = new Object[][]{ {"1","11","A","","","",new Integer(14), new Boolean(true)}, {"2","22","","B","","",new Integer(1),new Boolean(false)}}; column = new Object[]{"fixed 1","fixed 2","a","b","c","d","e","f"}; AbstractTableModel fixedModel = new AbstractTableModel() { public int getColumnCount() { return column.length; } public int getRowCount() { return data.length;} public String ... |