Question

 

Write a program using JDBC for developing simple CRUD application for billing of a Medical Store. Use appropriate GUI components in your application. Make necessary assumptions.

01 Mar 2026
Answer :
Word Count : 740
A simple CRUD application for billing of a Medical Store using JDBC and Java GUI can be developed by integrating Java Swing for the user interface and JDBC for database connectivity. The application performs Create, Read, Update and Delete operations on medicine records and generates bills for customers. Necessary assumptions include the use of MySQL as the backend database, availability of JDBC driver, and a table named `medicine` with fields such as medicine_id, medicine_name, company, price, quantity and expiry_date. Another table named `bill` may store bill_id, medicine_id, quantity_sold, total_amount and bill_date. The first step is to establish database connectivity. The JDBC API provides classes such as DriverManager, Connection, Statement, PreparedStatement and ResultSet. The MySQL JDBC driver is loaded using Class.forName("com.mysql.cj.jdbc.Driver"). A connection is established using DriverManager.getConnection() by passing database URL, username and password. Proper exception handling using try-catch blocks is necessary to handle SQLExceptions. The GUI can be developed using Swing components such as JFrame, JLabel, JTextField, JButton, JTable, JScrollPane and JPanel. The main frame titled “Medical Store Billing System” contains input fields for Medicine ID, Medicine Name, Company, Price, Quantity and Expiry Date. Buttons ____ _______ __________ ___ _______ _____ __________ ____ ___.
___ ________ _________ __________ ________ ________ __________ ______ ______.
________ _______ ______ ________ ________ _________ _________.
__________ ___ ______ _______ __________ _____ ___ _______.
___ ______ _________ ____ ___.
_______ ______ ______ __________ _______ _____ ______ ______ ______.
______ ___ ________ __________ ____ _______ ________ _____ ____ ____ _________.
______ ___ ________ _________ _________ _________ ___.
__________ ________ ________ _________ ________ ______ _____ ___ ____ _______.
______ ____ ______ ______ _____ ___ ___.
__________ ___ _____ ____ ______.
_____ _____ _______ ________ _______ ___ ______ _________.
_____ ______ ______ _________ ____.
______ __________ ________ _________ ____ _________ _______ ____ ______.
________ ___ _____ ______ ________ _____ ______ ____ ____ _________.
___ ___ _________ ______ ___ ____ _________ __________ _____.
________ _______ _____ ___ ________ ________ ______ ____ _________.
___ ________ _______ ___ ______ _________ _____.
_______ _____ ______ _________ _________ __________ _____ _______ ______ ___ ___ _____.
_____ _______ _________ _____ _______ ________ ________ ___ _________.
___ _________ ____ ___ _______ _________ ________ _____ ____ ____ ____.
______ ____ _____ _____ ____ _________ ____.
_________ ___ ________ ________ ________.
____ ________ _________ _________ ___ _________.
________ ___ ________ ____ ____ _______ ___ _________ __________ ____ ___.
___ ___ ___ ______ ___ _____ ______ _____ __________.
__________ ________ __________ ________ ____ __________ ___ ______.
____ _________ ____ ________ ________ _____ ___.
_________ _____ ______ ________ ___ ______ _____.
________ ___ ________ _____ ___.
___ _________ ________ ______ ____ _______.
______ _________ ______ _____ ____ ____ ____ ____ _________ ___.
______ ________ ___ _________ _________ _______ ___ __________ ___ __________ __________.
___ ________ ____ _______ ______ ______ ________ _______.
___ _______ ____ _______ _______ _________ _________ ___ ________ ___ _______ _____.
__________ ___ _______ ______ ___ ____ _____.
________ _____ _______ ___ _____ ______ ____ _____ ________ ______.
_________ _______ ________ _____ ________ ______ ___.
________ ______ ____ ______ _______ _____.
___ _______ ______ ______ ___ ______ ___ __________ _______.
__________ _________ ________ _______ ________.
_________ _________ _______ _______ ___ _______ ________ ____ _______ __________ ________ ____.
____ ______ _____ _____ _________ ________.
__________ _____ ______ ________ ________ ________ __________ _________ _______ ______ _____ ____.
__________ _________ ______ _______ ____ _______ ___ _____ _______ _________ _________ ____.
______ ____ __________ _____ ____ __________.
_________ __________ ________ _____ ___ ______.
____ ___ _____ ________ ____ ____.
______ _______ ______ _____ ________ _________ _______.
_____ _________ ________ ____ __________ _____ _________ ________ _________ _____.
_________ ____ _________ ____ ___ _____ __________ _______ ___ ____ _________.
_______ ________ _________ __________ _____.
___ ________ ___ _____ _____ __________ ____ ________ _________ __________.
_______ _________ ___ _______ ______ _____ _______.
____ _____ ____ ____ _____.
_____ ___ ____ _______ ________ __________.
________ ______ _________ ________ _________ ________ __________ _____ ________ _____ ________ __________.
___ ____ _________ __________ _________ _______ _____ __________ _____.
___ ______ _______ _________ _____ __________ _______ ______ ______ ________ ____ ________.
___ _______ _____ ___ _________ ______ __________ ______ ___ __________ __________.
_____ _________ ___ _________ ________ _________ ________ _____ _______.
________ ___ _____ ___ ___ ___ _______ _______.
_______ _____ __________ _________ ____ ___.
____ _____ _____ _____ ____ ___ ______ _________.
__________ ______ ____ _______ ______ _________.
_____ ___ _____ ___ _________ ________ _____ __________ ____ _________.
_______ __________ ________ _________ ___ _______ _____.
______ ____ ____ _________.
Get Full Answer on WhatsApp
IGNOU NEWS
Assignment Submission Last Date Extended Till 30 June 2026 Click Here★★★IGNOU June 2026 TEE Date Sheet Released Click Here★★★
Top
📞
Call Support Instant phone assistance  Write a program using JDBC for developing simple CRUD applic
🟢
WhatsApp Chat Fast live messaging
Email Us Business enquiries & support