diff options
Diffstat (limited to 'odk/examples/java/Text/SWriter.java')
-rw-r--r-- | odk/examples/java/Text/SWriter.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/odk/examples/java/Text/SWriter.java b/odk/examples/java/Text/SWriter.java index d96c583ce6b5..393edc1c01d5 100644 --- a/odk/examples/java/Text/SWriter.java +++ b/odk/examples/java/Text/SWriter.java @@ -155,9 +155,9 @@ public class SWriter { // Change the BackColor try { - xTTPS.setPropertyValue("BackTransparent", new Boolean(false)); + xTTPS.setPropertyValue("BackTransparent", Boolean.FALSE); xTTPS.setPropertyValue("BackColor",new Integer(13421823)); - xTTRowPS.setPropertyValue("BackTransparent", new Boolean(false)); + xTTRowPS.setPropertyValue("BackTransparent", Boolean.FALSE); xTTRowPS.setPropertyValue("BackColor",new Integer(6710932)); } catch (Exception e) { @@ -206,7 +206,7 @@ public class SWriter { // Change the CharColor and add a Shadow try { xTCPS.setPropertyValue("CharColor",new Integer(255)); - xTCPS.setPropertyValue("CharShadowed", new Boolean(true)); + xTCPS.setPropertyValue("CharShadowed", Boolean.TRUE); } catch (Exception e) { System.err.println("Couldn't change the color " + e); e.printStackTrace(System.err); @@ -316,7 +316,7 @@ public class SWriter { // Change the CharColor and add a Shadow try { xTCPS.setPropertyValue("CharColor",new Integer(65536)); - xTCPS.setPropertyValue("CharShadowed", new Boolean(false)); + xTCPS.setPropertyValue("CharShadowed", Boolean.FALSE); } catch (Exception e) { System.err.println("Couldn't change the color " + e); e.printStackTrace(System.err); |