So, I’ve been looking through the forum archives, and I’ve seen a lot of reference to the fact that it’s easy to use Swing in Max, as long as you’re ok with the swing app being in a different window. As it happens, that’s exactly what I want. I’m actually trying to use JavaFX 2.0, but that’s usually run as a standalone app. However, it turns out that it can be embedded in a jframe, if I can get a swing app communicating with Max.
So, might there be some example code around that I could see, showing the instantiation of a jFrame from Max? Once I’ve got the Jframe, I believe I know how to get JavaFX drawing to it. Thanks guys!
You can create JFrame in any class that Max can get to. For instance, we create a class that extends MaxObject and put it on a patch with mxj. Then whenever a button is hit, it sends a message to the object which creates the frame. There is no special code.
ops, i’m sorry i just read the title and didnt notice you were actually talking about interface :P
C74 RSS Feed | © Copyright Cycling '74