Changeset 15775 in josm


Ignore:
Timestamp:
2020-01-26T18:26:26+01:00 (4 weeks ago)
Author:
simon04
Message:

Use (correct) magic constants

Location:
trunk
Files:
6 edited

Legend:

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

    r14153 r15775  
    55
    66import java.awt.Dimension;
     7import java.awt.Font;
    78import java.awt.GridBagLayout;
    89
     
    3940        JLabel lbl = new JLabel(msg);
    4041
    41         lbl.setFont(lbl.getFont().deriveFont(0, 14));
     42        lbl.setFont(lbl.getFont().deriveFont(Font.PLAIN, 14));
    4243
    4344        p.add(lbl, GBC.eol().insets(5, 0, 5, 0));
  • trunk/src/org/openstreetmap/josm/gui/dialogs/relation/MemberTableLinkedCellRenderer.java

    r15696 r15775  
    224224                1f,
    225225                BasicStroke.CAP_BUTT,
    226                 BasicStroke.CAP_BUTT,
     226                BasicStroke.JOIN_MITER,
    227227                5f,
    228228                new float[] {1f, 2f},
  • trunk/src/org/openstreetmap/josm/gui/layer/geoimage/CorrelateGpxWithImages.java

    r15503 r15775  
    1010import java.awt.Dimension;
    1111import java.awt.FlowLayout;
     12import java.awt.Font;
    1213import java.awt.GraphicsEnvironment;
    1314import java.awt.GridBagConstraints;
     
    994995        statusBar.setBorder(BorderFactory.createLoweredBevelBorder());
    995996        statusBarText = new JLabel(" ");
    996         statusBarText.setFont(statusBarText.getFont().deriveFont(8));
     997        statusBarText.setFont(statusBarText.getFont().deriveFont(Font.PLAIN, 8));
    997998        statusBar.add(statusBarText);
    998999
  • trunk/src/org/openstreetmap/josm/gui/widgets/UrlLabel.java

    r14822 r15775  
    55
    66import java.awt.Cursor;
     7import java.awt.Font;
    78import java.awt.event.MouseEvent;
    89import java.awt.event.MouseListener;
     
    8586        setDescription(description);
    8687        if (fontPlus != 0) {
    87             setFont(getFont().deriveFont(0, (float) getFont().getSize()+fontPlus));
     88            setFont(getFont().deriveFont(Font.PLAIN, (float) getFont().getSize()+fontPlus));
    8889        }
    8990        refresh();
  • trunk/test/unit/org/openstreetmap/josm/data/preferences/StrokePropertyTest.java

    r12849 r15775  
    8383        assertEquals(null, bs.getDashArray());
    8484
    85         property.put(new BasicStroke(2, 0, 0, 1, new float[] {0.1f, 1, 10}, 0));
     85        property.put(new BasicStroke(2, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER, 1, new float[] {0.1f, 1, 10}, 0));
    8686        bs = property.get();
    8787        assertWide(bs);
  • trunk/test/unit/org/openstreetmap/josm/testutils/FakeGraphics.java

    r10390 r15775  
    6363    @Override
    6464    public Font getFont() {
    65         return new Font(null, 0, 0);
     65        return new Font(null, Font.PLAIN, 0);
    6666    }
    6767
Note: See TracChangeset for help on using the changeset viewer.