class EdgeTypePanel extends javax.swing.JPanel {

    private EdgeTypeFilter filter;
    private javax.swing.JComboBox comboBox;

    /**
     * Creates new form EdgeTypePanel
     */
    public EdgeTypePanel() {
        initComponents();

        comboBox.addItemListener(new ItemListener() {

            @Override
            public void itemStateChanged(ItemEvent e) {
                if (e.getStateChange() == ItemEvent.SELECTED) {
                    filter.setEdgeTypeLabel(e.getItem());
                }
            }
        });
    }

    public void setup(final EdgeTypeBuilder.EdgeTypeFilter filter) {
        this.filter = filter;

        DefaultComboBoxModel comboBoxModel = new DefaultComboBoxModel();
        for (Object o : filter.getEdgeTypeLabels()) {
            comboBoxModel.addElement(o);
        }
        comboBox.setModel(comboBoxModel);

        if (comboBoxModel.getSize() > 0) {
            filter.setEdgeTypeLabel(comboBoxModel.getSelectedItem());
        }
    }

    private void initComponents() {<FILL_FUNCTION_BODY>}
}

        comboBox = new javax.swing.JComboBox();

        setLayout(new java.awt.BorderLayout());

        comboBox.setModel(new DefaultComboBoxModel());
        add(comboBox, java.awt.BorderLayout.CENTER);
    
<methods>public void <init>() ,public void <init>(java.awt.LayoutManager) ,public void <init>(boolean) ,public void <init>(java.awt.LayoutManager, boolean) ,public javax.accessibility.AccessibleContext getAccessibleContext() ,public javax.swing.plaf.PanelUI getUI() ,public java.lang.String getUIClassID() ,public void setUI(javax.swing.plaf.PanelUI) ,public void updateUI() <variables>private static final java.lang.String uiClassID