SlideShare a Scribd company logo
GUI Development
HouariZegai14@gmail.com
By: Houari ZEGAI
1
@ZegaiBlog @HouariZegai&
What is JavaFx ?
2
JavaFx
GUI (Graphical User Interface)
3
What you should know ?
4
You should know
 Java Programming
 Classes and Objects in Java
 Integrated Development Environment (IDE)
 Optional: CSS (Cascading Style Sheet)
5
Real-world applications
6
Real-world applications
7
1- Carl Zeiss Meditec AG
Dev by: Saxonia Systems AG
It is an archive software for
clinical patient data in
ophthalmology
Real-world applications
8
2- CuratorOR Caliop
Dev by: EIZO GmbH
It is being installed in wall-
mounted. used to look up
patient data, to document the
surgery, and to store the
produced documents in the
central hospital database.
Real-world applications
9
3- Deep Space Trajectory
Explorer
Custom JavaFX tools have
been built that provide high
performance, interactive
analysis for dimensional data
sets.
Dev by: NASA
Real-world applications
10
4- Learn SQL App (LSQL)
Dev by: Houari ZEGAISource: github.com/HouariZegai/LearnSQLApp
JavaFx - Features
 Has a library written as a Java API
 Uses the MVC (Model View Controller) Design pattern
 Supports the use of CSS and FXML
 Separates presentation from application logic using FXML
11
JavaFx - Features
 Integrates easily with existing Swing Applications (Compatible)
 High Performance hardware
 Installed with the JRE to make it available worldwide
 ….
12
Where can learn JavaFX
13
WebSites
• docs.oracle.com/javase/8/javafx/api
• harmash.com/javafx
• www.tutorialspoint.com/javafx
• zetcode.com/gui/javafx
• …
• Mohammed Al-Shawwa
• Khalid ESSAADANI – ‫خالد‬‫السعداني‬
• TheNewBoston
• Genuine Coder
• KeepToo, Rashid Coder, Benny Coder,
Houari Zegai, …
Basic information
14
Architecture of JavaFx
 Stage
 Scene
 Root Node
Button TextField
Label ImageView Nodes
15
JavaFx Scene
Graph
• Its depicts hierarchical tree
of nodes
• Each elements is called a
Node
Root Node
16
JavaFX Scene Graph
 The root node is the base node and has no parent
nodes
 Other nodes have one parent and zero or more children
 Nodes have and id, style class, and bounding volume
17
JavaFX Nodes
 Effects (blurs, shadow, …)
 Opacity
 Transforms
 Event handlers
 …
18
Layouts
19
20
Class Parent
Layout
Layouts
Layout
21
BorderPane
Layout
22
FlowPane
Layout
23
HBox VBox
Layout
24
StackPane
25Example 1:
ImageView
Label
Text
TextField
PasswordField
CheckBox
Button
Label
VBox
26Example 2:
• VBox
• HBox
• StackPane
Run first application
27
public class FirstApp extends Application {
@Override
public void start(Stage stage) {
Button btn = new Button("Say Hello !");
VBox root = new VBox();
root.getChildren().add(btn);
Scene scene = new Scene(root, 400, 400);
stage.setScene(scene);
stage.show();
}
public static void main(String[] args) {
launch(args);
}
}
28
root
btn
stage
scene

More Related Content

What's hot

Internet of Things: A Hands-On Approach
Internet of Things: A Hands-On ApproachInternet of Things: A Hands-On Approach
Internet of Things: A Hands-On Approach
Arshdeep Bahga
 
Why we need ipv6...
Why we need ipv6...Why we need ipv6...
Why we need ipv6...
Adii Shah
 

What's hot (20)

MVA slides lesson 1
MVA slides lesson 1MVA slides lesson 1
MVA slides lesson 1
 
CCNA v6.0 ITN - Chapter 08
CCNA v6.0 ITN - Chapter 08CCNA v6.0 ITN - Chapter 08
CCNA v6.0 ITN - Chapter 08
 
Data link layer
Data link layerData link layer
Data link layer
 
Ch19
Ch19Ch19
Ch19
 
Cisco Packet Tracer Overview
Cisco Packet Tracer OverviewCisco Packet Tracer Overview
Cisco Packet Tracer Overview
 
Free space optics (FSO)
Free space optics (FSO)Free space optics (FSO)
Free space optics (FSO)
 
Common Network Services
Common Network ServicesCommon Network Services
Common Network Services
 
IPv6 address
IPv6 addressIPv6 address
IPv6 address
 
IPV6 ADDRESS
IPV6 ADDRESSIPV6 ADDRESS
IPV6 ADDRESS
 
NETWORK STANDARD
NETWORK STANDARDNETWORK STANDARD
NETWORK STANDARD
 
Ports & sockets
Ports  & sockets Ports  & sockets
Ports & sockets
 
Internet Of things
Internet Of things Internet Of things
Internet Of things
 
Internet of Things: A Hands-On Approach
Internet of Things: A Hands-On ApproachInternet of Things: A Hands-On Approach
Internet of Things: A Hands-On Approach
 
Layering and Architecture
Layering and ArchitectureLayering and Architecture
Layering and Architecture
 
Ipv4
Ipv4Ipv4
Ipv4
 
Tutorial on IEEE 802.15.4e standard
Tutorial on IEEE 802.15.4e standardTutorial on IEEE 802.15.4e standard
Tutorial on IEEE 802.15.4e standard
 
Physical layer OSI Model & Transmission Media
Physical layer OSI Model & Transmission MediaPhysical layer OSI Model & Transmission Media
Physical layer OSI Model & Transmission Media
 
