I have an JAVA project and want to make my JTable with a DefaultTableModel non-editable. I know a work-around to do this, called:
JTable table = new JTable(...){
public boolean isCellEditable(int row, int column){
return false;
}
};
Like said: i dont like this. This is not according the rules of my school training.
Is there any way to do this? Maybe is there a good way. I hope so!