java - in JTable, How can I disable to edit a specified colunm or row? -


i have trouble , looking solution.

but now, can't do.

i ask guys issue jtable.

this code makes me disable edit cells.

final jtable table = new jtable(data, columnnames){         public boolean iscelleditable(int row, int col) {               return true;         } }; 

but, want code me not edit specified colunm or row.

so, if me, appreciate !

if - else out :

public boolean iscelleditable(int row, int col) {    if(yourconditionmet)   <--- can apply check        return true;    else       return false; } 

Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -