7. JavaFX Mobile Advantages Write Once, Run Anywhere Desktop, Mobile, Set-top Boxes (future) Large Embedded Base Built on top of Java ME platform Wide Range of Devices Runs on Feature Phones, Smart Phones Currently available for Windows Mobile devices
8. JavaFX Mobile Constraints Screen Size Your application has to be capable of running within a resolution of 320 by 240 or possibly even smaller. Common Profile Mobile applications are limited to the JavaFX APIs that are part of the Common Profile, which is a subset of the Desktop Profile. Performance Mobile applications run on much less powerful devices, so they have less CPU and memory resources available to work with.
12. Calling a REST Service REST URL: http://api.meetup.com/rsvps.json/event_id={eventId}&rsvp=yes&key={apiKey} Output: { "results": [ {"zip":"94044","lon":"-122.48999786376953","photo_url":"http:photos1.meetupstatic.comphotosmember14bamember_5333306.jpeg","response":"no","name":"Andres Almiray","comment":"Can't make it :-("} ]} 12
13. JUG Spinner - JSONHandler in 3 Steps public class Member { public varplace:Integer; public varphotoUrl:String; public varname:String; public varcomment:String; } varmemberParser:JSONHandler= JSONHandler { rootClass: "org.jfxtras.jugspinner.data.MemberSearch “ onDone: function(obj, isSequence): Void { members = (obj as MemberSearch).results; }} req = HttpRequest { location: rsvpQuery onInput: function(is: java.io.InputStream) { memberParser.parse(is); }} 13 1 POJO 2 JSONHandler 3 HttpRequest
15. Silicon Valley JavaFX Users Group Free membership Rockstar presenters First Event: Google Campus (Seville Room) Speaker: Richard Bair Member of the JavaFX Team JavaOne 2009 Rockstar Speaker December 9th (Tuesday) 15 http://svjugfx.org/
18. 18 Why another desktop widget framework? Open-Source But widgets can be licensed commercially Write Widgets in Java & JavaFX HTML, CSS, and Javascript are great for websites, but not app development Cross-Platform Support Windows XP/Vista, Linux, and Mac OS X. One-Click Installation Plus automatic updates of the dock and widgets. Robust Security Secure sandbox + signed widgets
19. Built-in Widgets Clock Skinnable via CSS Slide Show Configurable Directory, Speed, & Filter Web Feed Supports Atom and all RSS flavors 19
20. Dock Features Drag to desktop Resize widgets (option for fixed aspect ratio) Per widget transparency Widget settings saved on restart Toggle dock always-on-top Launch on start-up Multi-monitor support Dock and widgets can be styled via CSS 20
24. Load the Media var source = "http://projavafx.com/movies/ elephants-dream-640x352.flv"; var player = bind SimpleMoviePlayer { media: Media { source: source } width: bind widget.width height: bind widget.height } 24