Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Embed JSFML into SWING  (Read 6110 times)

0 Members and 1 Guest are viewing this topic.

KARO1993

  • Newbie
  • *
  • Posts: 1
    • View Profile
    • Email
Embed JSFML into SWING
« 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?

pdinklag

  • Sr. Member
  • ****
  • Posts: 330
  • JSFML Developer
    • View Profile
    • JSFML Website
Re: Embed JSFML into SWING
« Reply #1 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
« Last Edit: November 12, 2014, 01:50:38 pm by pdinklag »
JSFML - The Java binding to SFML.

 

anything