Changeset 12043 for trunk/gli/src/org
- Timestamp:
- 2006-07-06T17:32:37+12:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/gui/MetadataValueTablePane.java
r10593 r12043 322 322 JComponent component = (JLabel) super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column); 323 323 324 int real_column = table.convertColumnIndexToModel(column); 324 325 // First column: inherited metadata icon 325 if ( column == 0 && value != null) {326 if (real_column == 0 && value != null) { 326 327 component = new JLabel(JarTools.getImage("upfolder.gif")); 327 328 } 328 329 329 330 // Make sure the focus always stay in the value cell of the selected row 330 if ( column == 2 && isSelected) {331 if (real_column == 2 && isSelected) { 331 332 table.editCellAt(row, column); 332 333 if (table.isEditing()) { … … 351 352 } 352 353 else { 353 if ( column < 2) {354 if (real_column < 2) { 354 355 component.setBackground(Configuration.getColor("coloring.collection_heading_background", true)); 355 356 } … … 360 361 361 362 // The value column of cells never paints focus 362 if ( column == 2) {363 if (real_column == 2) { 363 364 component.setBorder(BorderFactory.createEmptyBorder(0,2,0,0)); 364 365 }
Note:
See TracChangeset
for help on using the changeset viewer.