首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

设立JTable单元格不可编辑

2012-08-31 
设置JTable单元格不可编辑tablenewjtable(){publicbooleaniscelleditable(introw,intcolumn){if(column3

设置JTable单元格不可编辑
table   =   new   jtable(){  
        public   boolean   iscelleditable(int   row,   int   column){  

             if(column>3) //表示设置前3列不可编辑
             {
                return   false;
             }
             else
             {
                  return true;
             }  
        }  
  };

热点排行