Hello,
I think this might count as a bug, not just an inconvenience... If I try to set a value in commonly used form, like 10000000.0 (or .0001) in a DialogComponentNumberEdit component, it rejects it (with the exception below swallowed). I think this is because the default formatting for doubles outside this range is the scientific. (Note: It is possible to set these values in scientific notation.)
In my opinion both should be supported (even without the .0 suffix). Is it possible to fix this in the future?
Thanks, gabor
java.lang.IllegalStateException: Attempt to mutate in notification
at javax.swing.text.AbstractDocument.writeLock(Unknown Source)
at javax.swing.text.AbstractDocument.replace(Unknown Source)
at javax.swing.text.JTextComponent.setText(Unknown Source)
at org.knime.core.node.defaultnodesettings.DialogComponentNumberEdit.updateComponent(DialogComponentNumberEdit.java:239)
at org.knime.core.node.defaultnodesettings.DialogComponentNumberEdit$2.stateChanged(DialogComponentNumberEdit.java:187)
at org.knime.core.node.defaultnodesettings.SettingsModel.notifyChangeListeners(SettingsModel.java:287)
at org.knime.core.node.defaultnodesettings.SettingsModelDouble.setDoubleValue(SettingsModelDouble.java:125)
at org.knime.core.node.defaultnodesettings.SettingsModelDoubleBounded.setDoubleValue(SettingsModelDoubleBounded.java:141)
at org.knime.core.node.defaultnodesettings.SettingsModelDouble.setNumberValueStr(SettingsModelDouble.java:146)
at org.knime.core.node.defaultnodesettings.DialogComponentNumberEdit.updateModel(DialogComponentNumberEdit.java:254)
at org.knime.core.node.defaultnodesettings.DialogComponentNumberEdit.access$0(DialogComponentNumberEdit.java:251)
at org.knime.core.node.defaultnodesettings.DialogComponentNumberEdit$1.insertUpdate(DialogComponentNumberEdit.java:169)
at javax.swing.text.AbstractDocument.fireInsertUpdate(Unknown Source)
at javax.swing.text.AbstractDocument.handleInsertString(Unknown Source)
at javax.swing.text.AbstractDocument.insertString(Unknown Source)
at javax.swing.text.PlainDocument.insertString(Unknown Source)
at javax.swing.text.AbstractDocument.replace(Unknown Source)
at javax.swing.text.JTextComponent.replaceSelection(Unknown Source)
at javax.swing.text.DefaultEditorKit$DefaultKeyTypedAction.actionPerformed(Unknown Source)
at javax.swing.SwingUtilities.notifyAction(Unknown Source)
at javax.swing.JComponent.processKeyBinding(Unknown Source)
at javax.swing.JComponent.processKeyBindings(Unknown Source)
at javax.swing.JComponent.processKeyEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)