• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Add JFXPanel in JApplet Java SE

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
I once met a man from Nantucket. He had a tiny ad
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic