@Override
    public void populateForm() {
        
        m = new MainMenu();
        super.form = this.m;
		//Buttons use a Factory to set the name and add an ActionListener
		 
        
		
        AbstractButtonFactory btnFactory = new ConcreteButtonFactory();
        MainMenuHandler mh = new MainMenuHandler(m);
        
		//Instantiate components of MainMenu. To set the values of some components like listOfAsset, use setValues in MainMenu class.
        m.setjPanel2(new javax.swing.JPanel());
        m.setjLabel5(new javax.swing.JLabel());
        m.setBtAdd(btnFactory.createButton("Add Asset",mh));
        m.setjSeparator1(new javax.swing.JSeparator());
        m.setjLabel1(new javax.swing.JLabel());
        m.setjPanel3(new javax.swing.JPanel());
        m.setLbName(new javax.swing.JLabel());
        m.setLbUserType(new javax.swing.JLabel());
        m.setLbID(new javax.swing.JLabel());
        m.setBtLogout(btnFactory.createButton("Logout",mh));
        m.setjLabel2(new javax.swing.JLabel());
        m.setjPanel1(new javax.swing.JPanel());
        m.setjLabel3(new javax.swing.JLabel());
        m.setBtEdit(btnFactory.createButton("Edit Asset",mh));
        m.setBtDelete(btnFactory.createButton("Delete Asset",mh));
        m.setBtView(btnFactory.createButton("View Asset",mh));
        m.setjScrollPane2(new javax.swing.JScrollPane());
        m.setListOfAsset(new javax.swing.JList());
        m.setBtRefresh(btnFactory.createButton("Refresh",mh));
    }