public AddUserAccountBusinessJPanel(JPanel UserProcessContainer,UserAccountDirectory userAccountDirectory,BusinessAdminUserAccountsJPanel baujp,Business business) {
        initComponents();
        this.UserProcessContainer = UserProcessContainer;
        this.userAccountDirectory = userAccountDirectory;
        this.baujp = baujp;
        this.business = business;
        enterpriseDirectory = business.getEnterpriseDirectory();
        typejComboBox.removeAllItems();
        typejComboBox.addItem("Exchange Enterprise");
        typejComboBox.addItem("Insurance Enterprise");
        exchangejComboBox.removeAllItems();
        for(Enterprise enterprise:enterpriseDirectory.getEnterpriseDirectory())
        {
            if(enterprise.getEnterpriseName().equals("Exchange"))
            {
                exchangejComboBox.addItem(enterprise);
            }
        }
        
        typejComboBox.addItemListener(new ItemListener() {
            @Override
            public void itemStateChanged(ItemEvent e) {
                try {
                    String selectedType = (String)typejComboBox.getSelectedItem();
                    if (e.getStateChange() == ItemEvent.SELECTED) {
                        if(selectedType.equals("Exchange Enterprise"))
                        {
                        insuranceEnterprisejComboBox.removeAllItems();
                        
                        
                        }
                        else if(selectedType.equals("Insurance Enterprise"))
                                {
                                    exchangejComboBox.removeAllItems();
                                    insuranceEnterprisejComboBox.removeAllItems();
                                    for(Enterprise e1:enterpriseDirectory.getEnterpriseDirectory())
                                    {
                                        if(e1.getEnterpriseName().equals("Insurance"))
                                        {
                                            insuranceEnterprisejComboBox.addItem(e1);
                                        }
                                    }
                                    
                                    
                                }
                    }
                    //throw new UnsupportedOperationException("Not supported yet.");
                } catch (Exception ex) {
                    ex.printStackTrace();
                }
            }
        } );
    }