I’m not sure why you need to give specific position and size for the ScrolledPanel - that’s generally not a good idea, as it’s going to break on machines with different resolutions/sizes.
That said, your code as it stands is not runnable. This timeless Wiki entry from Robin sums it up: