diff options
Diffstat (limited to 'nlpsolver')
-rw-r--r-- | nlpsolver/src/com/sun/star/comp/Calc/NLPSolver/dialogs/controls/BaseControl.java | 8 | ||||
-rw-r--r-- | nlpsolver/src/com/sun/star/comp/Calc/NLPSolver/dialogs/controls/Label.java | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/nlpsolver/src/com/sun/star/comp/Calc/NLPSolver/dialogs/controls/BaseControl.java b/nlpsolver/src/com/sun/star/comp/Calc/NLPSolver/dialogs/controls/BaseControl.java index 6277ba0125c9..2af5b1176046 100644 --- a/nlpsolver/src/com/sun/star/comp/Calc/NLPSolver/dialogs/controls/BaseControl.java +++ b/nlpsolver/src/com/sun/star/comp/Calc/NLPSolver/dialogs/controls/BaseControl.java @@ -122,13 +122,13 @@ public abstract class BaseControl { // <editor-fold defaultstate="collapsed" desc="Uno Properties"> public void setPosition(int x, int y) { - setProperty("PositionX", new Integer(x)); - setProperty("PositionY", new Integer(y)); + setProperty("PositionX", Integer.valueOf(x)); + setProperty("PositionY", Integer.valueOf(y)); } public void setSize(int width, int height) { - setProperty("Width", new Integer(width)); - setProperty("Height", new Integer(height)); + setProperty("Width", Integer.valueOf(width)); + setProperty("Height", Integer.valueOf(height)); } public void setEnabled(boolean enabled) { diff --git a/nlpsolver/src/com/sun/star/comp/Calc/NLPSolver/dialogs/controls/Label.java b/nlpsolver/src/com/sun/star/comp/Calc/NLPSolver/dialogs/controls/Label.java index 5b7fdf348888..689350ce297b 100644 --- a/nlpsolver/src/com/sun/star/comp/Calc/NLPSolver/dialogs/controls/Label.java +++ b/nlpsolver/src/com/sun/star/comp/Calc/NLPSolver/dialogs/controls/Label.java @@ -61,7 +61,7 @@ public class Label extends LabeledControl { public void setTextColor(int RGB) { - setProperty("TextColor", new Integer(RGB)); + setProperty("TextColor", Integer.valueOf(RGB)); } public int getTextColor() { |