CS计算机代考程序代写 Java GPU gui javaFx JavaFx

JavaFx

COMP2511
JavaFX

Prepared by
Dr. Ashesh Mahidadia

JavaFX

2COMP2511: JavaFX

JavaFX
• Java’s original GUI library was the Abstract Window Toolkit (AWT).
• Swing was added to the platform in Java SE 1.2.
• JavaFX is Java’s GUI, graphics and multimedia API.
• JavaFX has better threading support, uses the GPU (graphics processing unit) .
• JavaFX supports transformations for repositioning and reorienting JavaFX components, and
animations for changing the properties of JavaFX c

• The Scene Builder tool is a standalone JavaFX GUI visual layout tool .
• JavaFX Scene Builder enables you to create GUIs by dragging and dropping GUI components.
• JavaFX Scene Builder generates FXML (FX Markup Language)—an XML vocabulary for defining
and arranging JavaFX GUI controls without writing any Java code.

• The FXML code is separate from the program logic that’s defined in Java source code—this
separation of the interface (the GUI) from the implementation (the Java code) makes it easier to
debug, modify and maintain JavaFX GUI apps.

COMP2511: JavaFX 3

COMP2511: JavaFX 4

JavaFX App Window Structure

COMP2511: JavaFX 5

Getting Started with JavaFX Scene Builder

• https://docs.oracle.com/javase/8/scene-builder-2/get-started-
tutorial/overview.htm#BABJCAGB

COMP2511: JavaFX 6

Layouts

• https://www.tutorialspoint.com/javafx/javafx_layout_panes

COMP2511: JavaFX 7

UI Controls

• https://www.tutorialspoint.com/javafx/javafx_ui_controls.htm

COMP2511: JavaFX 8

JavaFX Exercise Demo

• Demo of the JavaFX exercise, please watch the video.

COMP2511: JavaFX 9

JavaFX Animation Demo

• Demo of the JavaFX Animation, please watch the video.

https://docs.oracle.com/javase/8/javafx/visual-effects-tutorial/basics.htm

COMP2511: JavaFX 10

Week-07 Tut/Lab on JavaFx

• Hands-on self study exercises and lab exercises on JavaFx during
week-07.
• Application of Observer Pattern.

COMP2511: JavaFX 11

End

COMP2511: JavaFX 12