0% found this document useful (0 votes)
35 views5 pages

Final Project

The document describes a Java Swing application designed for managing student information through a graphical user interface (GUI). It features functionalities for inserting, updating, and deleting student records using a JTable and event-driven programming, all without the need for an external database. The application serves as an educational tool for learning GUI programming in Java, with potential for further enhancements.

Uploaded by

invoker26d2
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views5 pages

Final Project

The document describes a Java Swing application designed for managing student information through a graphical user interface (GUI). It features functionalities for inserting, updating, and deleting student records using a JTable and event-driven programming, all without the need for an external database. The application serves as an educational tool for learning GUI programming in Java, with potential for further enhancements.

Uploaded by

invoker26d2
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

INFORMATION

MANAGEMENT

FINAL PROJECT
BSCS -2B

MEMBERS:
CABAIS, JEFREN PAUL A.
YACAPIN NEIL JOHN
GUI
The Java Swing application presented in the code serves as a simple yet functional
student information management system. It provides a graphical user interface (GUI)
that allows users to input, update, and delete student records dynamically. The
program utilizes JDialog, making it a pop-up window rather than a full-fledged
standalone application. This is particularly useful in scenarios where the interface is
meant to be an auxiliary part of a larger system. The constructor initializes the
components of the GUI, ensuring that all the interactive elements are properly set up
before the user interacts with them.

INPUT AREA
At the core of the application is the initComponents method, which organizes the user
interface elements within a JPanel. The interface includes a JTable to display student
data, multiple JTextFields for user input, and three JButtons that allow for different
operations. The table structure consists of five columns: ID, First Name, Last Name,
Email, and Program/Course, enabling structured data entry and retrieval. Labels are
used to guide the user in filling out the form, making the interface intuitive and user-
friendly. The buttons—Insert, Update, and Delete—serve as the main control points
for interacting with the student records.
INSERT, UPDATE, DELETE
AREA The application’s functionality revolves around three key event-handling
methods: jButton1ActionPerformed, jButton2ActionPerformed, and
jButton3ActionPerformed. The first method, tied to the Insert button, captures user
input from the text fields and appends it to the JTable using a DefaultTableModel.
This ensures that data entries are dynamically reflected within the interface. The
second method, triggered by the Update button, allows users to modify existing
records by selecting a row and changing its values. If no row is selected, an error
message is displayed, reinforcing the importance of user validation. Similarly, the
Delete button removes a selected row from the table, preventing accidental deletions
by prompting users to make an explicit selection before proceeding.

A notable feature of the program is its use of a table model to manage data
dynamically. This eliminates the need for external databases, making the application
lightweight and easy to run without additional setup. Furthermore, the implementation
follows best practices by using event-driven programming, ensuring that user actions
are appropriately handled in real time. The clearFields method, though not fully
implemented in the provided code, is designed to reset input fields after an operation,
improving usability.
DASHBOARD
The main method of the program initializes the GUI by setting the Nimbus look and
feel, giving the interface a modern appearance. By invoking
SwingUtilities.invokeLater(), the program ensures that the GUI is created on the event
dispatch thread, which is essential for maintaining a responsive user interface. This
structured approach to GUI development enhances the program’s reliability and
efficiency.

Overall, this Java Swing application demonstrates the fundamentals of GUI-based


CRUD (Create, Read, Update, Delete) operations. It provides a simple yet effective
way to manage student data without requiring an external database. The use of
JDialog, JTable, and event listeners ensures a seamless user experience, making it a
valuable educational tool for learning GUI programming in Java. With minor
enhancements, such as implementing clearFields() and adding data validation, this
application could be further refined into a more robust and practical system.
DATABASE
This database appears to store information about students enrolled in various music
programs. The table consists of the following columns:

id – A unique identifier for each student.


firstName – The student's first name.
lastName – The student's last name.
email – The student's email address.
program/course – The academic program or course the student is enrolled in,

This structure aligns the database with a more formal academic setting.

You might also like