pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1684229 - /pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/pdfdebugger/colorpane/CSSeparation.java
Date Mon, 08 Jun 2015 17:31:33 GMT
Author: tilman
Date: Mon Jun  8 17:31:33 2015
New Revision: 1684229

URL: http://svn.apache.org/r1684229
Log:
PDFBOX-2530: use available constant

Modified:
    pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/pdfdebugger/colorpane/CSSeparation.java

Modified: pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/pdfdebugger/colorpane/CSSeparation.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/pdfdebugger/colorpane/CSSeparation.java?rev=1684229&r1=1684228&r2=1684229&view=diff
==============================================================================
--- pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/pdfdebugger/colorpane/CSSeparation.java
(original)
+++ pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/pdfdebugger/colorpane/CSSeparation.java
Mon Jun  8 17:31:33 2015
@@ -77,7 +77,7 @@ public class CSSeparation implements Cha
      */
     private void initUI()
     {
-        Font boldFont = new Font("Monospaced", Font.BOLD, 20);
+        Font boldFont = new Font(Font.MONOSPACED, Font.BOLD, 20);
 
         GridBagConstraints gbc = new GridBagConstraints();
         gbc.insets = new Insets(2, 2, 2, 2);
@@ -90,11 +90,11 @@ public class CSSeparation implements Cha
 
         Dictionary labelTable = new Hashtable();
         JLabel lightest = new JLabel("lightest");
-        lightest.setFont(new Font("Monospaced", Font.BOLD, 10));
+        lightest.setFont(new Font(Font.MONOSPACED, Font.BOLD, 10));
         JLabel darkest = new JLabel("darkest");
-        darkest.setFont(new Font("Monospaced", Font.BOLD, 10));
+        darkest.setFont(new Font(Font.MONOSPACED, Font.BOLD, 10));
         JLabel midPoint = new JLabel("0.5");
-        midPoint.setFont(new Font("Monospaced", Font.BOLD, 10));
+        midPoint.setFont(new Font(Font.MONOSPACED, Font.BOLD, 10));
         labelTable.put(0, lightest);
         labelTable.put(50, midPoint);
         labelTable.put(100, darkest);



Mime
View raw message