I am very stuck in knowing what to do to integrate my JFXPanel (which is an mp3 player) into an existing Swing app that - which is a JFrame with several different JPanels added to it. I am a complete noob to JavaFX and it is very different from swing.
I am able to get the code that is below to run and do what I want. It will play mp3 files from a directory that I have them contained in. This is code from a sample that someone wrote. My issue is that this code creates the the JFrame, has the main method and everything just in this code. I have a swing application that is already made that I just want to add a single JFXPanel to that has the functionality as below. There are many new methods in JavaFX that I am very confused with and don't know how to use or where to put in my Swing app. Such as invokeLater runLater and initAndShowGUI. I know this is probably an annoying question and hard to answer from such a noob. I have a project that is due tomorrow night at midnight and I really want to get this implemented as part of the app. We haven't learned JavaFX in class and I didn't know it was going to me this tricky for me.
Thank you so much for anyone who takes the painful time to try to answer me.