- Timestamp:
- 2015-10-18T12:18:05+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/history/TagTableCellRenderer.java
r8510 r8893 2 2 package org.openstreetmap.josm.gui.history; 3 3 4 import static org.openstreetmap.josm.tools.I18n.tr;5 6 4 import java.awt.Color; 7 5 import java.awt.Component; 8 import java.awt.Font;9 6 10 7 import javax.swing.JLabel; … … 31 28 Color bgColor = UIManager.getColor("Table.background"); 32 29 Color fgColor = UIManager.getColor("Table.foreground"); 33 Font font = UIManager.getFont("Table.font");34 30 if (!model.hasTag(key)) { 35 text = tr("not present");31 text = ""; 36 32 bgColor = BGCOLOR_DIFFERENCE; 37 font = font.deriveFont(Font.ITALIC);38 33 } else if (!model.oppositeHasTag(key)) { 39 34 bgColor = BGCOLOR_DIFFERENCE; … … 48 43 setBackground(bgColor); 49 44 setForeground(fgColor); 50 setFont(font);51 45 } 52 46 … … 55 49 Color bgColor = UIManager.getColor("Table.background"); 56 50 Color fgColor = UIManager.getColor("Table.foreground"); 57 Font font = UIManager.getFont("Table.font");58 51 if (!model.hasTag(key)) { 59 text = tr("not present");60 52 bgColor = BGCOLOR_DIFFERENCE; 61 font = font.deriveFont(Font.ITALIC);62 53 } else { 63 54 text = model.getValue(key); … … 75 66 setBackground(bgColor); 76 67 setForeground(fgColor); 77 setFont(font);78 68 } 79 69
Note:
See TracChangeset
for help on using the changeset viewer.