SlideShare a Scribd company logo
JavaFX
-Rohit Vaidya
JUG Hyderabad
JavaFX
 JavaFX is a software platform for creating Rich
Internet Applications that can run across variety
of platforms[1]
 Collection of Java Packages with ability to add
fancy GUI’s to your Java application
 Groovy and Scala can also be used to write
JavaFX. JVM Languages indeed!!!
 JavaFX is official standard part of Java platform
JavaFX - History
 Formerly called F3 (Form Follows Function) and
developed by Chris Oliver at Sun Microsystems
 JavaFX was initially developed as a scripting
language however it was discontinued by Oracle
and declared dead in JavaOne (2010)[2]
JavaFX Stack
Possibilities
 CSS support
 Visual effects – shadow, reflection, blur,
perspective
 Animation – cubes, cylinders, spheres etc
 Charts
 3D objects
 Touch interface
 Property bindings
Possibilities
JavaFX - Lingo
 Stage – Top level container for all JavaFX objects
 Scene – A scene is a hierarchical node structures
that contains all scene’s components
 Group – Group is a general purpose container
node
JavaFX - Lingo
JavaFx Lingo
JavaFX Important Packages
 javafx.application: Core package on which all
JavaFX application depend
 javafx.stage: Most important class here is the Stage
class
 javafx.scene: Most important class here is the scene
class which is the container that holds all UI
elements
 javafx.scene.layout: Contains Layout Manager. Job
of Layout manager is to determine position of each
control displayed
 Javafx.scene.control: Individual controls like
buttons, text boxes and labels exist here
JavaFX LifeCycle
 Application class is responsible for managing the
lifecycle of JavaFX application
 Lifecycle steps
 Create an instance of Application
 Call init method
 Call start method
 Wait for application to End
 Call the stop method
JavaFX Lifecycle
 init (): Default implementation of init does nothing.
 One can override to perform any processing before
application UI is displayed
 start (): No default implementation and is declared
abstract.
 Your app must override this. Build and display the UI
 Wait for application to End. Typically happens when
user signals end of program
 stop(): Default implementation does not do
anything
 One can override to to perform any necessary
processing as program terminates.
JavaFX Launching
Application
 Standard entry point to Java program is the
main method
 The launch method is in Application class
Java fx
JavaFX - Layouts
 Hbox – Provides a horizontal layout of its contents
in a single row
 Vbox – Provides a vertical layout of its content in
a single column
 Flow – Provides a layout of content in either
horizontal or vertical flow wrapping at current
height or boundary
 Tile – Same as flow. But all cells are uniform size.
Controlled via tileHeight and tileWidth
JavaFX - Layouts
GitFX – Project
GitFX Project
GitFX Project
JavaFX Deployments
1. Launch from command line using java launcher
2. Launch as a desktop application from a JAR or
self contained application
3. View in a web page
4. Launch by clicking a link in the browser to
download an application
References
 1 http://en.wikipedia.org/wiki/JavaFX
 2 http://java.dzone.com/articles/oracle-
discontinue-javafx
 3 JavaFX for Dummies
 4 Effective JavaFX
 Deployments:
http://docs.oracle.com/javafx/2/get_started/bas
ic_deployment.htm#BABFAFEC

More Related Content

PDF
Introduction to Java Programming
PPTX
Inheritance in OOPS
PPT
Java: Objects and Object References
PPT
Object Oriented Concepts and Principles
PPTX
OOPS In JAVA.pptx
PPTX
introduction of Object oriented programming
PPTX
Lecture 1 oop
PDF
JAVA PROGRAMMING- Exception handling - Multithreading
Introduction to Java Programming
Inheritance in OOPS
Java: Objects and Object References
Object Oriented Concepts and Principles
OOPS In JAVA.pptx
introduction of Object oriented programming
Lecture 1 oop
JAVA PROGRAMMING- Exception handling - Multithreading

What's hot (20)

