Get the Java Class - III recording: Here
Get the Calculator project made during the class: Here
-
Installation of Java 8
-
Installation of IntelliJ IDEA
-
Installation of Scene Builder + JFoenix
-
Why Java 8 why not the newer java version?
For answer: Click here
-
Why JavaFx?: Click here
- JavaFX can be styled with CSS, whereas Swing cannot be. If we want to style Swing GUIs with CSS, we will need to use third party sources like flying-saucer. Being able to implement CSS is a unique functionality of JavaFX, and that alone lets programmers easily and swiftly create cool designs in applications.
- JavaFX makes programmers’ life easy by offering “JavaFX scene builder” with which programmers can create GUI controls like buttons via drag and drop.
- JavaFX supports Java Lambda expressions in action-triggering events unlike Swing. Using Lambda expressions, JavaFX promotes code readability and just needs fewer lines of code than Swing.
- JavaFX has built-in data visualization such as 2D charts
- JavaFX 3D API is an awesome API to create 3D objects in creating games or customizing charts in JavaFX.
- JavaFX is a good alternative GUI for Android and iOS, meaning JavaFX is portable now. Though JavaFX is not as good as native GUIs, it still performs smoothly on both Android and iOS platforms by using Gluon.
-
Why Desktop Application Development?
For answer: Click here.
-
What is JavaFx?
Answer: Click here
- Stage
- Scenes
- Layouts
- Controls
-
FXML and Controller classes
- Controller classes are only for writing logic of the UI components.
- Other classes may be used for other purposes like fetching data from APIs or connecting to a socket.
-
Nomenclature: Click here
- Class
- Methods
- Variables
-
Folder Structure
- /src/main/java/ - Contains all your java code
- /src/main/resources/ - Contains your css, images, and fxml files
-
What is Maven? A build automation tool or a package manager Dependencies repository : (https://mvnrepository.com/)
-
Add following line in pom.xml
<packaging>jar</packaging>
-
Class outcome:
-
Further readings:
-
Content contributors: