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
-
My MacBook Pro data is backed up in iCloud (I pay monthly for 20 GB) but apparently my photos are not backed up and it won't allow me to select Photos from the list for back up. Can anyone tell me why?
The current iCloud isn't meant for backing up Macs. It's only for mobile devices.
The beta iCloud Photo Library in iOS 8 will store photos in the iCloud for access from other mobile devices for from iCloud.com. The new Photos app under development for OS X on Macs will not be released until sometime this spring. It will have the capability of storing and accessing photos from iCloud.
iCloud Drive is for sharing documents between multiple devices signed in to the same iCloud ID. When the new Photos application is released the space purchased for iCloud will be available for the photo storage system. -
can anyone tell me why everytime i sunk ma phone it takes all me ringtones that i have bought off ma phone??
Actually you mean sync. lol And probably "my" iPhone.
It is probably removing the ringtones because they were added under a different Apple ID than the one you are syncing with. -
I purchased a bundle with Wacom Intous5 that included Adobe Photoshop CS6 Suite 2 years ago and my Serial number is now invalid, Can anyone tell me why?
John
Many Thanks; I did finally manage to run into it on the website, but this is link is much better.
Happy Thanksgiving.
John Rupley -
When I switch libraries I "lose" the majority of the material in my main library (or at least I can't see it) and can only restore it by repairing the database. Can anyone tell me why this is happening and how I can resolve the problem? Thanks
I seem to have found a way around it. Rather than switching libraries by going into files/switch libraries I used Aperture Preferences to change them. I've done it a couple of times and it appears to work OK.
That is an interesting finding. It suggests, that your "Preferences" file "com.apple.Aperture.plist" may have been corrupted and you fixed it this way. Can you now switch between libraries the usual way? If not, I'd try to remove the "preferences" file from the user library to the Desktop and relaunch Aperture.
The Aperture 3: Troubleshooting Basics:http://support.apple.com/kb/HT3805
describe how to remove the user preferences. -
Can anyone tell me why my photo stream is not loading all 1,000 pictures onto my new iphone 5c? i backed up my old phone onto the mac and plugged in my new phone then hit backup. it only gave me 100 pictures????? why?
thanks for any help!Because photo stream photos only remain in iCloud for 30 days, allowing enough time for your devices to download them. Only shared streams keep photos in iCloud indefinitely. Your other photos are probably older than 30 days and are no longer in iCloud.
Also, photo stream photos aren't included in your backup, only camera roll photos are. If you want to include photo stream photos that are not already in your camera roll in your backup, you have to save them to the camera roll before backing up. -
Can anyone tell me why this picture changes color when I try to download/upload it? It is the exact same picture I have taken from the same location. The image on the left is via preview and the image on the right is what is shows like when I try to download it. I have emailed it to myself and it shows fine on the computer and in CS4, but when I look at the download via my phone or on another computer it shows the wonky color on the right. I have checked the color space shows RGB/8 bit. Any ideas why or how to fix it? It isn't with any one specific session.... and I've tried it on both my desktop and my laptop- saved image to an external hard drive and to drop box. I've tried sending the image to canvas on demand, my email, mpxipro, POST editing- all the same result. Please HELP!! What am I doing wrong?
Most of the time you see something like that. The image in question has a color profile other then sRGB. Some image viewers/displayers are color managed and others are not. So the image do not look the same in all of the applications you use. So colors seem to change.
Try converting it to sRGB color and see if then looks the same all around. Also I think PC and Mac displays are set to different gamma something like 1.8 and 2.2
Though I'm colorblind I even see color variations. -
Can anyone tell me why my collusion .27 add-on stopped working when I updated to firefox 20 (and now 21?). I've tried removing and reinstalling to no avail. I even deleted my profile files and had firefox repopulate those automatically to no avail. And it's not the only add-on to have stopped working.
see here
*https://support.mozilla.org/en-US/kb/re-enable-add-ons-disabled-when-updating
Addons are enabled or disabled? -
I want to reset my privacy questions for my apple i.d. But when i request to do so it sends it to a email address that isnt on my file can anyone tell me why its not working?
1) Apple ID: All about Apple ID security questions
Torrifromny wrote:
I want to reset my privacy questions for my apple i.d. But when i request to do so it sends it to a email address that isnt on my file ?
2) See Here. Apple ID: Contacting Apple for help with Apple ID account security
Ask to speak with the Account Security Team...
3) Or Email Here > Apple Support iTunes Store Contact -
Can anyone tell me why I can not connect my Blackberry or my iPhone to my new Macbook pro? I had no problem with my old Macbook.
What type of headphones were you using? I have a set of Microssft headsets, with the built-in mic and connected via USB, and have no problems.
Clinton -
I have a brand new macbook pro 15" with latest Lion. Can anyone tell me why, when I open word or preview etc that multiple files open?For eg if I open a word doc, the last 1-3 docs that I have worked previously on all open. Can anyone tell me why?
You have a choice as to whether or not applications in Lion like Word or Preview (or even Safari) save and re-open previous documents or windows... just hold down the option key while quitting a program and when you re-open it you won't get the previous documents or windows when you re-open the application. You can see this by selecting the open program in the menu bar and when holding down the option key the quit function will change to quit and discard open windows. This feature in Lion is referred to as "Resume" and is great if you want to restart an app and return to what you're doing (for example in Safari re-opening existing windows and tabs from your previous session). You still have the option to close individual windows within an app before quitting and they will not re-open when the app is launched again.
This Resume function is not related to saving your work (a word or text document for example). This is handled by Lion's "Auto-Save" and "Versions" functions. See http://www.apple.com/ca/macosx/whats-new/auto-save.html
Hopefully this is the complete answer you're looking for. -
Can anyone tell me why I can no longer download CAD from iTunes onto my Mac pro ?
Can anyone tell me why I can no longer download CAD from iTunes onto my MacBook Pro ?
Sorry, but "CAD" meaning what?
-
I can no longer see my ipad on find my iphone...Can anyone tell me why?
Try turning Find My iPad off in Settings>iCloud, then turn it back On.
-
Can anyone tell me why I am unable to download a template word doc from webmail onto my mac without it opening in text format? I just need the original document format.
Where to begin... and why would you ask here? (workstation owners)
Places I can think to try, after google of course....
Forum devoted to something like Word / Mactopia or Pages.... whether you are using Office 2011, and no idea what browser or webmail (IMAP, Gmail, other)
And then there really are notebook with subforum for MacBook Pro
Apple Site Map
Apple Support Mail
Apple Support -
Hello. The Youtube videos I placed in a site made in Muse, don't have sound and don't auto play in my Android phone. Can anyone tell me why? The same video has no problems when I watch it at the youtube site on my phone. It has sound on an iphone, but doesn't auto play either. Thanks!
Hi Mariana,
Please make sure you have the autoplay checkbox selected from the fly-out options:
Regards,
Akshay
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
-
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