1 Reply Latest reply: Nov 28, 2012 10:02 AM by MiPa RSS

    AWT canvas integration in JFX scene

    976729
      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
          MiPa
          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.