In this paper we are interested in the estimation of a density − defined on a compact interval ofℝ− from n independent andidentically distributed observations. In order to avoid boundary effect, beta kernelestimators are used and we propose a procedure (inspired by Lepski’s method) in order toselect the bandwidth. Our procedure is proved to be adaptive in an asymptotically minimaxframework. Our estimator is compared with both the cross-validation algorithm and theoracle estimator using simulated data.