1 Reply Latest reply on Nov 28, 2012 4:02 PM by MiPa

    AWT canvas integration in JFX scene

      I have working playN based game which use AWT Canvas to render
      and want run it on panel in javaFX application.

      How I can add AWT canvas to JavaFX panel?
        • 1. Re: AWT canvas integration in JFX scene
          You have several options here. The best would probably be to re-write your game using JavaFX Canvas which is very similar to the AWT canvas. A more direct approach would be to use the AWT canvas as is and let it render into an image which you can then render into a JavaFX Canvas. This sounds strange at first but the performance is not that bad.