Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Objectives: The objective of this assignment isto provide hands on experience of

ID: 3618947 • Letter: O

Question

Objectives:

The objective of this assignment isto provide hands on experience of using

§         DatabaseConnectivity in Java

§         EventHandling in Java

Guidelines:

§         Code shouldbe properly aligned and well commented.

§         Follow javanaming conventions while writing class names, variables name,functions name etc



Problem Statement:

You are required to make a car registration form (As madein # 2, ). You will take the values from the user and savethese into MS Access Database.




Details:

First your program will display a GUI form. As shownbelow    



Then user will enter the information related to his car.



Then user will click save, The Records will be saved in thedatabase.

Note3: You can use layout as null and the placelabels and text fields accordingly.

Note4: No need to worry if you are unableto make the GUI of the form 100% according to the about figure. Butall the elements should be there.

Explanation / Answer

x.P5e="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; list-style-type: none; list-style-position: initial; list-style-image: initial; " />import java.awt.*; import java.awt.event.ActionEvent; import java.io.*; import javax.swing.*; import java.sql.*; public class CRegistration {     private static JTextField eNumberTxt ;     private static   JTextField modelTxt ;     private static   JTextField makerTxt ;     private static   JTextField ownerTxt;     private static void createAndShowGUI() {         //Create and set up the window.         JFrame frame = new JFrame("Car Regtistration");         frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);         JFrame.setDefaultLookAndFeelDecorated(true);                //textfields and labels          eNumberTxt = new JTextField();          modelTxt = new JTextField();          makerTxt = new JTextField();          ownerTxt = new JTextField();         JLabel eNumberLabel = new JLabel("Engine Number");