This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes JavaFX and the fly likes JavaFX for mobile? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » JavaFX
Bookmark "JavaFX for mobile?" Watch "JavaFX for mobile?" New topic
Author

JavaFX for mobile?

César Guzmán
Ranch Hand

Joined: Mar 08, 2009
Posts: 31
Hi Gail and Paul,
It's been said that JavaFX support multiplatform, and that JavaFX can use the full Java API, so, what happens when a JavaFX application that uses Java functions for desktop behavior it's tried to migrate to mobile devices? java desktop it's not the same for javaME.


SCJP 5, SCWCD 5
Gail Anderson
Author
Ranch Hand

Joined: Jul 07, 2009
Posts: 44
Hi César,

You are right. The JavaFX mobile environment is a subset of the desktop environment. (Anything in the common environment will run in all 3 environments: desktop, mobile, and tv.)

NetBeans helps a lot here. If you write an application and deploy it to the Standard Execution, Web Start, or Browser anything in common or desktop will work. If you then change its execution environment to Run in Mobile Emulator, you will see source errors in the editor window for all references that are not in common (such as Swing components).

In NetBeans, right-click the project name and select Properties. Under Categories select Run. You'll see the Execution Model choices.

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: JavaFX for mobile?