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.
[ BUILD # : 200512192030 ] [ JDK VERSION : 1.6 ] Hi, Today I changed from one of the c'tors of a MyCanvas class the parameter list. The MyCanvas was previously added as a Custom Component to the pallete and dragged onto the flow-editor. The new parameter is not picked up by the Visual Designer. Btw I added the new parameter thru the refactoring tool, and got a warning that it doesn't work for guarded blocks. Since I can't edit the guarded blocks either I had to open good old Notepad and edit it there. Iwan
You should be able to set the constructor parameters in Properties of the displayable. There is problem that refactored or changed component isn't updated in palette. I had to remove and re-add the refactored component from/to palette. Then the constructor parameters appered in Properties.
Unfortunately I have to say that this is a feature. Live-update can cause problems in some cases of where the source code of a component: 1) is broken then the component should temporarily disappear 2) constructor list of parameters is changed and the change is undo-ed then all property values of contructor parameters should have the same values as before ... Also the palette of not project sensitive, therefore it makes a problem when a component has its source code in in 2 projects at the same time. So technically it is not easy to implement in the current version of Designer. Settings this issue as an Enhancement. The new Designer version should be able to support it. But it is not strictly defined whether the update will be fully automatical or whether there will be an indicator of modified component source code.
moving to mobility component
Designer 1 has been removed. Therefore reassigning to Designer 2 module.