|
|
@ -9,6 +9,7 @@ import com.fr.design.layout.FRGUIPaneFactory; |
|
|
|
import com.fr.design.layout.TableLayout; |
|
|
|
import com.fr.design.layout.TableLayout; |
|
|
|
import com.fr.design.layout.TableLayoutHelper; |
|
|
|
import com.fr.design.layout.TableLayoutHelper; |
|
|
|
import com.fr.form.ui.NumberEditor; |
|
|
|
import com.fr.form.ui.NumberEditor; |
|
|
|
|
|
|
|
import com.fr.stable.AssistUtils; |
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
|
|
|
|
|
|
|
|
import javax.swing.BorderFactory; |
|
|
|
import javax.swing.BorderFactory; |
|
|
@ -226,7 +227,7 @@ public class NumberEditorValidatePane extends JPanel { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
allowNegativeCheckBox.setSelected(e.isAllowNegative()); |
|
|
|
allowNegativeCheckBox.setSelected(e.isAllowNegative()); |
|
|
|
if (e.getMaxValue() == Double.MAX_VALUE) { |
|
|
|
if (AssistUtils.equals(e.getMaxValue(),Double.MAX_VALUE)) { |
|
|
|
setMaxValueCheckBox.setSelected(false); |
|
|
|
setMaxValueCheckBox.setSelected(false); |
|
|
|
maxValueSpinner.setValue(Double.MAX_VALUE); |
|
|
|
maxValueSpinner.setValue(Double.MAX_VALUE); |
|
|
|
maxValueSpinner.setEnabled(false); |
|
|
|
maxValueSpinner.setEnabled(false); |
|
|
@ -236,7 +237,7 @@ public class NumberEditorValidatePane extends JPanel { |
|
|
|
maxValueSpinner.setValue(e.getMaxValue()); |
|
|
|
maxValueSpinner.setValue(e.getMaxValue()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (e.getMinValue() == -Double.MAX_VALUE) { |
|
|
|
if (AssistUtils.equals(e.getMinValue(),-Double.MAX_VALUE)) { |
|
|
|
setMinValueCheckBox.setSelected(false); |
|
|
|
setMinValueCheckBox.setSelected(false); |
|
|
|
minValueSpinner.setValue(-Double.MAX_VALUE); |
|
|
|
minValueSpinner.setValue(-Double.MAX_VALUE); |
|
|
|
minValueSpinner.setEnabled(false); |
|
|
|
minValueSpinner.setEnabled(false); |
|
|
|