I am getting an annoyinig compilation error when I run a JAVAFx MediaPlayer application in Visual STudio Code IDE

The application I am trying to create is a mediaPlayer. At first, I had no issues and my javaFX application could run gracefully. But as I made some changes, I got this error:

I got the same error when I removed All of the additional features I added too
Here is my code:


I don’t know why I am getting this error now. I installed everything correctly.

I’ve installed the SceneBuilder extension on vsc for java.

Hello, noblegas.

Where do you import this BorderPane object?

Thats a good question. I don’t know, I am following someone else’s tutorial. I assumed that it was imported from import javafx.application.Application; because I would think that VSC would have showed that BorderPane undefined if not imported