18110
|
1 |
--- openproj-1.4-src/openproj_ui/src/com/projity/dialog/util/ComponentFactory.java.orig Thu Nov 13 17:50:10 2008
|
|
2 |
+++ openproj-1.4-src/openproj_ui/src/com/projity/dialog/util/ComponentFactory.java Thu Nov 13 17:51:16 2008
|
|
3 |
@@ -160,7 +160,7 @@
|
|
4 |
} else if (component instanceof JComboBox)
|
|
5 |
((JComboBox)component).setSelectedItem(value);
|
|
6 |
else if (component instanceof JSpinner&&value!=null) {
|
|
7 |
- ((JSpinner)component).setValue(value);
|
|
8 |
+ ((JSpinner)component).setValue(Double.valueOf(value.toString()));
|
|
9 |
if (isMultipleValues) { // set editor to empty. Unfortunately, this disables the spinner
|
|
10 |
getSpinnerTextField((JSpinner)component).setText("");
|
|
11 |
} else {
|