patches/openproj-01-jre-1.6.0.diff
author yippi
Mon, 27 Sep 2010 21:07:51 +0000
changeset 20108 51df67ca9307
parent 18110 93461edb1490
permissions -rw-r--r--
I had these modules listed as being owned by me, but they are really owned by wangke, correcting.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
18110
93461edb1490 2010-06-10 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
     1
--- openproj-1.4-src/openproj_ui/src/com/projity/dialog/util/ComponentFactory.java.orig	Thu Nov 13 17:50:10 2008
93461edb1490 2010-06-10 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
     2
+++ openproj-1.4-src/openproj_ui/src/com/projity/dialog/util/ComponentFactory.java	Thu Nov 13 17:51:16 2008
93461edb1490 2010-06-10 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
     3
@@ -160,7 +160,7 @@
93461edb1490 2010-06-10 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
     4
 		} else if (component instanceof JComboBox)
93461edb1490 2010-06-10 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
     5
 			((JComboBox)component).setSelectedItem(value);
93461edb1490 2010-06-10 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
     6
 		else if (component instanceof JSpinner&&value!=null) {
93461edb1490 2010-06-10 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
     7
-			((JSpinner)component).setValue(value);
93461edb1490 2010-06-10 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
     8
+			((JSpinner)component).setValue(Double.valueOf(value.toString()));
93461edb1490 2010-06-10 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
     9
 			if (isMultipleValues) { // set editor to empty.  Unfortunately, this disables the spinner
93461edb1490 2010-06-10 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    10
 				getSpinnerTextField((JSpinner)component).setText("");
93461edb1490 2010-06-10 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    11
 			} else {