A Rich Application Platform: Java FX

… Java FX Script > Overview > Getting Started • JavaFX Mobile • Summary and Resource 5 The “Ugly Java GUI” Stereotype• AWT/Swing Container/Component Hierarchy> A tree of rectangular (mostly grey) boxes> If all you do is compose Swing components together, the result is typically “the Ugly Java GUI”> Same problem exists with other tool kits, e.g., GTK, VB• UI Designers and Swing programmers are using different building blocks …
3 Agenda • Java FX Script > Overview > Getting Started • JavaFX Mobile • Summary and Resource
4 JavaFX: Design Questions • Why does it take a long time to write GUI programs? • How can we avoid the “Ugly Java GUI” stereotype? • Why do Flash programs look different than Java programs? • Why does it seem easier to write web-apps than Swing programs? • And how can I avoid having an enormous, writhing mass of listener patterns?
5 The “Ugly Java GUI” Stereotype • AWT/Swing Container/Component Hierarchy > A tree of rectangular (mostly grey) boxes > If all you do is compose Swing components together, the result is typically “the Ugly Java GUI” > Same problem exists with other tool kits, e.g., GTK, VB • UI Designers and Swing programmers are using different building blocks > UI Designers compose designs in tools like Photoshop and Illustrator > The building blocks they use have direct analogs in Java 2D, but not always directly in Swing
6 A Basic Java GUI: Not Very Pretty
7 Java 2D API • To match the designs of UI designers requires using Java 2D API • Java 2D API doesn’t have compositional behavior > Makes it too complex for many programmers to use efficiently • In addition to Swing Components, JavaFX includes SVG-like interfaces to Java 2D API as first-class elements which can be composed together into higher-level components • FX allows declarative expression of this composition
Download A Rich Application Platform: Java FX.Pdf