Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

002- JavaFX Tutorial - Getting Started

709 views

Published on

JavaFX Tutorial Slides.
Watch the video series here:
https://www.youtube.com/watch?v=kKKtgstZ5qM&list=PLje_ti-y5EoL6PDfH3x5d8FMOpEHgHYVF

K. N. Toosi University of Technology

Published in: Software
  • Be the first to comment

  • Be the first to like this

002- JavaFX Tutorial - Getting Started

  1. 1. Brought to you by Graphical User Interface in Java Using JavaFX Getting Started 1K. N. Toosi University of Technology
  2. 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. 3. Demo 1: 3K. N. Toosi University of Technology
  4. 4. Demo 1: 4K. N. Toosi University of Technology
  5. 5. Demo 1: 5K. N. Toosi University of Technology
  6. 6. Demo 1: 6K. N. Toosi University of Technology
  7. 7. Filling the UI: 7K. N. Toosi University of Technology
  8. 8. Demo 1: 8K. N. Toosi University of Technology
  9. 9. Demo 1: 9K. N. Toosi University of Technology
  10. 10. Demo 1: 10K. N. Toosi University of Technology
  11. 11. Demo 1: 11K. N. Toosi University of Technology
  12. 12. Demo 1: 12K. N. Toosi University of Technology
  13. 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. 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. 15. Live Coding: Line Patterns 15K. N. Toosi University of Technology https://gist.github.com/mhrimaz/0c9f5234ed779ad74dc91707dbd0b65d
  16. 16. Live Coding: Recursive Graphic Sierpinski Carpet 16K. N. Toosi University of Technology https://github.com/mhrimaz/SierpinskiCarpetFX
  17. 17. Exercises: Try to draw below shapes 17K. N. Toosi University of Technology
  18. 18. Brought to you by Happy Coding  18K. N. Toosi University of Technology

×