Advertisement

002- JavaFX Tutorial - Getting Started

May. 21, 2018
Advertisement

More Related Content

Advertisement
Advertisement

002- JavaFX Tutorial - Getting Started

  1. Brought to you by Graphical User Interface in Java Using JavaFX Getting Started 1K. N. Toosi University of Technology
  2. JavaFX Application Life Cycle: Each JavaFX application needs to extend the javafx.application.Application class, which defines the life cycle of an application. • Application.init(): Can be used to define and prepare everything before the UI shows up. • Application.start(Stage stage): You should override this method and build and display your UI in it. • Application.stop(): This method will call when the application terminates. 2K. N. Toosi University of Technology launch() init() start() stop()
  3. Demo 1: 3K. N. Toosi University of Technology
  4. Demo 1: 4K. N. Toosi University of Technology
  5. Demo 1: 5K. N. Toosi University of Technology
  6. Demo 1: 6K. N. Toosi University of Technology
  7. Filling the UI: 7K. N. Toosi University of Technology
  8. Demo 1: 8K. N. Toosi University of Technology
  9. Demo 1: 9K. N. Toosi University of Technology
  10. Demo 1: 10K. N. Toosi University of Technology
  11. Demo 1: 11K. N. Toosi University of Technology
  12. Demo 1: 12K. N. Toosi University of Technology
  13. Structure of a JavaFX Application: 13K. N. Toosi University of Technology Stage Scene Parent Root Node Node Node Node Node Node Scene Parent Root Node Node Node Node Node Node Login Scene Scene Parent Root Node Node Node Node Node Node Admin Scene
  14. JavaFX Class Hierarchy: 14K. N. Toosi University of Technology Node Shape3D Shape2D Parent Group Region Chart Pane VBox HBox AnchorPane Control WebView Canvas ImageView
  15. Live Coding: Line Patterns 15K. N. Toosi University of Technology https://gist.github.com/mhrimaz/0c9f5234ed779ad74dc91707dbd0b65d
  16. Live Coding: Recursive Graphic Sierpinski Carpet 16K. N. Toosi University of Technology https://github.com/mhrimaz/SierpinskiCarpetFX
  17. Exercises: Try to draw below shapes 17K. N. Toosi University of Technology
  18. Brought to you by Happy Coding  18K. N. Toosi University of Technology
Advertisement