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.
Hi, if I have some components that is Generics enabled, I can't use it's easely in NB form editor. I sugest a easy way to define the field declaration, where is possible include de Generics statement, maybe as Custom Creation option. For now, I need to cast my component for another field in my code, after initComponents call. Regards
There is already a "Type Parameters" property in the "Code" properties for each component. Was done for 6.0 already time ago. It makes the variable declared with the generics. You can set it e.g. to <com.me.MyType> (incl the <> brackets). Now, I've just fixed the code generation to also generate the types for the constructor call, so the custom creation code will not be needed.
*** Issue 63356 has been marked as a duplicate of this issue. ***