private void viewTabStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_viewTabStateChanged

       String agcoopLoan = "maininterface.ViewLoan";
       String agcoopMember = "maininterface.ViewMember";
       String agcoopCompany = "maininterface.ViewCompany";
       String agcoopSupplier = "maininterface.ViewSupplier";
       String agcoopNonMember = "maininterface.ViewNonMember";
       try
       {
            if(viewTab.getSelectedComponent().getClass().getName().equals(agcoopLoan))
            {
                vL.reset();
                this.searchDisable();
            }
            
            else if(viewTab.getSelectedComponent().getClass().getName().equals(agcoopCompany))
            {
                //vC.getList(1, searchQuery);
                this.searchEnable();
            }
        
            else if(viewTab.getSelectedComponent().getClass().getName().equals(agcoopMember))
            {
                //vM.getList(1, searchQuery);
                this.searchEnable();
            }
        
            else if(viewTab.getSelectedComponent().getClass().getName().equals(agcoopSupplier))
            {
                //vS.getList(1, searchQuery);
                this.searchEnable();
            }
            else if(viewTab.getSelectedComponent().getClass().getName().equals(agcoopNonMember))
            {
                //vNM.getList(1, searchQuery);
                this.searchEnable();
            }
            else
                this.searchDisable();
            
            
       }
       catch(Exception e)
       {
           
       }
        // TODO add your handling code here:
    }//GEN-LAST:event_viewTabStateChanged