PDF
A seminar report on core java
PPTX
Exception handling in java
PDF
Command line-arguments-in-java-tutorial
PPTX
College Management System
PPT
Java interfaces
PPTX
Chapter 3 servlet & jsp
PPTX
Object Oriented Programming
PPT
9. Input Output in java
PPTX
Basic Concepts of OOPs (Object Oriented Programming in Java)
PPTX
GUI components in Java
PPTX
Object oriented programming concepts
PDF
What is Serialization in Java? | Java Tutorial | Edureka
PPTX
iOS Operating System
PPTX
Overloading vs Overriding.pptx
PPTX
Python Programming Essentials - M25 - os and sys modules
PDF
Java Basic Oops Concept
PPT
Object Oriented Programming Concepts
PPTX
Inheritance in java
PPT
Student management system project report c++
PPTX
Static keyword ppt
A seminar report on core java
Exception handling in java
Command line-arguments-in-java-tutorial
College Management System
Java interfaces
Chapter 3 servlet & jsp
Object Oriented Programming
9. Input Output in java
Basic Concepts of OOPs (Object Oriented Programming in Java)
GUI components in Java
Object oriented programming concepts
What is Serialization in Java? | Java Tutorial | Edureka
iOS Operating System
Overloading vs Overriding.pptx
Python Programming Essentials - M25 - os and sys modules
Java Basic Oops Concept
Object Oriented Programming Concepts
Inheritance in java
Student management system project report c++
Static keyword ppt
Ad

Viewers also liked (9)

ODP
PPTX
How i taught a computer to play chess
PDF
JavaFX Layout Secrets with Amy Fowler
ODP
Effective java - Creating and Destroying Objects
ODP
JavaFX in Action Part I
PDF
8 True Stories about JavaFX
PDF
The JavaFX Ecosystem
PPTX
Introduction to Scala
PPTX
JavaFX 2 and Scala - Like Milk and Cookies (33rd Degrees)
How i taught a computer to play chess
JavaFX Layout Secrets with Amy Fowler
Effective java - Creating and Destroying Objects
JavaFX in Action Part I
8 True Stories about JavaFX
The JavaFX Ecosystem
Introduction to Scala
JavaFX 2 and Scala - Like Milk and Cookies (33rd Degrees)
Ad

Similar to Java fx (20)

PPTX
Advance java prasentation
PDF
JavaFX: A Rich Internet Application (RIA) Development Platform
PDF
Java Programming
PDF
The Brainify App - JavaFx
PDF
Introduction to Java Programming.pdf
PDF
JavaFx Introduction, Basic JavaFx Architecture
PDF
Introduction to JavaFX
PPT
Javalecture 1
PDF
Hinkmond's JavaFX Mobile Dojo
PPTX
Java Technology Define In Short Time
PPTX
DesktopApps.pptx
PDF
Beyond The Buzz: Pluggable JavaFX Corporate Applications
PPTX
Java fx
PPT
this_is_how_to_start_coding_in_java_lang.ppt
PPTX
Java ms harsha
PPTX
JAVA PROGRAMMING-Unit I - Final PPT.pptx
PPTX
java basics.pptx
PPTX
01. Introduction to programming with java
PPT
Eclipse - Single Source;Three Runtimes
Advance java prasentation
JavaFX: A Rich Internet Application (RIA) Development Platform
Java Programming
The Brainify App - JavaFx
Introduction to Java Programming.pdf
JavaFx Introduction, Basic JavaFx Architecture
Introduction to JavaFX
Javalecture 1
Hinkmond's JavaFX Mobile Dojo
Java Technology Define In Short Time
DesktopApps.pptx
Beyond The Buzz: Pluggable JavaFX Corporate Applications
Java fx
this_is_how_to_start_coding_in_java_lang.ppt
Java ms harsha
JAVA PROGRAMMING-Unit I - Final PPT.pptx
java basics.pptx
01. Introduction to programming with java
Eclipse - Single Source;Three Runtimes

