0% found this document useful (0 votes)
7 views8 pages

Assignment 02 41220300622

The document outlines an assignment focused on developing a JavaFX GUI application using FXML in NetBeans for the OOP II Lab course. It details the execution environment, user interaction, and layout design, highlighting the successful integration of buttons and event handling. The conclusion emphasizes the learning experience of building a functional JavaFX application.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views8 pages

Assignment 02 41220300622

The document outlines an assignment focused on developing a JavaFX GUI application using FXML in NetBeans for the OOP II Lab course. It details the execution environment, user interaction, and layout design, highlighting the successful integration of buttons and event handling. The conclusion emphasizes the learning experience of building a functional JavaFX application.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

Department of Computer Science and Engineering

Assignment On: JavaFX Application using FXML in NetBeans


Course Title: OOP II Lab Work
Course Code: CSE 3374

Submitted to:
Tousif Hasan Lavlu
Lecturer, Department of Computer Science and Engineering
Northern University Bangladesh

Submitted by:
Abid Raiyan Ayon
Semester: Spring 2025
Section: 8E

ID: 41220300622
JavaFX Application using FXML in NetBeans
Objective:​
To develop a simple JavaFX GUI application using FXML with
multiple buttons and display it using Scene Builder.

Application Running with Zulu JDK


Execution Environment:

●​ The project is compiled and executed using Zulu JDK, a


reliable OpenJDK distribution known for seamless JavaFX
integration.​
●​ The GUI launches successfully, presenting all five buttons
clearly aligned in the center of the application window.​

●​ The interface is interactive, and all user events are processed


smoothly, verifying the correct linkage between FXML and
controller logic.
NetBeans Console Output
Runtime Feedback and User Interaction:

●​ When the JavaFX application is executed from Apache


NetBeans IDE 18, the output console accurately logs each
user action.​
●​ On clicking any button, a corresponding message is printed:​

○​ ✅ Button1 is pressed.​
○​ ✅ Button2 is pressed.​

○​ ✅ Button3 is pressed.​

○​ ✅ Button4 is pressed.​

●​ Clicking the Exit button safely terminates the application,


demonstrating proper event handling and system exit control.
Scene Builder Interface
FXML Layout Design:

●​ The user interface is crafted using JavaFX Scene Builder.​

●​ The layout includes a vertically aligned arrangement of five


buttons:​

○​ Button1​

○​ Button2​

○​ Button3​

○​ Button4​

○​ Exit​
●​ Each button is neatly positioned within an AnchorPane and
linked to specific event handlers via the onAction attribute.​

●​ The visual design ensures simplicity, clarity, and


responsiveness of the user interface.
Conclusion:​
This exercise demonstrates how to build a JavaFX GUI using
FXML and Scene Builder, integrate it in NetBeans, and run the
application successfully.

--x--

You might also like