1

I know that we can use swing modules inside a JavaFX applicaion but can we do the reverse. I want to use JAVAFX effects and animation and also stylesheets inside my Java Swing code. Are there any samples avaialable?

JavaBits
  • 1,959
  • 11
  • 34
  • 38
  • For a quick code example have a look at this question: http://stackoverflow.com/questions/8374365/integrating-javafx-2-0-webview-into-a-swing-java-se-6-application/8413289#8413289 – scravy Dec 07 '11 at 10:39

2 Answers2

2

You can find a brief tutorial here.

scravy
  • 11,355
  • 14
  • 67
  • 119
abalogh
  • 8,159
  • 1
  • 32
  • 49
0

If you use JavaFX 2.0 Beta, it is cleaner. A good example is SwingJavaFXChart, available in the <SDK>/apps directory.

JimClarke
  • 1,391
  • 12
  • 12