Really basic Swing in Max, looking for an example

    Sep 26 2011 | 7:18 pm
    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! -cullam

    • Oct 14 2011 | 3:36 am
      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.
    • Oct 30 2011 | 12:20 am
      ops, i'm sorry i just read the title and didnt notice you were actually talking about interface :P