hi i studied ur post in this link
http://www.daniweb.com/software-development/java/threads/118194
but i m unable to edit the default table here is its code
jTable1 = new javax.swing.JTable();
[B]jTable1.setModel(= new javax.swing.table.DefaultTableModel([/B]
new Object [][] {
},
new String [] {
"Book Name", "Author Name"
}
) {
Class[] types = new Class [] {
java.lang.String.class, java.lang.String.class
};
boolean[] canEdit = new boolean [] {
false, false
};
public Class getColumnClass(int columnIndex) {
return types [columnIndex];
}
public boolean isCellEditable(int rowIndex, int columnIndex) {
return canEdit [columnIndex];
}
});
jScrollPane1.setViewportView(jTable1);
this is a code generated by netbeans itself but im unable to edit the bold code i wants to edit it like this
DefaultTableModel model= new javax.swing.table.DefaultTableModel
but im invane any help would be appreatied plz help sooon