Closedown
This commit is contained in:
@@ -46,16 +46,8 @@
|
||||
<SubComponents>
|
||||
<Component class="javax.swing.JTable" name="jTable1">
|
||||
<Properties>
|
||||
<Property name="model" type="javax.swing.table.TableModel" editor="org.netbeans.modules.form.editors2.TableModelEditor">
|
||||
<Table columnCount="7" rowCount="4">
|
||||
<Column editable="true" title="Select" type="java.lang.Boolean"/>
|
||||
<Column editable="true" title="Title 1" type="java.lang.Object"/>
|
||||
<Column editable="true" title="Title 3" type="java.lang.Object"/>
|
||||
<Column editable="true" title="Title 4" type="java.lang.Object"/>
|
||||
<Column editable="true" title="Title 5" type="java.lang.Object"/>
|
||||
<Column editable="true" title="" type="java.lang.Object"/>
|
||||
<Column editable="false" title="Icon" type="java.lang.Object"/>
|
||||
</Table>
|
||||
<Property name="model" type="javax.swing.table.TableModel" editor="org.netbeans.modules.form.RADConnectionPropertyEditor">
|
||||
<Connection code="new javax.swing.table.DefaultTableModel(
 new Object [][] {
 {null, null, null, null, null, null, null},
 {null, null, null, null, null, null, null},
 {null, null, null, null, null, null, null},
 {null, null, null, null, null, null, null}
 },
 new String [] {
 "Select", "Title 1", "Title 3", "Title 4", "Title 5", "", "Icon"
 }
) {
 Class[] types = new Class [] {
 java.lang.Boolean.class, java.lang.Object.class, java.lang.Object.class, java.lang.Object.class, java.lang.Object.class, java.lang.Object.class, java.lang.Object.class
 };
 boolean[] canEdit = new boolean [] {
 true, true, true, true, true, true, false
 };

 public Class getColumnClass(int columnIndex) {
 switch (columnIndex){
 case 0:
 return Boolean.class.
 casa 6:
 return ImageIcon.class;
 }
 return types [columnIndex];
 }

 public boolean isCellEditable(int rowIndex, int columnIndex) {
 return canEdit [columnIndex];
 }
}" type="code"/>
|
||||
</Property>
|
||||
<Property name="columnModel" type="javax.swing.table.TableColumnModel" editor="org.netbeans.modules.form.editors2.TableColumnModelEditor">
|
||||
<TableColumnModel selectionModel="0">
|
||||
|
||||
@@ -167,6 +167,12 @@ jTable1.setValueAt(icon, rowD, COL_ICON);
|
||||
};
|
||||
|
||||
public Class getColumnClass(int columnIndex) {
|
||||
switch (columnIndex){
|
||||
case 0:
|
||||
return Boolean.class.
|
||||
casa 6:
|
||||
return ImageIcon.class;
|
||||
}
|
||||
return types [columnIndex];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user