Using JTable without extending or overriding
I am writing a small program in Matlab. My program has a JTable in it which i have built from pure java classes. Here is a sample Matlab code (you will see that code is same with Java);
As you can see java objects can be used within Matlab. Now my problem is i couldnt make my table uneditable. I know that it is fairly easy doing it in Java by overriding isCellEditable method so that it returns false. However it is not possible to extend or override a Java class in Matlab (as far as i know). So i need to find another solution. Is there any other way of doing it right without overriding or extending? The only work around solution i could find is making uneditable the textfields of every columns like this;
That forbids editing but when any keyboard key is pressed, cell is entered everytime (even though it cant be edited). There is a method in cellEditor named setClickCountToStart, i gave a big number so cell cannot be entered in with mouse click but i also need to disable editing with key press now. Is it possible?