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.
When new JComboBox (and probably JList, too) is placed on a JPanel, NetBean's GUI designer automatically generates setModel method call with setting component's model to a dummy default model like "Item 1, Item 2, ...". This behavior can't be changed somehow. It's very inconvenient, if you are developing application, which reads all models for all comboboxes from DB in runtime, because you have to manually delete this unnecessary model's setting just after you have placed new JComboBox on the panel. And it's a blocker issue, if you have specialized JComboBox's subclass, which can't work with string array model, because it throws ClassCastException and prevents you from placing such component on the panel even. My enhancement request is to have an option to disable generation of this default component's model.
Maybe one global option whether to set the default values to components that are usually filled dynamically (based on a model - combobox, list, table), or rather appear empty (textfield).