Can anyone tell me why javaFX better than applet?

I just have read the example of javaFX.And I have a question.
From the example.I don't see any good in javaFX.below is my opinion:
1.It seems like that the javaFX application is deploy as a applet or jnlp.This is what swing can also do;
2.javaFX's expression is sucks.Why don't use xml to declare the UI? I think as the application becomes larger,it is so difficult to maintain the project.But if I use swing or applet,I think it is better for me to maintain the project using oop.
3.I think what javaFX can do is also can be done by swing,why javaFX?
any apply is appreciated,thanks very much

Hi
1. JavaFx it is build over the Java2D and Swing. In fact it can not run without this 2 component ( at least now ). So what you can do in JavaFX you can also do on Swing and Java2D
2. I don't think xml syntax it is good to describe stuff like this . XML was design to store data not actions. When you design user interface you must declare what components or shape do you want to draw on the screen but also you must write the interaction between them . I don't think you can do this easy and nice in XML. Look at the Flex approach . They used for declaration of the GUI an XML and for comportment ActionScript. I don't like this because i must learn and study two "languages" to make a GUI.I've preferred one language.As you said it is better to use OOP . How can you do OOP in XML in a nice way ?
3. Because in JavaFX we do can more things easily . Look at this example : [http://silveiraneto.net/2008/07/31/javafx-creating-a-sphere-with-shadow/] . I don't think you can achieve the same results with Swing and Java2D with the same code line number.
Another difference between JavaFX and Swing is the syntax. The Sun want to create a language that can be used by designer and by programmer . The Swing can not be used by a designer . JavaFX used a more natural syntax. For example if you want to insert a shape in an array you must type in JavaFX :
insert Circle{radius:10} into array_variable . As you see it is more natural this syntax than Java equivalent.
Another difference it is how easy you can do things in JavaFX correctly . When you program in Java2D and Swing you must know very good the architecture of this components if you want to work correctly . You must know what is the Event Dispatch Thread and how you can used it . You must how you can work with multiple threads in Java2D and Swing . In JavaFX you don't need this . All of the tricks it is done by JavaFX ( not in this release . I hope the final release it will contains all these tricks) .
Best regards
Andrei Dore

Similar Messages

Maybe you are looking for

  • Can't ping other server and more.

    This is a weird one. I have a few problems going on. I have 2 netware 6.5 servers. My BM3.9 sp1 server is on Netware 6.5sp7 and my other server is Groupwise 7.03 on Netware 6.5sp6. My Groupwise server is strictly used for Groupwise. My BM3.9 server r

  • Help with Bitand function.

    Hello, Can anyone please explain me whats wrong with following query? select decode(to_number(bitand(to_number('2251799813685250','99999999999999999999'), to_number('17592186044416','99999999999999999999') ) ), to_number('17592186044416','99999999999

  • Bean problem: No interface classes found

    Hi ; I try to create a adapter . according to tutorial "How To Create Modules for the J2EE Adapter Engine" https://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/f013e82c-e56e-2910-c3ae-c602a67b918e&overridelayout=true Although I did all steps in it

  • Using third party headset with Retina Macbook Pro (microphone issue)

    Good day, everyone! I have very strange issue with my Retina Macbook Pro (Late 2013) OS X 10.9.3 When I plug in my Steel Series Headset, its microphone not recognised by system and only "Internal microphone" available in Settings - Sound - Input. Hea

  • SQL Practice

    Hello everyone. I have been using SQL for almost a year now and am currently studying for my 70-461 exam. I have the Microsoft training kit book, have read, highlighted, and done most of the exercises, however the best way for me to learn is just con