I designed a form using the UI designer and the form contains many JComboBoxes which should allow the user to select items in different Enums.
To allow this I want to set a custom ComboBoxModel on the JComboBoxes. I checked the JComboBox as "Custom Create" and I initialize the JComboBox using:
orientation = new JComboBox(new EnumComboBoxModel]]>(PageOrientation.class));
I expected this to work, but there is nothing showing when running the form. I decompiled the form and found out that in the $$$setup$$$ method it is overwritten:
JComboBox jcombobox2 = orientation;
jcombobox2.setModel(defaultcomboboxmodel2 = new DefaultComboBoxModel());
Is there a way to fix this.