I'm currently working on a signature solution for digital signatures. I received a signature tablet that came with an API. The API is closed and I can't change anything in it. The problem is now for me that I can't handle the reponses of the device. When doing a signature or drawing something, I receive an answer in form of a JPanel. Since I'm programming with JavaFX scenes I now don't know how to include the JPanel into my scene. I only learned to work with JavaFx, so I don't really know a lot about JPanels and stuff.
So.. I wonder if there is a way to add a Jpanel to a FlowPane. All I found about this topic were threads about the other way around.. When people tried to add javafx-Components to Jpanel. But not this way around.. so Maybe it's very obvious how to do it but I don't get it.
JPanel x = pad.startSiganture();
FlowPane flow = new FlowPane();
flow.getChildren.addAll(x);
Basically that's what I would dream of, what of course doesn't work. So.. Thanks for any reponses, I hope its possible.
YXCD
Yes this is possible: Add your JPanel to a SwingNode and then put it into your FlowPane: