Implemented CaptionPanel.