0% found this document useful (0 votes)
14 views25 pages

Pro Report.40 and Technology Admission Result

The document is a project report for a Hospital Management System submitted by students Hariharan M. and Ajay Kumar S. as part of their Bachelor of Engineering degree in Computer Science and Engineering. It outlines the objectives of the system, which include improving hospital operations, patient care, and administrative efficiency through automation and data management. The report includes sections on system analysis, design, implementation, testing, and validation, emphasizing the importance of effective hospital management for enhancing patient outcomes and operational efficiency.

Uploaded by

logeshraja006
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)
14 views25 pages

Pro Report.40 and Technology Admission Result

The document is a project report for a Hospital Management System submitted by students Hariharan M. and Ajay Kumar S. as part of their Bachelor of Engineering degree in Computer Science and Engineering. It outlines the objectives of the system, which include improving hospital operations, patient care, and administrative efficiency through automation and data management. The report includes sections on system analysis, design, implementation, testing, and validation, emphasizing the importance of effective hospital management for enhancing patient outcomes and operational efficiency.

Uploaded by

logeshraja006
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/ 25

HOSPITAL MANAGEMENT SYSTEM

A PROJECT REPORT

Submitted by

HARIHARAN.M(REG.NO:953723104038)

AJAY KUMAR.S(REG.NO:953723104007)

in partial fulfillment for the award of the degree

of

BACHELOR OF ENGINEERING

IN

COMPUTER SCIENCE AND ENGINEERING

AAA COLLEGE OF ENGINEERING AND TECHNOLOGY


SIVAKASI

ANNA UNIVERSITY:: CHENNAI 600 025

MAY 2025

ANNA UNIVERSITY: CHENNAI 600 025


BONAFIDE CERTIFICATE

Certified that this project report “HOSPITAL MANAGEMENT SYSTEM” is the


bonafide work of “M.HARIHARAN(REG.NO:953723104038),AJAY
KUMAR.S(REG.NO:953723104007)” who carried Out the project work under my
supervision.

SIGNATURE SIGNATURE
Dr. J. Hemalatha, M.E., Ph.D., Ms. K. Anuradha, M.E.,

HEAD OF THE DEPARTMENT SUPERVISOR


Professor Assistant Professor
Computer Science & Engineering Computer Science & Engineering

AAA College of Engg. & Tech., AAA College of Engg. & Tech.,
Sivakasi – 626 005 Sivakasi – 626 005
Virudhunagar District Virudhunagar District

Submitted for the project viva-voce examination to be held on _______________

INTERNAL EXAMINER EXTERNAL EXAMINER

ii
ACKNOWLEDGEMENT

First and foremost, we praise and thank “The Almighty”, the lord of all
creations, who by his abundant grace has sustained us and helped us to work on
this project successfully.

We really find unique pleasure and immense gratitude in thanking our


respected management members, who is the backbone of our college.

A deep bouquet of thanks to respected Principal Dr. M. Sekar, M.E., Ph.D., for
having provided the facilities required for our project.

We sincerely thank our Head of the Department Dr. J. Hemalatha, M.E., Ph.D.,
Professor & Head, Department of Computer Science and Engineering, for her
guidance and support throughout the project.

We extremely thank our project coordinator, Ms. K. Anuradha M.E.,


Associate Professor, Department of Computer Science and Engineering, who
inspired us and supported us throughout the project.

We also thank our guide Ms. K. Anuradha, M.E., Assistant Professor,


Department of Computer Science and Engineering for her valuable guidance and
it is great privilege to express our gratitude to her.

We extend our heartfelt thanks and profound gratitude to all the faculty
members of Computer Science and Engineering department for their kind help
during our project work.

We also thank our parents and our friends who had been providing us with
constant support during the course of the project work.

iii
ABSTRACT

