From Adobe FXG to Java Swing (Part 2)

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:



Comments:

Wow!
Is there a way to download this as a netbeans module?

Posted by Hendrik on September 18, 2011 at 04:09 AM PDT #

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
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today