Using JavaFX
Scene graphs Stage and scenes Core Node classes
1
Using JavaFX Scene graphs Stage and scenes Core Node classes 1 - - PowerPoint PPT Presentation
Using JavaFX Scene graphs Stage and scenes Core Node classes 1 History of Java FX Swing Java 6 (2007) Java 1.0 (1996) Java 1.1 (1998) Cross-platform Cross-platform Cross-platform Java implementation of Java wrappers for
1
2
§ Java 1.0 (1996) § Cross-platform § Java wrappers for native
§ In practice, underlying
§ Support imperative
§ “heavyweight” toolkit § Java 1.1 (1998) § Cross-platform § Java implementations of
§ Often lower than native
§ Support imperative
§ “lightweight” toolkit § Java 6 (2007) § Cross-platform § Java implementation of
§ Competitor w. Adobe
§ A “better Swing” with 3D,
§ Imperative + declarative
§ Hardware acceleration § “lightweight” toolkit Swing
3
4
5
This is the only required method. Derive from Application
6
7
HelloFX.java
8
Home Copy-Paste Tools Paste Cut Copy Slide Tools . . .
9
10
11
12
13
14
15
§ Stage.setScene() allows you to dynamically load different scenes.
16