This Hospital Management System aims to streamline hospital operations, improve patient
care, and enhance administrative efficiency. The system manages patient information,
medical records, appointments, billing, and staff details, providing a comprehensive
solution for hospital management. By automating manual processes and improving data
accuracy, the system enhances patient care and reduces administrative burdens.This project
aims to design and develop a Hospital Management System (HMS) to streamline hospital
operations, improve patient care, and enhance administrative efficiency. The system will
manage patient information, medical records, appointments, billing, and staff details. The
system manages patient information, medical records, appointments, billing, and staff
details, providing a comprehensive solution for hospital management. By automating
manual processes and improving data accuracy, the system enhances patient care and
reduces administrative burdens.This project aims to design and develop a Hospital
Management System

iv
TABLE OF CONTENTS

S. NO TITLE PAGE NO
ABSTRACT 4
LIST OF ABBREVIATIONS Error! Bookmark not defined.
LIST OF FIGURES Error! Bookmark not defined.

1 INTRODUCTION
2 SYSTEM ANALYSIS
3 SYSTEM DESIGN
4 IMPLEMENTATION
5 TESTING AND VALIDATION
6 CONCLUSION

46

v
Introduction

A Hospital Management System (HMS) is a comprehensive software solution


designed to manage hospital operations, patient care, and administrative tasks.
It aims to improve efficiency, reduce costs, and enhance patient satisfaction by
automating manual processes, streamlining workflows, and providing real-
time access to critical information. The HMS typically includes modules for
patient registration, appointment scheduling, medical records management,
billing, and staff management. Hospital Management Introduction Theory
Hospital management involves the planning, organization, and supervision of
hospital operations to ensure the delivery of high-quality patient care.
Effective hospital management is crucial for maintaining patient satisfaction,
improving health outcomes, and optimizing resource utilization. Patient Care:
Providing high-quality medical care and services to patients. : Providing high-
quality medical care and services to patients. Managing hospital resources,
including staff, equipment, and facilities. Overseeing hospital finances,
including budgeting, billing, and revenue cycle management. Overseeing
hospital finances, including budgeting, billing, and revenue cycle
management. Views the hospital as a complex system with interconnected
components.

SYSTEM ANALYSIS

• System Analysis in Hospital Management


• System analysis is a crucial aspect of hospital management, involving the
examination and evaluation of hospital systems, processes, and operations to
identify areas for improvement. By applying system analysis techniques,
hospital administrators can optimize resource allocation, streamline workflows,
and enhance patient care.

• Importance of System Analysis


• Improved Efficiency: System analysis helps identify inefficiencies and
bottlenecks in hospital processes, enabling administrators to implement changes
that improve productivity and reduce waste.
• Enhanced Patient Care: By analyzing hospital systems and processes,
administrators can identify opportunities to improve patient care and outcomes.
• Cost Savings: System analysis can help hospitals reduce costs by identifying
areas of waste and inefficiency.
• Data-Driven Decision Making: System analysis provides administrators with
data-driven insights to inform decision-making and drive quality improvement
initiatives.

• System Analysis Techniques


• Process Mapping: Visualizing hospital processes to identify areas for
improvement.
• Root Cause Analysis: Identifying the underlying causes of problems or issues.
• SWOT Analysis: Evaluating the strengths, weaknesses, opportunities, and
threats facing the hospital.
• Benchmarking: Comparing hospital performance to industry standards or best
practices.

• Applications of System Analysis


• Quality Improvement: System analysis can help hospitals identify areas for
quality improvement and implement changes to enhance patient care.
• Resource Allocation: System analysis can help hospitals optimize resource
allocation, ensuring that resources are allocated efficiently and effectively.
• Workflow Optimization: System analysis can help hospitals streamline
workflows, reducing inefficiencies and improving productivity.
• Strategic Planning: System analysis can inform strategic planning, enabling
hospitals to develop effective plans that align with their goals and objectives.

• Challenges and Limitations


• Complexity: Hospital systems and processes can be complex, making it
challenging to analyze and identify areas for improvement.
• Data Quality: System analysis requires high-quality data, which can be
challenging to obtain in some cases.
• Resistance to Change: Implementing changes based on system analysis findings
can be challenging, particularly if there is resistance from staff or stakeholders.

