Make scrollpane and caption panel initialization overrideable [fix-30488]