Skip to content

HielSaraiva/project-workshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Workshop with JavaFX and JDBC

General Objective

  • Learn JavaFX application development with JDBC.

  • Know the fundamentals and use of tools.

  • Use Scene Builder to speed up creating JavaFX UIs.

Technologies Used

JavaFX

  • 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

  • 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.

Project Overview

  • The project consists of an application that handles information from sellers and departments in a workshop.

JavaFX MVC

  • 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)

MVC

Views

Home Screen

Home Screen

Tool Bar Options

Registration Option

Home Option

Help Option

Home Option

About Screen

About

Seller Screen

Seller Screen

Enter Seller

Enter Seller

Enter Department

Enter Department

Delete Screen

Delete Screen

Versions

  • Java 21.0.3
  • MySQL Java Connector 8.4.0
  • JavaFX 17.0.11

Install the Tools (MacOS)

Scene Builder

Eclipse

JavaFX SDK

MySQL Connector

Configure the Tools (MacOS)

Eclipse

  1. 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
  2. Reference SceneBuilder in Eclipse:

    • Window -> Preferences -> JavaFX
    • Put the SceneBuilder.app as executable
  3. 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)
  4. 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

About

JavaFX and JDBC Project - Workshop

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published