Changeset 8893 in josm


Ignore:
Timestamp:
2015-10-18T12:18:05+02:00 (4 years ago)
Author:
simon04
Message:

fix #11917 - remove the words "not present" in the object history window for more clarity

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/history/TagTableCellRenderer.java

    r8510 r8893  
    22package org.openstreetmap.josm.gui.history;
    33
    4 import static org.openstreetmap.josm.tools.I18n.tr;
    5 
    64import java.awt.Color;
    75import java.awt.Component;
    8 import java.awt.Font;
    96
    107import javax.swing.JLabel;
     
    3128        Color bgColor = UIManager.getColor("Table.background");
    3229        Color fgColor = UIManager.getColor("Table.foreground");
    33         Font font = UIManager.getFont("Table.font");
    3430        if (!model.hasTag(key)) {
    35             text = tr("not present");
     31            text = "";
    3632            bgColor = BGCOLOR_DIFFERENCE;
    37             font = font.deriveFont(Font.ITALIC);
    3833        } else if (!model.oppositeHasTag(key)) {
    3934            bgColor = BGCOLOR_DIFFERENCE;
     
    4843        setBackground(bgColor);
    4944        setForeground(fgColor);
    50         setFont(font);
    5145    }
    5246
     
    5549        Color bgColor = UIManager.getColor("Table.background");
    5650        Color fgColor = UIManager.getColor("Table.foreground");
    57         Font font = UIManager.getFont("Table.font");
    5851        if (!model.hasTag(key)) {
    59             text = tr("not present");
    6052            bgColor = BGCOLOR_DIFFERENCE;
    61             font = font.deriveFont(Font.ITALIC);
    6253        } else {
    6354            text = model.getValue(key);
     
    7566        setBackground(bgColor);
    7667        setForeground(fgColor);
    77         setFont(font);
    7868    }
    7969
Note: See TracChangeset for help on using the changeset viewer.