SlideShare a Scribd company logo
Java FX  primer … to get you started! Mark Nankman UX Architect TTU-F52 “ The most pervasive and powerful mobile platform is now the most expressive”
Agenda What is JavaFX? History Who is JavaFX meant for? Applications  Hello World (demo) JavaFX Script language Designer-Developer workflow (demo) Questions
JavaFX… Is a highly productive  scripting  language, enables content developers to create rich media and content for deployment on Java environments, Is a  declarative ,  statically-typed  programming language,  has first-class functions,  has declarative syntax,  has list-comprehensions,  has incremental dependency-based evaluation.  can make direct calls to Java APIs that are on the platform Is  NOT  a replacement for Swing
JavaFX History F3: Form Follows Function.  developed by Chris Oliver around 2006. F3 was changed to JavaFX Script, and it became open sourced at JavaOne 2007. JavaFX 1.0 was released on December 4, 2008 JavaFX 1.1 was released on February 20, 2009 JavaFX 1.1.1 was released on March 21, 2009
Cross-Platform
JavaFX Stack
Who is JavaFX meant for? Rich media developers RIA developers
Applications Rich cross-platform internet applications: Mobile devices Desktop TV “ rich” : Animations Cinematic effects Media streaming
Hello World
JavaFX Script Language Declarative syntax GUI Swing Data binding Incremental evaluation Statically typed and code structuring, reuse, and encapsulation features that enable creating and maintaining very large programs in the Java programming language.
JavaFX Script language - script A “script" is one or more declarations or functions. Stage { scene: Scene { content: Text{content: “Hello World!”} } } No main, classes or functions are mandatory.
JavaFX Script language - Class class  Knight { public   var  health  = 100; public var  strength = 10; public   function  die(){ health = 0 } public   function  hurt(amount: Integer){ strength -= amount } }
JavaFX Script language - Objects var  myKnight = Knight {} var  superKnight = Knight { health: 150; strength: 15; } myKnight.hurt(superKnight.strength); // myKight.health = 75
JavaFX Script language - Basic Data Types JavaFX String Boolean Number Integer Duration Java java.lang.String java.lang.Boolean java.lang.Number byte, short, int, long, BigInteger N/A
JavaFX Script language - String Examples var  s1 = "Java"; var  s2 = "FX"; var  s3 = "Java{s2}";  // s3 = 'Hello Joe' var  s4 = "{s1}{s2}";  // s4 = "JavaFX"
JavaFX Script language - Boolean Examples var  cool = true; var  s = "Java{ if (cool)"FX" else "Script"}"; //s = "JavaFX" var  a = true;  // a = true var  b = false;  // b = false var  c = a  and  b;  // c = false var  d = a  or  b;  // d = true var  e =  not  a;  // e = false
JavaFX Script language - Duration var  t1 = 5ms; // 5 milliseconds var  t2 = 10s; // 10 seconds var  t3 = 30m; // 30 minutes var  t4 = 1h;  // 1 hour var  t5 = t1 + t2 + t3 + t4; // 1 hour 30 min 10 secs and 5 millisecs
JavaFX Script language - Sequences var  x = [1,2,3]; // array initialization insert  10  into  x; // [1, 2, 3, 10] insert  12  before  x[1]; // [1, 12, 2, 3, 10] delete  12  from  x; // [1, 2, 3, 10] insert  [1..10]  into  x; // [1, 2, 3, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
Designer-Developer workflow Designers produce pixels UI Developers need shapes, UI elements, dimensions… What if designer could export the designs to a format a developer can work with? The JavaFX Productivity Suite does just that!
JavaFX Productivity Suite
Questions

More Related Content

PPT
Testing flash and flex for accessibility indic threads-q11
PPT
Architecting RIAs
PPS
It's Time for Silverlight @iRajLal
PPT
Silverlight
PPTX
Synchronized Development for Distributed Teams
PPTX
Latest Web development technologies 2021
PPT
Uncovering Windows - Silverlight Seminar
PDF
Silverlight - What Is It And How Can We Use It
Testing flash and flex for accessibility indic threads-q11
Architecting RIAs
It's Time for Silverlight @iRajLal
Silverlight
Synchronized Development for Distributed Teams
Latest Web development technologies 2021
Uncovering Windows - Silverlight Seminar
Silverlight - What Is It And How Can We Use It

What's hot (20)

PPT
Evaluation Ria Frameworks
PDF
Lublin Startup Festival - Mobile Architecture Design Patterns
PPT
Silver Light
PPTX
5 Ways iOS is better and worse than Flash
PPTX
What’s new in Visual Studio 2012 & .NET 4.5
PDF
Silverlight abhinav - slideshare
PPTX
NET Event - Migrating WinForm
PDF
Mobile applications development - why should you start learning it right now?
PPT
Silverlight Briefing Deck
PPT
Introduction to silver light
PPT
Silverlight Framework Architecture By Satyen
PDF
Introduction to Front End Engineering
PDF
Building software using Rich Clients Platforms Rikard Thulin
PPT
JQuery Mobile vs Appcelerator Titanium vs Sencha Touch
PDF
CV_Nataliya_Mykytyn
PPTX
Why java is important in programming language?
PDF
VishalSinha_Resume_Ora
PPTX
Revolutionizing Mobile App Development With IngniteMarkup
PPTX
Java Overview
PPT
Building PHP Powered Android Applications
Evaluation Ria Frameworks
Lublin Startup Festival - Mobile Architecture Design Patterns
Silver Light
5 Ways iOS is better and worse than Flash
What’s new in Visual Studio 2012 & .NET 4.5
Silverlight abhinav - slideshare
NET Event - Migrating WinForm
Mobile applications development - why should you start learning it right now?
Silverlight Briefing Deck
Introduction to silver light
Silverlight Framework Architecture By Satyen
Introduction to Front End Engineering
Building software using Rich Clients Platforms Rikard Thulin
JQuery Mobile vs Appcelerator Titanium vs Sencha Touch
CV_Nataliya_Mykytyn
Why java is important in programming language?
VishalSinha_Resume_Ora
Revolutionizing Mobile App Development With IngniteMarkup
Java Overview
Building PHP Powered Android Applications
Ad

Similar to JavaFX (20)

ODP
JavaFX introduction
PDF
JavaFX Overview
ODP
Presentation - Course about JavaFX
ODP
JavaFXScript
PDF
PDF
Scripting with Java FX - Cédric Tabin - December 2007
PDF
BeJUG JavaFx In Practice
ODP
Java FX
PDF
Java Fx Ajaxworld Rags V1
PPT
JavaFX - Next Generation Java UI
PPT
Intro to JavaFX & Widget FX
ODP
JavaFX in Action Part I
PPTX
The Java Fx Platform – A Java Developer’S Guide
PDF
JavaFX 1.0 SDK Aquarium Paris
ODP
Java Fx Overview Tech Tour
ODP
Javafx
PDF
JavaFX for Java Developers
PDF
Hinkmond's JavaFX Mobile Dojo
PDF
JavaFX In Practice
PDF
Demo on JavaFX
JavaFX introduction
JavaFX Overview
Presentation - Course about JavaFX
JavaFXScript
Scripting with Java FX - Cédric Tabin - December 2007
BeJUG JavaFx In Practice
Java FX
Java Fx Ajaxworld Rags V1
JavaFX - Next Generation Java UI
Intro to JavaFX & Widget FX
JavaFX in Action Part I
The Java Fx Platform – A Java Developer’S Guide
JavaFX 1.0 SDK Aquarium Paris
Java Fx Overview Tech Tour
Javafx
JavaFX for Java Developers
Hinkmond's JavaFX Mobile Dojo
JavaFX In Practice
Demo on JavaFX
Ad

Recently uploaded (20)

PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Empathic Computing: Creating Shared Understanding
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Encapsulation theory and applications.pdf
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
KodekX | Application Modernization Development
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Encapsulation_ Review paper, used for researhc scholars
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PPTX
Big Data Technologies - Introduction.pptx
PPTX
Cloud computing and distributed systems.
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPTX
sap open course for s4hana steps from ECC to s4
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Spectral efficient network and resource selection model in 5G networks
Empathic Computing: Creating Shared Understanding
Advanced methodologies resolving dimensionality complications for autism neur...
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Encapsulation theory and applications.pdf
Review of recent advances in non-invasive hemoglobin estimation
Mobile App Security Testing_ A Comprehensive Guide.pdf
KodekX | Application Modernization Development
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Encapsulation_ Review paper, used for researhc scholars
20250228 LYD VKU AI Blended-Learning.pptx
MIND Revenue Release Quarter 2 2025 Press Release
Big Data Technologies - Introduction.pptx
Cloud computing and distributed systems.
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Per capita expenditure prediction using model stacking based on satellite ima...
sap open course for s4hana steps from ECC to s4

JavaFX

  • 1. Java FX primer … to get you started! Mark Nankman UX Architect TTU-F52 “ The most pervasive and powerful mobile platform is now the most expressive”
  • 2. Agenda What is JavaFX? History Who is JavaFX meant for? Applications Hello World (demo) JavaFX Script language Designer-Developer workflow (demo) Questions
  • 3. JavaFX… Is a highly productive scripting language, enables content developers to create rich media and content for deployment on Java environments, Is a declarative , statically-typed programming language, has first-class functions, has declarative syntax, has list-comprehensions, has incremental dependency-based evaluation. can make direct calls to Java APIs that are on the platform Is NOT a replacement for Swing
  • 4. JavaFX History F3: Form Follows Function. developed by Chris Oliver around 2006. F3 was changed to JavaFX Script, and it became open sourced at JavaOne 2007. JavaFX 1.0 was released on December 4, 2008 JavaFX 1.1 was released on February 20, 2009 JavaFX 1.1.1 was released on March 21, 2009
  • 7. Who is JavaFX meant for? Rich media developers RIA developers
  • 8. Applications Rich cross-platform internet applications: Mobile devices Desktop TV “ rich” : Animations Cinematic effects Media streaming
  • 10. JavaFX Script Language Declarative syntax GUI Swing Data binding Incremental evaluation Statically typed and code structuring, reuse, and encapsulation features that enable creating and maintaining very large programs in the Java programming language.
  • 11. JavaFX Script language - script A “script" is one or more declarations or functions. Stage { scene: Scene { content: Text{content: “Hello World!”} } } No main, classes or functions are mandatory.
  • 12. JavaFX Script language - Class class Knight { public var health = 100; public var strength = 10; public function die(){ health = 0 } public function hurt(amount: Integer){ strength -= amount } }
  • 13. JavaFX Script language - Objects var myKnight = Knight {} var superKnight = Knight { health: 150; strength: 15; } myKnight.hurt(superKnight.strength); // myKight.health = 75
  • 14. JavaFX Script language - Basic Data Types JavaFX String Boolean Number Integer Duration Java java.lang.String java.lang.Boolean java.lang.Number byte, short, int, long, BigInteger N/A
  • 15. JavaFX Script language - String Examples var s1 = "Java"; var s2 = "FX"; var s3 = "Java{s2}"; // s3 = 'Hello Joe' var s4 = "{s1}{s2}"; // s4 = "JavaFX"
  • 16. JavaFX Script language - Boolean Examples var cool = true; var s = "Java{ if (cool)"FX" else "Script"}"; //s = "JavaFX" var a = true; // a = true var b = false; // b = false var c = a and b; // c = false var d = a or b; // d = true var e = not a; // e = false
  • 17. JavaFX Script language - Duration var t1 = 5ms; // 5 milliseconds var t2 = 10s; // 10 seconds var t3 = 30m; // 30 minutes var t4 = 1h; // 1 hour var t5 = t1 + t2 + t3 + t4; // 1 hour 30 min 10 secs and 5 millisecs
  • 18. JavaFX Script language - Sequences var x = [1,2,3]; // array initialization insert 10 into x; // [1, 2, 3, 10] insert 12 before x[1]; // [1, 12, 2, 3, 10] delete 12 from x; // [1, 2, 3, 10] insert [1..10] into x; // [1, 2, 3, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
  • 19. Designer-Developer workflow Designers produce pixels UI Developers need shapes, UI elements, dimensions… What if designer could export the designs to a format a developer can work with? The JavaFX Productivity Suite does just that!