• By applying system analysis techniques, hospital administrators can drive


quality improvement, optimize resource allocation, and enhance patient care.
However, it's essential to consider the challenges and limitations of system
analysis and develop strategies to address them.
SYSTEM DESIGN

• System Design in Hospital Management


• System design in hospital management involves creating a comprehensive
framework to manage hospital operations efficiently. Here's an overview of the
key components and considerations:

• Key Components
o Patient Registration and Appointment Scheduling: streamlining patient
intake and scheduling processes
o Electronic Medical Records (EMR): storing and managing patient
medical history and treatment plans
o Billing and Inventory Management: handling financial transactions and
inventory control
o Analytics and Reporting: generating insights to inform decision-making

• Design Considerations
o Layered Architecture Pattern: separating the system into presentation,
business logic, data management, and security layers
o Security and Privacy: protecting sensitive patient data and ensuring
compliance with regulatory standards
o User Experience: designing intuitive interfaces for hospital staff and
patients
o Scalability and Flexibility: ensuring the system can adapt to changing
hospital needs

• Development Process
• Planning: defining project goals, objectives, and requirements
• Design: creating a detailed design plan, including system architecture and user
interface
• Implementation: developing and testing the system
• Deployment: rolling out the system to hospital staff and patients
• Maintenance: providing ongoing support and updates

• Benefits
• Improved Efficiency: streamlining hospital operations and reducing
administrative burdens
• Enhanced Patient Care: providing accurate and timely access to patient
information
• Cost Savings: reducing manual errors and optimizing resource allocation

• Technologies Used
• AI and Machine Learning: predictive analytics, patient care
recommendations, and decision support
• Blockchain: secure patient data management and compliance with
regulatory standards¹

IMPLEMENTATION

• Implementation in Hospital Management


• Implementation in hospital management refers to the process of putting
plans, policies, and systems into action to achieve organizational goals
and objectives. Effective implementation is critical to ensuring that
hospital services are delivered efficiently and effectively.

• Key Components
• Strategic Planning: Developing a clear plan that outlines goals,
objectives, and strategies for achieving them.
• Change Management: Managing the implementation process to
minimize disruption and ensure a smooth transition.
• Training and Development: Providing staff with the necessary skills and
knowledge to implement new systems and processes.
• Monitoring and Evaluation: Tracking progress and evaluating the
effectiveness of implemented plans and systems.

• Implementation Challenges
• Resistance to Change: Staff may resist changes to existing processes and
systems.
• Limited Resources: Hospitals may face constraints in terms of budget,
personnel, and technology.
• Complexity: Hospital operations can be complex, making
implementation challenging.
• Regulatory Compliance: Hospitals must comply with various
regulations and standards.

• Best Practices
• Clear Communication: Communicating clearly with staff, patients, and
stakeholders about implementation plans and progress.
• Stakeholder Engagement: Engaging with stakeholders, including staff,
patients, and community members, to ensure their needs are met.
• Flexibility: Being flexible and adaptable during the implementation
process.
• Continuous Improvement: Continuously monitoring and evaluating
implemented plans and systems to identify areas for improvement.

• Benefits
• Improved Efficiency: Effective implementation can lead to improved
efficiency and productivity.
• Enhanced Patient Care: Implementation of best practices and evidence-
based care can lead to improved patient outcomes.
• Increased Staff Satisfaction: Staff who are engaged and empowered
during the implementation process are more likely to be satisfied with
their jobs.
• Better Decision-Making: Data-driven decision-making can lead to better
outcomes and more effective resource allocation.

• By understanding the key components, challenges, and best practices of


implementation in hospital management, healthcare administrators can
develop effective strategies to improve patient care and organizational
performance.

TESTING AND VALIDATION

• Testing and Validation in Hospital Management


• Testing and validation are critical components of hospital management,
ensuring that systems, processes, and technologies are safe, effective,
and compliant with regulatory standards.

