aspose file tools*
The moose likes JavaFX and the fly likes How to add JFXPanel to already existing Swing app.  Please Help. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JavaFX
Bookmark "How to add JFXPanel to already existing Swing app.  Please Help." Watch "How to add JFXPanel to already existing Swing app.  Please Help." New topic
Author

How to add JFXPanel to already existing Swing app. Please Help.

Marky Mort
Greenhorn

Joined: Nov 23, 2013
Posts: 1
Hello,

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.

Volodymyr Levytskyi
Ranch Hand

Joined: Mar 29, 2012
Posts: 505
    
    1

This tutorial explains that!


True person is moral, false is right!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: How to add JFXPanel to already existing Swing app. Please Help.