MATLAB is going to stop supporting javacomponent functionality in future releases.
Currently this is used by attachScrollTo function that allows scrollable data panel. According to mathworks, the scrollable property has been introduced in R2018b. To keep the version support span wide, we can accommodate both solutions.