From Adobe FXG to Java Swing (Part 3)
By Geertjan on Sep 18, 2011
The NetBeans FXG Converter is now available, for the simple reason that comments and critiques are needed. It would be great, especially of course if you're a designer of some kind, or use Illustrator or other Adobe tools that output FXG, if you'd simply try out the plugin and leave comments on the plugin's page, of any kind.
Note: Please use NetBeans IDE 7.0.1 with this plugin and not any other version of NetBeans IDE. That way it will be clear that the issues found relate to the plugin and not to the fact that a different version of NetBeans IDE has been used.
Then download the plugin, install it into NetBeans IDE 7.0.1, and then you should see the following "Convert" menu items when you right-click an FXG file:
Then you'll be able to generate the required file type, as indicated by the menu items. For Java files, note that no package statement will be generated, because the menu item could be invoked outside of a package structure, e.g., in the Favorites window, hence no assumptions can be made about the package structure and so you'll need to add that statement at the top of the class yourself.
Right now, only a JComponent can be generated, but Gerrit is looking into generating a JPanel and a TopComponent instead, which could be cool as well.
Have fun with it!