JAL-629 Change all stdout and stderr output to use Console.outPrintln and Console...
[jalview.git] / src / jalview / bin / HiDPISetting.java
index 2bce673..3f57aed 100644 (file)
@@ -117,7 +117,7 @@ public class HiDPISetting
         }
       } catch (NumberFormatException e)
       {
-        System.err.println(setHiDPIScalePropertyName + " property give ("
+        jalview.bin.Console.errPrintln(setHiDPIScalePropertyName + " property give ("
                 + setHiDPIScaleProperty + ") but not parseable as integer");
       }
     }
@@ -135,7 +135,7 @@ public class HiDPISetting
       try
       {
         int existingPropertyVal = Integer.parseInt(existingProperty);
-        System.out.println("Existing " + scalePropertyName + " is "
+        jalview.bin.Console.outPrintln("Existing " + scalePropertyName + " is "
                 + existingPropertyVal);
         if (existingPropertyVal > 1)
         {
@@ -144,7 +144,7 @@ public class HiDPISetting
         }
       } catch (NumberFormatException e)
       {
-        System.out.println("Could not convert property " + scalePropertyName
+        jalview.bin.Console.outPrintln("Could not convert property " + scalePropertyName
                 + " vale '" + existingProperty + "' to number");
       }
     }
@@ -159,7 +159,7 @@ public class HiDPISetting
       dpi = screenInfo.getScreenResolution();
     } catch (HeadlessException e)
     {
-      System.err.println("Cannot get screen resolution: " + e.getMessage());
+      jalview.bin.Console.errPrintln("Cannot get screen resolution: " + e.getMessage());
     }
 
     // try and get screen size height and width
@@ -171,7 +171,7 @@ public class HiDPISetting
       mindimension = Math.min(height, width);
     } catch (HeadlessException e)
     {
-      System.err.println(
+      jalview.bin.Console.errPrintln(
               "Cannot get screen size height and width:" + e.getMessage());
     }