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
  • 2,005
  • 11
  • 36
  • 40
  • 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,904
  • 14
  • 72
  • 127
abalogh
  • 8,239
  • 2
  • 34
  • 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,409
  • 13
  • 12