Two-piece frames made of a stile and an U-shaped part surrounding the panel