• Post Reply Bookmark Topic Watch Topic
  • New Topic

Add JFXPanel in JApplet Java SE

 
Dmitriy Logov
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can I add JFXPanel to my applet?
I read the instructions and it did not help me:
http://docs.oracle.com/javafx/2.0/swing/jfxpub-swing.htm

I added JFXPanel and the program compiles just fine
import javafx.embed.swing.JFXPanel;
....
JFXPanel fxPanel = new JFXPanel();

With parameters: javac -classpath "C:\Program Files\Oracle\JavaFX 2.0 SDK\rt\lib\jfxrt.jar" C:\test.java

But when I try to run the program, I get an error: java.lang.NoClassDefFoundError: javafx/embed/swing/JFXPanel

I asked a question on stackoverflow site. But no one could help me
http://stackoverflow.com/questions/9398266/japplet-java-se-6-javafx-2-0-webview
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!