ETHERNET
ETHERNETETHERNET
ETHERNET
 
Data Link Layer
Data Link LayerData Link Layer
Data Link Layer
 
Why we need ipv6...
Why we need ipv6...Why we need ipv6...
Why we need ipv6...
 

Similar to Introduction to JavaFX

Netbeans
NetbeansNetbeans
Netbeans
acosdt
 
Great cup of java
Great  cup of javaGreat  cup of java
Great cup of java
CIB Egypt
 
Presentation on Java Basic
Presentation on Java BasicPresentation on Java Basic
Presentation on Java Basic
Rustamji Institute of Technology
 
Java for Recruiters
Java for RecruitersJava for Recruiters
Java for Recruiters
ph7 -
 

Similar to Introduction to JavaFX (20)

Netbeans
NetbeansNetbeans
Netbeans
 
JavaFX: A Rich Internet Application (RIA) Development Platform
JavaFX: A Rich Internet Application (RIA) Development PlatformJavaFX: A Rich Internet Application (RIA) Development Platform
JavaFX: A Rich Internet Application (RIA) Development Platform
 
Great cup of java
Great  cup of javaGreat  cup of java
Great cup of java
 
Great Cup od Java
Great Cup od JavaGreat Cup od Java
Great Cup od Java
 
10 interesting things about java
10 interesting things about java10 interesting things about java
10 interesting things about java
 
What is java
What is javaWhat is java
What is java
 
01. Introduction to programming with java
01. Introduction to programming with java01. Introduction to programming with java
01. Introduction to programming with java
 
Hinkmond's JavaFX Mobile Dojo
Hinkmond's JavaFX Mobile DojoHinkmond's JavaFX Mobile Dojo
Hinkmond's JavaFX Mobile Dojo
 
Presentation on Java Basic
Presentation on Java BasicPresentation on Java Basic
Presentation on Java Basic
 
What is-java
What is-javaWhat is-java
What is-java
 
Core Java-1 (1).pdf
Core Java-1 (1).pdfCore Java-1 (1).pdf
Core Java-1 (1).pdf
 
Avatar 2.0
Avatar 2.0Avatar 2.0
Avatar 2.0
 
Java session2
Java session2Java session2
Java session2
 
Java for Recruiters
Java for RecruitersJava for Recruiters
Java for Recruiters
 
Server Side JavaScript on the Java Platform - David Delabassee
Server Side JavaScript on the Java Platform - David DelabasseeServer Side JavaScript on the Java Platform - David Delabassee
Server Side JavaScript on the Java Platform - David Delabassee
 
Introduction to Java in cs engineering .pptx
Introduction to Java in cs engineering .pptxIntroduction to Java in cs engineering .pptx
Introduction to Java in cs engineering .pptx
 
Tech Days 2010
Tech  Days 2010Tech  Days 2010
Tech Days 2010
 
OSGi enRoute Unveiled - P Kriens
OSGi enRoute Unveiled - P KriensOSGi enRoute Unveiled - P Kriens
OSGi enRoute Unveiled - P Kriens
 
Development with JavaFX 9 in JDK 9.0.1
Development with JavaFX 9 in JDK 9.0.1Development with JavaFX 9 in JDK 9.0.1
Development with JavaFX 9 in JDK 9.0.1
 
005528214.pdf
005528214.pdf005528214.pdf
005528214.pdf
 

Recently uploaded

Industrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training ReportIndustrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training Report
Avinash Rai
 
IATP How-to Foreign Travel May 2024.pdff
IATP How-to Foreign Travel May 2024.pdffIATP How-to Foreign Travel May 2024.pdff
IATP How-to Foreign Travel May 2024.pdff
17thcssbs2
 

Recently uploaded (20)

How to the fix Attribute Error in odoo 17
How to the fix Attribute Error in odoo 17How to the fix Attribute Error in odoo 17
How to the fix Attribute Error in odoo 17
 
How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS Module
 
Industrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training ReportIndustrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training Report
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
 
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
 
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General QuizPragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
 
slides CapTechTalks Webinar May 2024 Alexander Perry.pptx
slides CapTechTalks Webinar May 2024 Alexander Perry.pptxslides CapTechTalks Webinar May 2024 Alexander Perry.pptx
slides CapTechTalks Webinar May 2024 Alexander Perry.pptx
 
Benefits and Challenges of Using Open Educational Resources
Benefits and Challenges of Using Open Educational ResourcesBenefits and Challenges of Using Open Educational Resources
Benefits and Challenges of Using Open Educational Resources
 
Matatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptxMatatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptx
 
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdfDanh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
 
The Benefits and Challenges of Open Educational Resources
The Benefits and Challenges of Open Educational ResourcesThe Benefits and Challenges of Open Educational Resources
The Benefits and Challenges of Open Educational Resources
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
IATP How-to Foreign Travel May 2024.pdff
IATP How-to Foreign Travel May 2024.pdffIATP How-to Foreign Travel May 2024.pdff
IATP How-to Foreign Travel May 2024.pdff
 
How to Manage Notification Preferences in the Odoo 17
How to Manage Notification Preferences in the Odoo 17How to Manage Notification Preferences in the Odoo 17
How to Manage Notification Preferences in the Odoo 17
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
 
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptx
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptxJose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptx
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptx
 
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdfINU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
 
Gyanartha SciBizTech Quiz slideshare.pptx
Gyanartha SciBizTech Quiz slideshare.pptxGyanartha SciBizTech Quiz slideshare.pptx
Gyanartha SciBizTech Quiz slideshare.pptx
 

Introduction to JavaFX