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.
Current variable declaration code inside Code Customizer, does not allow for editing, so new Java 7 Swing features, involving the use of generics for JList and JComboBox, cannot be properly set-up. The following can be declared in the initialization code, as custom creation: jComboBoxSelections = new javax.swing.JComboBox<>(); but inside the variable declaration code, we have: private javax.swing.JComboBox jComboBoxSelections; which is non editable. This leads to some sort of inconsistent code, where the component gets initialized by its own generics definition, while its own variable does not. I suggest to make possible the editing of such a variables section, same as the custom creation.
In fact, it is possible already to specify type parameters for a variable declared for a component/bean. It is just not possible to do it using Code Customizer. Select the component/bean. Switch to Code section in Properties window. Modify 'Type Parameters' property.
*** Bug 230460 has been marked as a duplicate of this bug. ***