@@JavaCodeJunkie great series man, hats off 👏 Was asking myself if you are going to feed us more JavaFX videos? Like FXML, animations, images, treeview etc. Then again, thanks for your tutorials!
@Olan Kendrick Canobas - I do not see code in any of your comments. If your code is long, you can send it to my email address: admin at javacodejunkie dot com.
i am getting these two errors : Error: Unable to initialize main class application.Medd Caused by: java.lang.NoClassDefFoundError: javafx/scene/media/MediaView
I did exactly what you did but when I compile and run, i get this error: JavaFX runtime components are missing, and are required to run this application How should I fix this? Thanks
@Arjun Sundaram - Check the VM Arguments for your Run Configuration. They should be similar to the following: --module-path ${PATH_TO_JAVAFX} --add-modules javafx.controls,javafx.fxml,javafx.graphics,javafx.media (substitute the path to your JavaFX library files. ie. the lib folder) Cheers!
@Raviel - Thank you for the question! Most of my videos at this point are targeted to JavaFX beginners. I do not think that it is appropriate to introduce additional software at a point where a viewer may not yet understand the underlying concepts of creating a user interface. I do plan to cover Scene Builder later in the series.
@Olan Kendrick Canobas - Perhaps I can help you if you give me more details on exactly what you are trying to achieve. Are you trying to embed a JavaFX MediaPlayer in a web page??? If you can explain in more detail along with some code that you have tried, I may be able to point you in the right direction.
@Olan Kendrick Canobas - Short answer is there is no way to embed a JavaFX Media Player in a web page. But you can display an embedded video in a JavaFX WebView as I have already shown you.
hi sir. i hope u noticed this video. i followed every single step but it gives me this error java.lang.IllegalStateException: This operation is permitted on the event thread only; currentThread = main
@Amirul Mukminin - Thank you for the question. Can you please check to ensure that the class Launcher.java extends Application. Also, FYI, the entire project code is available for download from GitHub. github.com/JavaCodeJunkie/javafx Hope this helps, Cheers!
Hope you enjoy this video about the JavaFX MediaPlayer!
Additional, I was using a Java 1.8 version and it didn't support lambda. jdk1.8.0_202 did support it. What "main" are you running?
Hello @java code Junkie, I was wondering if you did this same video but using FXML and Scene builder?
@Blindobi - Are you requesting that I make this using FXML and Scene Builder?
@@JavaCodeJunkie great series man, hats off 👏
Was asking myself if you are going to feed us more JavaFX videos? Like FXML, animations, images, treeview etc. Then again, thanks for your tutorials!
@iM- Fr0sty - Thank you for the kind words! 🙏 The plan is to cover all of those things that you mentioned, one video at a time! 😃
thank you very much bro!! more powers to your channel
Welcome 👍 Happy to help!
@@JavaCodeJunkie have you seen my code bro?
@@olankendrickcanobas5184 - Where would I see your code?
@@JavaCodeJunkie here bro. i just comment it in here.
@Olan Kendrick Canobas - I do not see code in any of your comments. If your code is long, you can send it to my email address: admin at javacodejunkie dot com.
Is there another tutorial for launcher? Should the extend Application? I notice you run "launcher"
i am getting these two errors : Error: Unable to initialize main class application.Medd
Caused by: java.lang.NoClassDefFoundError: javafx/scene/media/MediaView
I did exactly what you did but when I compile and run, i get this error: JavaFX runtime components are missing, and are required to run this application
How should I fix this? Thanks
@Arjun Sundaram - Check the VM Arguments for your Run Configuration. They should be similar to the following:
--module-path ${PATH_TO_JAVAFX} --add-modules javafx.controls,javafx.fxml,javafx.graphics,javafx.media
(substitute the path to your JavaFX library files. ie. the lib folder)
Cheers!
Nice video. But Why are you not using Scenebuilder ?
@Raviel - Thank you for the question! Most of my videos at this point are targeted to JavaFX beginners. I do not think that it is appropriate to introduce additional software at a point where a viewer may not yet understand the underlying concepts of creating a user interface. I do plan to cover Scene Builder later in the series.
this tutorial is almost what i need bro.i just need the one that can embed network url can u help me bro? thank you very much!!
@Olan Kendrick Canobas - Perhaps I can help you if you give me more details on exactly what you are trying to achieve. Are you trying to embed a JavaFX MediaPlayer in a web page??? If you can explain in more detail along with some code that you have tried, I may be able to point you in the right direction.
hello bro I am trying to embed a JavaFX MediaPlayer in a web page is it possible?
@Olan Kendrick Canobas - Short answer is there is no way to embed a JavaFX Media Player in a web page. But you can display an embedded video in a JavaFX WebView as I have already shown you.
hi sir. i hope u noticed this video. i followed every single step but it gives me this error
java.lang.IllegalStateException: This operation is permitted on the event thread only; currentThread = main
@Amirul Mukminin - Thank you for the question. Can you please check to ensure that the class Launcher.java extends Application.
Also, FYI, the entire project code is available for download from GitHub.
github.com/JavaCodeJunkie/javafx
Hope this helps,
Cheers!
@@JavaCodeJunkie thank you sir. I resolved this problem but when i run it the video only has audio but no video, just white screen
@Amirul Mukminin - Have you downloaded the project code from GitHub and compared the code to what you have?
@@JavaCodeJunkie ahh i seee where i got it wrong. Thank you sir!
@@JavaCodeJunkie hello I cannot seem to find the code in git can you name the file? Thank you
huhu idk why my private hbox and everything is crossmarks
Hi davide
are you busy bro?
@Olan Kendrick Canobas - Always busy. There are always more things to do than there is time to do them. That's life, I guess! 😄