Changeset 7730 in josm for trunk/src/org
- Timestamp:
- 2014-11-18T22:14:26+01:00 (10 years ago)
- 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 22 22 public abstract class AbstractCellRenderer extends JLabel implements TableCellRenderer { 23 23 24 protected void reset(JComponent c ) {24 protected void reset(JComponent c, boolean tableFont) { 25 25 c.setBackground(UIManager.getColor("Table.background")); 26 26 c.setForeground(UIManager.getColor("Table.foreground")); 27 c.setFont(UIManager.getFont("Table.font")); 27 if (tableFont) { 28 c.setFont(UIManager.getFont("Table.font")); 29 } 28 30 c.setToolTipText(null); 29 31 c.setOpaque(true); … … 31 33 32 34 protected void reset() { 33 reset(this );35 reset(this, true); 34 36 } 35 37 -
trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/ChangesetDiscussionPanel.java
r7715 r7730 97 97 } 98 98 actUpdateChangesets.initProperties(current); 99 if (cs != null && cs.getDiscussion().size() < cs.getCommentsCount()) { 100 actUpdateChangesets.actionPerformed(null); 101 } 99 102 } 100 103 … … 109 112 JPanel pnl = new JPanel(new BorderLayout()); 110 113 table = new JTable(model, new ChangesetDiscussionTableColumnModel()); 111 //tblContent.addMouseListener(new PopupMenuLauncher(new ChangesetContentTablePopupMenu()));112 114 pnl.add(new JScrollPane(table), BorderLayout.CENTER); 113 115 return pnl; -
trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/ChangesetDiscussionTableCellRenderer.java
r7715 r7730 23 23 return this; 24 24 JComponent comp = this; 25 reset(comp );25 reset(comp, true); 26 26 renderColors(comp, isSelected); 27 27 switch(column) { … … 34 34 case 2: 35 35 comp = new JosmTextArea((String) value); 36 reset(comp );36 reset(comp, false); 37 37 renderColors(comp, isSelected); 38 38 }
Note:
See TracChangeset
for help on using the changeset viewer.