Burglar flirts with judge