Product Version: NetBeans IDE Dev (Build 200803110005)
Java: 1.5.0_13; Java HotSpot(TM) Client VM 1.5.0_13-119
System: Mac OS X version 10.5.2 running on i386; MacCentralEurope; cs_CZ (nb)
Click ellipsis (...) button by some property of a "dimension" type (for example maximumSize of the JPanel). Dialog shows up. Type "hello" to the "width" field
and click OK. You will get an error message. Click OK again (or type "Hello world" in the "width" field and click OK then). A dialog is closed, dimensions
remained as if a user clicked Cancel button.
A warning dialog should be displayed whenever a user tries to click OK and the values are incorrect.
Reassigned to component "form".
DimensionEditor resides in core => reassigning.
I am sorry to reopen this issue, I would like to propose a small enhancement concerning the validation (it is
ENHANCEMENT and I didn't want to open a new issue for it).
First I have to warn you that it is a purely QA stuff, don't beat me:o). We will now try to avoid the validation on purpose:
Open the Dimension property dialog again (see the 1st description). Go to "width" field, place the caret to the end of
the value (for example: "width: 0|" where '|' stands for a caret). Move a mouse cursor over the button OK. Press "a" and
click the left mouse button right after you pressed "a". You have now entered value "0a" and you managed to click the OK
button before the validation was made. A dialog "Error: Invalid value entered" appears. Click OK in this dialog. The
incorrect value now resides in the dialog, button OK remains enabled, you can confirm the incorrect value.
I would suggest following:
- remove the error dialog as there is currently better validation (if it is possible)
- then force the validation whenever the change event is fired on the field (onchange?, onkeypress?)
- add validation to the OK button click event. If you click the OK button and the value is incorrect, the OK button will
be disabled, property dialog will remain opened and no error dialog appears - as if user clicked already disabled button
(it is cheating, I know...)
moving opened issues from TM <= 6.1 to TM=Dev