1*d127360fSAndrew Rist /************************************************************** 2*d127360fSAndrew Rist * 3*d127360fSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*d127360fSAndrew Rist * or more contributor license agreements. See the NOTICE file 5*d127360fSAndrew Rist * distributed with this work for additional information 6*d127360fSAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*d127360fSAndrew Rist * to you under the Apache License, Version 2.0 (the 8*d127360fSAndrew Rist * "License"); you may not use this file except in compliance 9*d127360fSAndrew Rist * with the License. You may obtain a copy of the License at 10*d127360fSAndrew Rist * 11*d127360fSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*d127360fSAndrew Rist * 13*d127360fSAndrew Rist * Unless required by applicable law or agreed to in writing, 14*d127360fSAndrew Rist * software distributed under the License is distributed on an 15*d127360fSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*d127360fSAndrew Rist * KIND, either express or implied. See the License for the 17*d127360fSAndrew Rist * specific language governing permissions and limitations 18*d127360fSAndrew Rist * under the License. 19*d127360fSAndrew Rist * 20*d127360fSAndrew Rist *************************************************************/ 21*d127360fSAndrew Rist 22cdf0e10cSrcweir package transex3.view; 23cdf0e10cSrcweir 24cdf0e10cSrcweir import javax.swing.JTable; 25cdf0e10cSrcweir 26cdf0e10cSrcweir class SdfTable extends JTable{ 27cdf0e10cSrcweir //private String tableId; SdfTable( Object[][] obj1 , Object[] obj2)28cdf0e10cSrcweir public SdfTable( Object[][] obj1 , Object[] obj2){ 29cdf0e10cSrcweir super(obj1,obj2); 30cdf0e10cSrcweir } 31cdf0e10cSrcweir //@Override isCellEditable(int row, int col)32cdf0e10cSrcweir public boolean isCellEditable(int row, int col) { 33cdf0e10cSrcweir if( row == 0 && col == 0 || row == 0 && col == 1 || row == 0 && col == 2 || row == 0 && col == 3 || row == 0 && col == 4 ) 34cdf0e10cSrcweir return false; 35cdf0e10cSrcweir else 36cdf0e10cSrcweir return true; 37cdf0e10cSrcweir } 38cdf0e10cSrcweir /*public String getTableId() { 39cdf0e10cSrcweir return tableId; 40cdf0e10cSrcweir } 41cdf0e10cSrcweir public void setTableId(String tableId) { 42cdf0e10cSrcweir this.tableId = tableId; 43cdf0e10cSrcweir }*/ 44cdf0e10cSrcweir 45cdf0e10cSrcweir }