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

How to run C# code using mono without Xamarin in Android? -

c# - SharpSsh Command Execution -

python - Specify path of savefig with pylab or matplotlib -