From Adobe FXG to Java Swing (Part 2)
By Geertjan-Oracle on Sep 17, 2011
Part 1 was the prototype. Here's the real thing, i.e., a more typical implementation of a file conversion feature in the context of NetBeans IDE. Instead of the dragging and dropping from the outside, you can now simply right-click the file in your project and then convert it to the type of your choosing. Below, you can see I haven't included all the supported language bindings yet (e.g., no GWT, though that's supported too), but the ones I am interested in are there already:
In the same directory as where the original file is found, you'll now also have a new file, i.e., the new file obtained by converting the original file. In the case of Java, that file can then immediately be dragged into Matisse:
Above, you see "Circle.java", which was created when I chose "Convert to Java" from the context-sensitive popup on the FXG file.
Can anyone out there send me some cool FXG files? A dull red circle gets a bit boring after a while. Received some nice ones from Gerrit and immediately converted them: