Added an ID to the label in example

The original code didn't work. Added IDs to the labels to let
measureText get the size of the labels being used. Bug # 19641