Wednesday Jun 04, 2008

Swing to FX converter

Don't know what made me to think on this. But JavaFX seems to be the next hit of Sun Family. JavaFX is dealing with Rich Internet Application and Content based UI. Being a scripting language ,coding is considered to be easy but as a developer I personally think in Java Frame of Mind coding. This probably let me think on this. Is there any chances that we can converter all the existing Swing or UI application into JavaFX. Probably most of the Java UI application base is written in Swing and Applet, can we make a tool where we can convert existing application into FX application + those programmers who are not feeling very comfortable with JavaFX(like me :D) can also make stuff in JavaFX style.

I remember some 3-4 years back, there was a similar situation with AJAX. Being using JavaScript, developers are finding it difficult to write application in AJAX and then Google came with its toolkit called GWT which gives the developer flexibility to write code in Java and rest will be taken care by Google Toolkit. And now, I can say AJAX is one of the major hits. Making such converters always help in capturing market and developer find them self more attached to a programming language. Why only Swing/applet to JavaFX, it can be JS/HTML/CSS to JavaFX.

Talking of implementation, it's quite tough to write API based conversion means converting say Swing API to JavaFX API. One of my colleagues gave me a quite better idea to grab the output and then do the conversion. Means, run a Swing written application, pass the PID into our converter and then generate the JavaFX code. It is tough but not too much. At least in Java, we have supports of things like accessibility API's which can help us in doing this.

Please let us know your point of view.
About

Hi, I am Vaibhav Choudhary working in Sun. This blog is all about simple concept of Java and JavaFX.

Search

Archives
« July 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
  
       
Today