SFML community forums

Bindings - other languages => Java => Topic started by: KARO1993 on November 08, 2014, 08:06:00 pm

Title: Embed JSFML into SWING
Post by: KARO1993 on November 08, 2014, 08:06:00 pm
Hi guys, who know how to embed JSFML "window" into SWING JPanel? If I create class who exdends RenderWindow, then I can't add it into JPanel, because JPanel allow to add only SWING components. Please help how do that?
Title: Re: Embed JSFML into SWING
Post by: pdinklag on November 12, 2014, 09:23:00 am
There is a "render-canvas" branch on Github, which worked fine for Windows and Linux the last time I checked. However, there is no release package for it at the moment, so you'd have to build it yourself, that includes the binaries.

Since Swing WILL be abolished and replaced by Java FX in the future, that practically killed my motivation to continue putting any effort into the branch. Therefore, I am not sure if I will ever round this branch up so it goes into the main version of JSFML. There is also zero Mac OS X support for it at this point.

EDIT:
See this thread for some more info, somebody else also tried it before: http://en.sfml-dev.org/forums/index.php?topic=14538.0