Registration Form Windows Desktop Application built on Eclipse Window Builder
- After optimizing the code here is the updated app:
- Latest UI update, including the Exit button removal, instead Exit is now available in the File menu:
Java Swing
application that implements a user registration form. It uses various Swing components such asJFrame
,JPanel
,JLabel
,JTextField
,JRadioButton
,JButton
,JTable
,JComboBox
, etc. to create a graphical user interface.- The application allows users to register by entering their personal information such as name, address, age, gender, mobile number, email, username, and password. Users can also view the registered users' information in a table and perform operations like deleting records.
- The main class in the code is
RegistrationForm
, which extendsJFrame
and serves as the main window for the application. It contains methods for handling user interactions, database operations, and GUI setup. - Here's a brief overview of the code:
- The
main
method creates an instance of theRegistrationForm
class and makes it visible. - The
RegistrationForm
class defines the main JFrame and sets up the user interface components. - The
clock
method is used to display the current time. - The
fillComboBox
method retrieves data from the database and populates thecomboBoxName
JComboBox component with the names of registered users. - The
RegistrationForm
constructor sets up the main frame, menu bar, labels, text fields, radio buttons, buttons, table, scroll pane, and event listeners. - The event listeners handle actions such as registering a user, clearing the form, loading data from the database, deleting records, etc.
- The database connection and CRUD operations are performed using
JDBC
(Java Database Connectivity) with a MySQL database.
- The