How to use iscelleditable method in java netbeans

Hey I'm a Java newbie so I am asking how can I implement the is cell editable method in java Every time I try to implement it I get an Array Index Out Of Bounds error My Table is generated randomly as per a database setup & I want to set the 1st 2nd 3rd column not to be editable

//Get columns if data has been recorded for that ticket

public void getColumns(){

//jTable1.setModel(new DefaultTableModel(null,new String[]{""}));

DefaultTableModel tableModel = new DefaultTableModel();

String query="Select subjectName from subject where class ='"+c+"' order by subjectName asc";

DefaultTableModel model=(DefaultTableModel)jTable1.getModel();



Read More »

By: StackOverFlow - Wednesday, 14 March

Related Posts