• Importance of Testing and Validation


• Patient Safety: Testing and validation help ensure that hospital systems
and processes are designed to prevent errors and adverse events.
• Quality Improvement: Testing and validation enable hospitals to
identify areas for improvement and optimize care delivery.
• Regulatory Compliance: Hospitals must comply with various
regulations and standards, and testing and validation help ensure that
these requirements are met.
• Risk Management: Testing and validation help hospitals identify and
mitigate risks associated with new systems, processes, and technologies.

• Types of Testing and Validation


• Functional Testing: Verifying that systems and processes function as
intended.
• Usability Testing: Evaluating the user experience and ensuring that
systems are intuitive and easy to use.
• Performance Testing: Assessing the performance of systems and
processes under various conditions.
• Security Testing: Identifying vulnerabilities and ensuring that systems
and data are secure.

• Best Practices
• Develop a Testing Plan: Creating a comprehensive testing plan that
outlines the scope, approach, and timeline for testing.
• Involve Stakeholders: Engaging with stakeholders, including staff,
patients, and vendors, to ensure that testing is thorough and effective.
• Use Realistic Scenarios: Using realistic scenarios and data to simulate
real-world conditions and identify potential issues.
• Document Results: Documenting test results and identifying areas for
improvement.

• Benefits
• Improved Patient Safety: Testing and validation help ensure that
hospital systems and processes are designed to prevent errors and
adverse events.
• Enhanced Quality of Care: Testing and validation enable hospitals to
identify areas for improvement and optimize care delivery.
• Reduced Risk: Testing and validation help hospitals identify and
mitigate risks associated with new systems, processes, and technologies.
• Increased Efficiency: Testing and validation can help hospitals
streamline processes and reduce waste.

• By prioritizing testing and validation, hospitals can ensure that their


systems, processes, and technologies are safe, effective, and compliant
with regulatory standards, ultimately improving patient care and
outcomes.

CONCLUSION

• Conclusion in Hospital Management


• Effective hospital management is crucial for delivering high-quality
patient care, optimizing resource utilization, and ensuring the financial
sustainability of healthcare organizations.
• By understanding the key components, challenges, and best practices of
hospital management, healthcare administrators can develop strategies
to improve patient outcomes, enhance operational efficiency, and drive
innovation.
• Key Takeaways
• Patient-Centered Care: Prioritizing patient needs and preferences is
essential for delivering high-quality care.
• Strategic Planning: Developing a clear strategic plan helps hospitals
align their goals and objectives with community needs.
• Operational Efficiency: Optimizing hospital operations and
streamlining processes can improve productivity and reduce waste.
• Quality Improvement: Continuously monitoring and evaluating care
delivery helps hospitals identify areas for improvement.

• Future Directions
• Technology Integration: Leveraging technology, such as electronic
health records and telemedicine, can enhance care delivery and improve
patient outcomes.
• Data-Driven Decision Making: Using data analytics to inform decision-
making can help hospitals optimize resource allocation and improve
quality.
• Collaboration and Partnerships: Building partnerships with other
healthcare organizations and community stakeholders can help
hospitals address complex healthcare challenges.

• Conclusion
• Effective hospital management requires a multifaceted approach that
prioritizes patient-centered care, strategic planning, operational
efficiency, and quality improvement.
• By understanding the key components and best practices of hospital
management, healthcare administrators can develop strategies to
improve patient outcomes, enhance operational efficiency, and drive
innovation in healthcare delivery.
PROGRAM:

