Changeset 7730 in josm for trunk/src


Ignore:
Timestamp:
2014-11-18T22:14:26+01:00 (5 years ago)
Author:
Don-vip
Message:

see #10701 - automatic download of changeset discussion comments + change font

Location:
trunk/src/org/openstreetmap/josm/gui/dialogs/changeset
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/AbstractCellRenderer.java

    r7715 r7730  
    2222public abstract class AbstractCellRenderer extends JLabel implements TableCellRenderer {
    2323
    24     protected void reset(JComponent c) {
     24    protected void reset(JComponent c, boolean tableFont) {
    2525        c.setBackground(UIManager.getColor("Table.background"));
    2626        c.setForeground(UIManager.getColor("Table.foreground"));
    27         c.setFont(UIManager.getFont("Table.font"));
     27        if (tableFont) {
     28            c.setFont(UIManager.getFont("Table.font"));
     29        }
    2830        c.setToolTipText(null);
    2931        c.setOpaque(true);
     
    3133
    3234    protected void reset() {
    33         reset(this);
     35        reset(this, true);
    3436    }
    3537
  • trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/ChangesetDiscussionPanel.java

    r7715 r7730  
    9797        }
    9898        actUpdateChangesets.initProperties(current);
     99        if (cs != null && cs.getDiscussion().size() < cs.getCommentsCount()) {
     100            actUpdateChangesets.actionPerformed(null);
     101        }
    99102    }
    100103
     
    109112        JPanel pnl = new JPanel(new BorderLayout());
    110113        table = new JTable(model, new ChangesetDiscussionTableColumnModel());
    111         //tblContent.addMouseListener(new PopupMenuLauncher(new ChangesetContentTablePopupMenu()));
    112114        pnl.add(new JScrollPane(table), BorderLayout.CENTER);
    113115        return pnl;
  • trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/ChangesetDiscussionTableCellRenderer.java

    r7715 r7730  
    2323            return this;
    2424        JComponent comp = this;
    25         reset(comp);
     25        reset(comp, true);
    2626        renderColors(comp, isSelected);
    2727        switch(column) {
     
    3434        case 2:
    3535            comp = new JosmTextArea((String) value);
    36             reset(comp);
     36            reset(comp, false);
    3737            renderColors(comp, isSelected);
    3838        }
Note: See TracChangeset for help on using the changeset viewer.