What does this code mean:
table = new JTable(){
public boolean isCellEditable(int arg0, int arg1) {
return true;
}
};
It's an anonymous class, which in this case has provided an implementation for JTable's isCellEditable method that always returns true.
Think of it as:
class MyJTable extends JTable
{
public boolean isCellEditable(int arg0, int arg1) {
return true;
}
}
table = new MyJTable;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With