1 7 package org.jdesktop.swing.data; 8 9 14 public class TableModelExtAdapterMetaDataProviderTest extends 15 AbstractMetaDataProviderTst { 16 17 protected MetaDataProvider createFilledMetaDataProvider() { 18 DefaultTableModelExt model = new DefaultTableModelExt(defaultMetaData.length); 19 for (int i = 0; i < defaultMetaData.length; i++) { 20 model.setColumnMetaData(i, defaultMetaData[i]); 21 } 22 TableModelExtAdapter adapter = new TableModelExtAdapter(model); 23 return adapter; 24 } 25 26 protected MetaDataProvider createEmptyMetaDataProvider() { 27 return new TableModelExtAdapter(new DefaultTableModelExt()); 28 } 29 30 } 31 | Popular Tags |