Skip to content

Bishal789/JavaFX-Basics-Application-Report

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FX Mini Studio

Java Badge JavaFX Badge

FX Mini Studio is a JavaFX desktop application demonstrating layouts, binding, graphics, images, fonts, and a reusable ClockPane component. Built as Lab 1 Assignment for JavaFX Basics.


Table of Contents


Overview

FX Mini Studio is a multi-tabbed JavaFX application with:

  1. Layout Playground – BorderPane, GridPane, FlowPane layouts.
  2. Graphics & Binding – Shapes, property binding, rotation, styling, animations.
  3. Images & Fonts – Image loading with ImageView, custom fonts, resizing.
  4. Clock Widget – Reusable ClockPane with start/stop, style toggle, and bindable properties.

Features

Layout Playground

  • BorderPane:
    • Top HBox: Label, TextField, Add Button → adds to ListView
    • Center: ListView
    • Right: VBox with ComboBox (themes) and CheckBox (wrap toggle)
  • GridPane: 2×2 form (Name, Email) + Submit button (prints to console)
  • FlowPane: Buttons 1–6 demonstrating auto-wrap layout

Graphics & Binding

  • Circle centered in resizable Pane
  • Slider → uni-directional binding
  • TextField ↔ Label → bi-directional binding
  • Rotation slider and pulse animation
  • Color ComboBox to dynamically change circle color

Images & Fonts

  • ImageView with adjustable width (slider)

  • Preserves aspect ratio

  • Custom header font

  • Robust error handling if file is missing

Reusable Component: ClockPane

  • Analog clock with hour, minute, second hands

  • Timeline updates every second

  • Start / Stop buttons

  • Light/Dark toggle

  • Bindable properties: hour, minute, second, running, darkMode

  • Fully reusable in any container

Code Quality & UX

  • Clean OOP design, meaningful names, Javadoc for public methods

  • Responsive layout

  • Graceful error handling

Bonus

  • External CSS for themes

  • Secondary Stage: About dialog or preview window

Requirements

  • Java JDK: 17+

  • JavaFX SDK: 22+

  • IDE: IntelliJ IDEA / Eclipse with JavaFX configured

  • OS: Windows, macOS, Linux

Installation

  1. Clone the repository:

    • git clone
  2. Open project in IDE

  3. Configure JavaFX SDK

  4. Ensure resource folder contains:

    • src/main/resources/image/sample.png

Running the Application

  1. IntelliJ IDEA

    • Open HelloApplication.java

    • Right-click → Run

  2. Eclipse

    • Import project

    • Add JavaFX SDK to build path

    • Run HelloApplication.java

  3. Gradle / Maven

  • Configure JavaFX dependencies

  • Run using gradle run or mvn javafx:run

Resources

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published