> I am not sure what the sections of code using "->" are?
Lambda Expressions
> StackPane doesn't take a MediaView in the constructor
Depends on the version of
Java you are using.
StackPane an Java 8 will take accept kind of node as a constructor argument.
> I am not sure what the difference is between this implementation and mine.
I guess study the differences to see - I can't explain it to you.
For the supplied example I just used minimal Swing code to get it working.
I don't understand most of the Swing code in your example because I write very little Swing code and have little practical experience with that toolkit.