From Adobe FXG to Java Swing (Part 3)

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!

Comments:

Geertjan,

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?

Posted by Chika on November 10, 2011 at 02:07 AM PST #

Post a Comment:
  • HTML Syntax: NOT allowed
About

Geertjan Wielenga (@geertjanw) is a Principal Product Manager in the Oracle Developer Tools group living & working in Amsterdam. He is a Java technology enthusiast, evangelist, trainer, speaker, and writer. He blogs here daily.

The focus of this blog is mostly on NetBeans (a development tool primarily for Java programmers), with an occasional reference to NetBeans, and sometimes diverging to topics relating to NetBeans. And then there are days when NetBeans is mentioned, just for a change.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
12
13
14
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today