设立JTable单元格不可编辑
设置JTable单元格不可编辑
table = new jtable(){
public boolean iscelleditable(int row, int column){
if(column>3) //表示设置前3列不可编辑
{
return false;
}
else
{
return true;
}
}
};
table = new jtable(){
public boolean iscelleditable(int row, int column){
if(column>3) //表示设置前3列不可编辑
{
return false;
}
else
{
return true;
}
}
};