The ultimate trick to painting IKEA furniture's tricky surfaces ... and you want them to be closed shelves, your only option for a door from IKEA is the single version of the OXBERG glass door.
(Excluding doors and moldings for clarity ... panel seam with duct tape and painted the bookcase backs ahead of time. When painting Ikea furniture that is laminated, such as these bookcases ...