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

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -