Chris Shuster Exploring JavaFX
Overview Thin Client Applications Rich Internet Applications Research Constraints 11/14/2018 Chris Shuster
Application Platforms Executed by the Browser JavaScript Execute by an External Application Flash Java JavaFX 11/14/2018 Chris Shuster
JavaFX Runs on JVM. Developed using JavaFX Script. Compatible with Java applications. 11/14/2018 Chris Shuster
JavaFX Script Simplified. GUI orientated. Hybrid between declarative and object orientated languages. Can use any Java API. 11/14/2018 Chris Shuster
JavaFX Setup See the associated research paper. 11/14/2018 Chris Shuster
Hello World 11/14/2018 Chris Shuster package demo; import javafx.stage.Stage; import javafx.scene.Scene; import javafx.scene.paint.Color; import javafx.ext.swing.SwingTextField; import javafx.scene.text.Text; import javafx.scene.text.Font; Stage { title : "Hello World" scene: Scene width: 160 height: 45 fill: Color.BLACK content: Text font: Font size: 25 }, fill: Color.GREEN, x: 10, y: 30 content: "Hello World" } 11/14/2018 Chris Shuster
Simple Graphics Circle { centerX: 100, centerY: 100, radius: 40, fill: Color.BLUE }, Rectangle { x: 10, y: 150, width: 140, height: 90, fill: Color.RED Line { startX: 10, startY: 50, endX: 50, endY: 125, strokeWidth: 1, stroke: Color.YELLOW } 11/14/2018 Chris Shuster
Lighting Effects effect: Lighting { light: PointLight x: 0, y: -50, z: 100 } light: DistantLight azimuth: 90, elevation: 45 light: SpotLight y: 150, z: 50, pointsAtX: 200, pointsAtY: 0, pointsAtZ: 0, specularExponent: 4 11/14/2018 Chris Shuster
Shadowing Effects effect: DropShadow { offsetX: 5, offsetY: 5 } effect: InnerShadow effect: Shadow radius: 15 11/14/2018 Chris Shuster
Other Features Other Effects Animation Multimedia GUI Widgets 11/14/2018 Chris Shuster
Future Research Java Other Rich Internet Applications Platforms Fully explore the JavaFX platform. Explorer other Java technologies. JSP JSF Other Rich Internet Applications Platforms Explore Adobe Flash. Explore AJAX based applications. 11/14/2018 Chris Shuster
References JavaFX Developing Rich Internet Applications Learn about Java Technology http://www.java.com/en/about/ Developer Resources for Java Technology http://java.sun.com/ 11/14/2018 Chris Shuster