LOGIN PAGE:
{

JTextField textField;
JPasswordField jPasswordField;
JButton b1,b2;

Login(){

JLabel namelabel = new JLabel("Username");


namelabel.setBounds(40,20,100,30);
namelabel.setFont(new Font("Tahoma",Font.BOLD,16));
namelabel.setForeground(Color.BLACK);
add(namelabel);

JLabel password = new JLabel("Password");


password.setBounds(40,70,100,30);
password.setFont(new Font("Tahoma",Font.BOLD,16));
password.setForeground(Color.BLACK);
add(password);

textField = new JTextField();


textField.setBounds(150,20,150,30);
textField.setFont(new Font("Tahoma",Font.PLAIN,15));
textField.setBackground(new Color(255,179,0));
add(textField);

jPasswordField = new JPasswordField();


jPasswordField.setBounds(150,70, 150,30);
jPasswordField.setFont(new Font("Tahoma",Font.PLAIN,15));
jPasswordField.setBackground(new Color(255,179,0));
add(jPasswordField);

ImageIcon imageIcon = new


ImageIcon(ClassLoader.getSystemResource("icon/login.png"));
Image i1 =
imageIcon.getImage().getScaledInstance(500,500,Image.SCALE_DEFAULT);
ImageIcon imageIcon1 = new ImageIcon(i1);
JLabel label = new JLabel(imageIcon1);
label.setBounds(320,-30,400,300);
add(label);
b1 = new JButton("Login");
b1.setBounds(40,140,120,30);
b1.setFont(new Font("serif",Font.BOLD,15));
b1.setBackground(Color.BLACK);
b1.setForeground(Color.white);
b1.addActionListener(this);
add(b1);

b2 = new JButton("Cancel");
b2.setBounds(180,140,120,30);
b2.setFont(new Font("serif",Font.BOLD,15));
b2.setBackground(Color.BLACK);
b2.setForeground(Color.white);
b2.addActionListener(this);
add(b2);

getContentPane().setBackground(new Color(109,164,170));
setSize(750,300);
setLocation(400,270);
setLayout(null);
setVisible(true);

}
@Override
public void actionPerformed(ActionEvent e) {
if (e.getSource() == b1){
try{
conn c = new conn();
String user = textField.getText();
String Pass = jPasswordField.getText();

String q = "select * from login where ID = '"+user+"' and PW =


'"+Pass+"'";
ResultSet resultSet = c.statement.executeQuery(q);

if (resultSet.next()){
new Reception();
setVisible(false);
}else {
JOptionPane.showMessageDialog(null,"Invalid");
}
}catch (Exception E){
E.printStackTrace();
}

}else {
System.exit(10);
}

public static void main(String[] args) {


new Login();
}

OUTPUT:
NEW PATIENT:

package hospital.management.system;

import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.ResultSet;
import java.util.Date;

public class NEW_PATIENT extends JFrame implements ActionListener {


JComboBox comboBox;
JTextField textFieldNumber, textName, textFieldDisease, textFieldDeposite;
JRadioButton r1, r2;
Choice c1;
JLabel date;
JButton b1 ,b2;

NEW_PATIENT(){

JPanel panel = new JPanel();


panel.setBounds(5,5,840,540);
panel.setBackground(new Color(90, 156, 163));
panel.setLayout(null);
add(panel);

ImageIcon imageIcon = new


ImageIcon(ClassLoader.getSystemResource("icon/patient.png"));
Image image =
imageIcon.getImage().getScaledInstance(200,200,Image.SCALE_DEFAULT);
ImageIcon imageIcon1 = new ImageIcon(image);
JLabel label = new JLabel(imageIcon1);
label.setBounds(550,150,200,200);
panel.add(label);

JLabel labelName = new JLabel("NEW PATIENT FORM");


labelName.setBounds(118,11,260,53);
labelName.setFont(new Font("Tahoma",Font.BOLD,20));
panel.add(labelName);

JLabel labelID = new JLabel("ID :");


labelID.setBounds(35,76,200,14);
labelID.setFont(new Font("Tahoma",Font.BOLD,14));
labelID.setForeground(Color.white);
panel.add(labelID);

comboBox = new JComboBox(new String[] {"Aadhar Card","Voter


Id","Driving License"});
comboBox.setBounds(271,73,150,20);
comboBox.setBackground(new Color(3,45,48));
comboBox.setForeground(Color.white);
comboBox.setFont(new Font("Tahoma",Font.BOLD,14));
panel.add(comboBox);

JLabel labelNumber = new JLabel("Number :");


labelNumber.setBounds(35,111,200,14);
labelNumber.setFont(new Font("Tahoma",Font.BOLD,14));
labelNumber.setForeground(Color.white);
panel.add(labelNumber);

textFieldNumber = new JTextField();


textFieldNumber.setBounds(271,111,150,20);
panel.add(textFieldNumber);

JLabel labelName1 = new JLabel("Name :");


labelName1.setBounds(35,151,200,14);
labelName1.setFont(new Font("Tahoma",Font.BOLD,14));
labelName1.setForeground(Color.white);
panel.add(labelName1);

textName = new JTextField();


textName.setBounds(271,151,150,20);
panel.add(textName);

JLabel labelGender = new JLabel("Gender :");


labelGender.setBounds(35,191,200,14);
labelGender.setFont(new Font("Tahoma",Font.BOLD,14));
labelGender.setForeground(Color.white);
panel.add(labelGender);

r1 = new JRadioButton("Male");
r1.setFont(new Font("Tahoma",Font.BOLD,14));
r1.setForeground(Color.white);
r1.setBackground(new Color(109, 164, 170));
r1.setBounds(271,191,80,15);
panel.add(r1);
r2 = new JRadioButton("Female");
r2.setFont(new Font("Tahoma",Font.BOLD,14));
r2.setForeground(Color.white);
r2.setBackground(new Color(109, 164, 170));
r2.setBounds(350,191,80,15);
panel.add(r2);

JLabel labelDisease = new JLabel("Disease :");


labelDisease.setBounds(35,231,200,14);
labelDisease.setFont(new Font("Tahoma",Font.BOLD,14));
labelDisease.setForeground(Color.white);
panel.add(labelDisease);

textFieldDisease = new JTextField();


textFieldDisease.setBounds(271,231,150,20);
panel.add(textFieldDisease);

JLabel labelRoom = new JLabel("Room :");


labelRoom.setBounds(35,274,200,14);
labelRoom.setFont(new Font("Tahoma",Font.BOLD,14));
labelRoom.setForeground(Color.white);
panel.add(labelRoom);

c1 = new Choice();
try {
conn c = new conn();
ResultSet resultSet = c.statement.executeQuery("select * from Room");
while (resultSet.next()){
c1.add(resultSet.getString("room_no"));
}
}catch (Exception e){
e.printStackTrace();
}
c1.setBounds(271,274,150,20);
c1.setFont(new Font("Tahoma", Font.BOLD, 14));
c1.setForeground(Color.WHITE);
c1.setBackground(new Color(3,45,48));
panel.add(c1);

JLabel labelDate = new JLabel("Time :");


labelDate.setBounds(35,316,200,14);
labelDate.setFont(new Font("Tahoma",Font.BOLD,14));
labelDate.setForeground(Color.white);
panel.add(labelDate);

Date date1 = new Date();

date = new JLabel(""+date1);


date.setBounds(271,316,250,14);
date.setForeground(Color.white);
date.setFont(new Font("Tahoma",Font.BOLD,14));
panel.add(date);

JLabel labelDeposite = new JLabel("Deposite :");


labelDeposite.setBounds(35,359,200,17);
labelDeposite.setFont(new Font("Tahoma",Font.BOLD,14));
labelDeposite.setForeground(Color.white);
panel.add(labelDeposite);

textFieldDeposite = new JTextField();


textFieldDeposite.setBounds(271,359,150,20);
panel.add(textFieldDeposite);

b1 = new JButton("ADD");
b1.setBounds(100,430,120,30);
b1.setForeground(Color.WHITE);
b1.setBackground(Color.black);
b1.addActionListener(this);
panel.add(b1);

b2 = new JButton("Back");
b2.setBounds(260,430,120,30);
b2.setForeground(Color.WHITE);
b2.setBackground(Color.black);
b2.addActionListener(this);
panel.add(b2);

setUndecorated(true);
setSize(850,550);
setLayout(null);
setLocation(300,250);
setVisible(true);

@Override
public void actionPerformed(ActionEvent e) {
if (e.getSource() == b1){
conn c = new conn();
String radioBTN = null;
if (r1.isSelected()){
radioBTN = "Male";
}else if (r2.isSelected()){
radioBTN = "Female";
}
String s1 = (String)comboBox.getSelectedItem();
String s2 = textFieldNumber.getText();
String s3 = textName.getText();
String s4 = radioBTN;
String s5 = textFieldDisease.getText();
String s6 = c1.getSelectedItem();
String s7 = date.getText();
String s8 = textFieldDeposite.getText();

try {

String q ="insert into Patient_Info values ('"+s1+"',


'"+s2+"','"+s3+"','"+s4+"', '"+s5+"', '"+s6+"', '"+s7+"', '"+s8+"')";
String q1 = "update room set Availability = 'Occupied' where room_no =
"+s6;
c.statement.executeUpdate(q);
c.statement.executeUpdate(q1);
JOptionPane.showMessageDialog(null, "added Successfully");
setVisible(false);

}catch (Exception E) {
E.printStackTrace();
}
}else {
setVisible(false);
}

public static void main(String[] args) {


new NEW_PATIENT();
}

}
OUTPUT:
ELMPLOYEE DETAILS:

package hospital.management.system;

import net.proteanit.sql.DbUtils;

import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.ResultSet;

public class Employee_info extends JFrame {


Employee_info(){
JPanel panel = new JPanel();
panel.setBounds(5,5,990,590);
panel.setBackground(new Color(109, 164, 170));
panel.setLayout(null);
add(panel);

JTable table = new JTable();


table.setBounds(10,34,980,450);
table.setBackground(new Color(109, 164, 170));
table.setFont(new Font("Tahoma",Font.BOLD,12));
panel.add(table);

try{
conn c = new conn();
String q = "select * from EMP_INFO";
ResultSet resultSet = c.statement.executeQuery(q);
table.setModel(DbUtils.resultSetToTableModel(resultSet));
}catch (Exception e){
e.printStackTrace();
}

JLabel label1 = new JLabel("Name");


label1.setBounds(41,9,70,20);
label1.setFont(new Font("Tahoma",Font.BOLD,14));
panel.add(label1);
JLabel label2 = new JLabel("Age");
label2.setBounds(180,9,70,20);
label2.setFont(new Font("Tahoma",Font.BOLD,14));
panel.add(label2);

JLabel label3 = new JLabel("Phone Number");


label3.setBounds(350,9,150,20);
label3.setFont(new Font("Tahoma",Font.BOLD,14));
panel.add(label3);

JLabel label4 = new JLabel("Salary");


label4.setBounds(550,9,150,20);
label4.setFont(new Font("Tahoma",Font.BOLD,14));
panel.add(label4);

JLabel label5 = new JLabel("Gmail");


label5.setBounds(730,9,150,20);
label5.setFont(new Font("Tahoma",Font.BOLD,14));
panel.add(label5);

JLabel label6 = new JLabel("Aadhar Number");


label6.setBounds(830,9,150,20);
label6.setFont(new Font("Tahoma",Font.BOLD,14));
panel.add(label6);

JButton button = new JButton("BACK");


button.setBounds(350,500,120,30);
button.setBackground(Color.BLACK);
button.setForeground(Color.white);
panel.add(button);
button.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
setVisible(false);
}
});

setUndecorated(true);
setSize(1000,600);
setLocation(350,230);
setLayout(null);
setVisible(true);
}
public static void main(String[] args) {
new Employee_info();
}
}

OUTPUT:
OUTCOMES:

1. Ms. Anuradha K., HARIHARAN.M, AJAY KUMAR.S


“HOSPITAL MANAGEMENT SYSYTEM” , Paper submitted in the proceedings
of journal on

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy