Java fx

galeta estava estudando aqui o JFX eu troquei o nome do pacote da minha classe principal e tb renomeeis as “extensões com o mesmo” porem ao rodar a aplicação da esse erro…

java.lang.ClassCastException: class javafx.scene.layout.AnchorPane cannot be cast to class javafx.scene.layout.BorderPane (javafx.scene.layout.AnchorPane and javafx.scene.layout.BorderPane are in module javafx.graphics@18.0.1 of loader ‘app’)
at CadastroCompletoFX/br.Main.start(Main.java:14)
at javafx.graphics@18.0.1/com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$9(LauncherImpl.java:847)
at javafx.graphics@18.0.1/com.sun.javafx.application.PlatformImpl.lambda$runAndWait$12(PlatformImpl.java:484)
at javafx.graphics@18.0.1/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:457)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:391)
at javafx.graphics@18.0.1/com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:456)
at javafx.graphics@18.0.1/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)
at javafx.graphics@18.0.1/com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at javafx.graphics@18.0.1/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:184)
at java.base/java.lang.Thread.run(Thread.java:832)