private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
        String criterio = "";
        boolean isCompra = false;
        BigDecimal rangoMax = BigDecimal.ZERO;
        BigDecimal rangoMin = BigDecimal.ZERO;
        
        if(rbtCompra.isSelected())
        {
            criterio = "Tipo";
            isCompra = true;
        }
        
        else if(rbtVenta.isSelected())
            criterio = "Tipo";
        
        else if(rbtRangoMonto.isSelected())
        {
            criterio = "Monto";
            List<BigDecimal> rango = obtenerPanelRangos();
            
            if (rango == null)
                JOptionPane.showMessageDialog(null, "Favor indicar los rangos de búsqueda.");
            else
            {
                rangoMin = rango.get(0);
                rangoMax = rango.get(1);
                System.out.println("MINIMO: " + rangoMin + " MAXIMO " + rangoMax);
            }
        }
        
        else if(rbtRangoTipoCambio.isSelected())
        {
            criterio = "TipoCambio";
            List<BigDecimal> rango = obtenerPanelRangos();
            
            if (rango == null)
                JOptionPane.showMessageDialog(null, "Favor indicar los rangos de búsqueda.");
            else
            {
                rangoMin = rango.get(0);
                rangoMax = rango.get(1);
                System.out.println("MINIMO: " + rangoMin + " MAXIMO " + rangoMax);
            }
        }
        
        else
        {
            criterio = "Vacio";
            JOptionPane.showMessageDialog(null, "Favor seleccionar una opción.");
        }
        
        if(!criterio.equals("Vacio"))
        {
            DAOFactory sqlserverFactory = DAOFactory.getDAOFactory(DAOFactory.SQLSERVER);
            ParticipanteDAO participanteDAO = sqlserverFactory.getParticipanteDAO();
            int result = participanteDAO.buscarOfertas(criterio, rangoMin, rangoMax, isCompra, tablaOfertas);
            
            if(result < 0)
            JOptionPane.showMessageDialog(null, "Ha ocurrido un error.");
        }
    }//GEN-LAST:event_jButton1ActionPerformed