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.

Bug 77086

Summary: Support for defining generics for Bean components in an easy way
Product: guibuilder Reporter: Michel Graciano <hmichel>
Component: CodeAssignee: issues@guibuilder <issues>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P3    
Version: 5.x   
Hardware: PC   
OS: Linux   
Issue Type: ENHANCEMENT Exception Reporter:

Description Michel Graciano 2006-05-30 14:42:28 UTC
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
Comment 1 Tomas Pavek 2007-07-02 13:37:57 UTC
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.
Comment 2 Tomas Pavek 2007-08-08 10:30:04 UTC
*** Issue 63356 has been marked as a duplicate of this issue. ***