Geertjan's Blog

  • September 19, 2011

From Adobe FXG to Java Swing (Part 3)

Geertjan Wielenga
Product Manager

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.

Click here to get to the NetBeans FXG Converter Plugin Page.

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!

Join the discussion

Comments ( 1 )
  • Chika Thursday, November 10, 2011


    I am trying to copy this feature and add a menu action. I have a global option (so it always appears on the menu). Is there a way to make it context sensitive, so it only appears if a file of the type file.foo is selected?

Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.Captcha