This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Product Version: NetBeans IDE Dev (Build 200807100006) Java: 1.6.0_10-rc; Java HotSpot(TM) Client VM 11.0-b13 System: Windows XP version 5.1 running on x86; Cp1251; ru_RU (nb) - open Date Filed custom property editor - enter invalid date OK button enabled It should be disabled until valid date entered
Unfortunately it is not possible because of architecture of the Custom Property Editors. We cant control OK/RESET TO DEFAULT/CANCEL UI components.
could you please explain what exactly you cant do. You can disable OK button.
There is not public API to disable OK button, author of the Custom Component Property is only in charge of the JPanel inside of the Custom Property Editor window. There is no public object references to the OK/RESET TO DEFAULT/CANCEL UI components so that is why it can be done.
but at least GUI Builder and SOA developers can do it, why you can't?
Ok, could you point me to the particular Custom Component Property Editor? Maybe there is some API which I'm not aware of.
bounds property editor for JFrame if you type letters in one of 4 fields OK button become disabled
Yes you are right, it looks like there is a possibility to control OK button through ExPropertyEditor.PROP_VALUE_VALID and change property listeners. I'll try to somehow combine this API with our current Property Editor Mobility API. Not sure how difficult it's going to be to implement it thats why I'm not sure if we'll have this feature in 6.5. Thanks for pointing this out.