summaryrefslogtreecommitdiff
path: root/javax/swing/JSpinner.java
diff options
context:
space:
mode:
Diffstat (limited to 'javax/swing/JSpinner.java')
-rw-r--r--javax/swing/JSpinner.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/javax/swing/JSpinner.java b/javax/swing/JSpinner.java
index 882d216e1..70045ed53 100644
--- a/javax/swing/JSpinner.java
+++ b/javax/swing/JSpinner.java
@@ -106,6 +106,10 @@ public class JSpinner extends JComponent
add(ftf);
ftf.setValue(spinner.getValue());
ftf.addPropertyChangeListener(this);
+ if(getComponentOrientation().isLeftToRight())
+ ftf.setHorizontalAlignment(JTextField.RIGHT);
+ else
+ ftf.setHorizontalAlignment(JTextField.LEFT);
spinner.addChangeListener(this);
}