-
Learn JavaFX application development with JDBC.
-
Know the fundamentals and use of tools.
-
Use Scene Builder to speed up creating JavaFX UIs.
- JavaFX is a multimedia software platform developed by Sun Microsystems based on Java for creating and delivering Rich Internet Application that can run on many different devices.
- Scene Builder is a visual layout tool that lets users quickly design JavaFX application user interfaces, without coding. Users can drag and drop UI components to a work area, modify their properties, apply style sheets, and the FXML code for the layout that they are creating is automatically generated in the background.
- The project consists of an application that handles information from sellers and departments in a workshop.
- JavaFX is designed based on the MVC pattern
- The Model - consists of the domain data and all logic for transforming this data
- The Views - These are the user interaction (UI) screens
- Controllers – These are the classes responsible for handling user interactions with views (handling interaction events with screens)
- Java 21.0.3
- MySQL Java Connector 8.4.0
- JavaFX 17.0.11
- Download Scene Builder
- Download Eclipse
- Download JavaFX SDK
- Download MySQL Connector - Select Platform Independent
-
Install the E(fx)clipse plug-in:
- Help -> Install new Software
- Work with:
http://download.eclipse.org/efxclipse/updates-released/3.4.1/site/
- Select all options and restart Eclipse
-
Reference SceneBuilder in Eclipse:
- Window -> Preferences -> JavaFX
- Put the SceneBuilder.app as executable
-
Create a User Library in Eclipse named JavaFX and other named MySQLConnector:
- Window -> Preference -> Java -> Build Path -> User Libraries -> New
- Add External Jars (Select .jar files from the libraries you downloaded)
-
Configure the build:
- Before you run the project for the first time:
- At the project folder: Run As -> Run Configurations -> VM Arguments
- Copy that to the there, adapting to your JavaFX SDK folder:
--module-path "C:\java-libs\javafx-sdk\lib" --add-modules=javafx.fxml,javafx.controls
- Dismark this option:
Use the -XstartOnFirstThread argument when launching with SWT