Recently uploaded (20)

PPTX
Cloud computing and distributed systems.
PDF
Empathic Computing: Creating Shared Understanding
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPTX
sap open course for s4hana steps from ECC to s4
PDF
KodekX | Application Modernization Development
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPT
Teaching material agriculture food technology
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Electronic commerce courselecture one. Pdf
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PPTX
Spectroscopy.pptx food analysis technology
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Cloud computing and distributed systems.
Empathic Computing: Creating Shared Understanding
Digital-Transformation-Roadmap-for-Companies.pptx
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
sap open course for s4hana steps from ECC to s4
KodekX | Application Modernization Development
Advanced methodologies resolving dimensionality complications for autism neur...
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Teaching material agriculture food technology
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Electronic commerce courselecture one. Pdf
“AI and Expert System Decision Support & Business Intelligence Systems”
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
20250228 LYD VKU AI Blended-Learning.pptx
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Building Integrated photovoltaic BIPV_UPV.pdf
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Spectroscopy.pptx food analysis technology
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows

Java fx

  • 2. JavaFX  JavaFX is a software platform for creating Rich Internet Applications that can run across variety of platforms[1]  Collection of Java Packages with ability to add fancy GUI’s to your Java application  Groovy and Scala can also be used to write JavaFX. JVM Languages indeed!!!  JavaFX is official standard part of Java platform
  • 3. JavaFX - History  Formerly called F3 (Form Follows Function) and developed by Chris Oliver at Sun Microsystems  JavaFX was initially developed as a scripting language however it was discontinued by Oracle and declared dead in JavaOne (2010)[2]
  • 5. Possibilities  CSS support  Visual effects – shadow, reflection, blur, perspective  Animation – cubes, cylinders, spheres etc  Charts  3D objects  Touch interface  Property bindings
  • 7. JavaFX - Lingo  Stage – Top level container for all JavaFX objects  Scene – A scene is a hierarchical node structures that contains all scene’s components  Group – Group is a general purpose container node
  • 10. JavaFX Important Packages  javafx.application: Core package on which all JavaFX application depend  javafx.stage: Most important class here is the Stage class  javafx.scene: Most important class here is the scene class which is the container that holds all UI elements  javafx.scene.layout: Contains Layout Manager. Job of Layout manager is to determine position of each control displayed  Javafx.scene.control: Individual controls like buttons, text boxes and labels exist here
  • 11. JavaFX LifeCycle  Application class is responsible for managing the lifecycle of JavaFX application  Lifecycle steps  Create an instance of Application  Call init method  Call start method  Wait for application to End  Call the stop method
  • 12. JavaFX Lifecycle  init (): Default implementation of init does nothing.  One can override to perform any processing before application UI is displayed  start (): No default implementation and is declared abstract.  Your app must override this. Build and display the UI  Wait for application to End. Typically happens when user signals end of program  stop(): Default implementation does not do anything  One can override to to perform any necessary processing as program terminates.
  • 13. JavaFX Launching Application  Standard entry point to Java program is the main method  The launch method is in Application class
  • 15. JavaFX - Layouts  Hbox – Provides a horizontal layout of its contents in a single row  Vbox – Provides a vertical layout of its content in a single column  Flow – Provides a layout of content in either horizontal or vertical flow wrapping at current height or boundary  Tile – Same as flow. But all cells are uniform size. Controlled via tileHeight and tileWidth
  • 20. JavaFX Deployments 1. Launch from command line using java launcher 2. Launch as a desktop application from a JAR or self contained application 3. View in a web page 4. Launch by clicking a link in the browser to download an application
  • 21. References  1 http://en.wikipedia.org/wiki/JavaFX  2 http://java.dzone.com/articles/oracle- discontinue-javafx  3 JavaFX for Dummies  4 Effective JavaFX  Deployments: http://docs.oracle.com/javafx/2/get_started/bas ic_deployment.htm#BABFAFEC