0% found this document useful (0 votes)
18 views62 pages

Vivek TMS

The document presents a report on the 'Tourism Management System' project submitted by Vivek Kumar Shyarolia for the Bachelor of Computer Applications degree. It details the system's development aimed at improving the booking and management of tourism services using technologies like Java and MS Access. The report includes acknowledgments, an abstract, and outlines the project's objectives, existing system limitations, and proposed features for enhanced efficiency and user experience.

Uploaded by

Anita Negi
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)
18 views62 pages

Vivek TMS

The document presents a report on the 'Tourism Management System' project submitted by Vivek Kumar Shyarolia for the Bachelor of Computer Applications degree. It details the system's development aimed at improving the booking and management of tourism services using technologies like Java and MS Access. The report includes acknowledgments, an abstract, and outlines the project's objectives, existing system limitations, and proposed features for enhanced efficiency and user experience.

Uploaded by

Anita Negi
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/ 62

Tourism Management

System A
Report
On
‘Tourism Management System’

Submitted for partial fulfillment of award


Of

“Bachelor of Computer Applications”


Submitted by:
Vivek Kumar Shyarolia – R210934106337

Under the Supervision


of Prof. Saroj Kumari
Asst. Professor-IT

Institute of Technology and Science


Mohan nagar, Ghaziabad

Batch: 2021 – 2024

1
Bachelors of Computer Application
Tourism Management
System

Certificate

This is to certify that Vivek Kumar Shyarolia has carried out the project work presented in
this report entitled “Tourism Management System” for the award of Bachelor of
Computer Applications from Institute of Technology & Science, Mohan Nagar,
Ghaziabad, under my supervision. The report embodies result of original work and
studies carried out by Student himself and the contxents of the report do not form
the basis for the award of any other degree to the candidate or to anybody else.

Date: (Prof. Saroj Kumari)

Assistant Professor-IT
Institute of Technology & Science
Mohan Nagar, Ghaziabad

2
Bachelors of Computer Application
Tourism Management
System

ACKNOWLEDGEMENT
We extend our sincere appreciation to all those whose contributions have been
instrumental in the success of our group project. Without the support, guidance, and
collaboration of these individuals, our project would not have been possible.

First and foremost, we express our gratitude to our Director, Dr. Sunil Kumar
Pandey, Chairperson, Dr. Vidhusi Singh (BCA), Coordinator, Prof. Barkha Kakkar
(BCA), and Project Supervisor/Mentor, Prof. Saroj Kumari. Their valuable insights,
guidance, and encouragement were pivotal throughout the project, and we are
thankful for their dedication and expertise that enabled us to achieve our goals.

A special thanks to our fellow team members


whose hard work, commitment, and collaboration significantly contributed to the
success of the project. Each team member brought unique skills, perspectives, and
ideas, enriching our collective work.

Once again, we sincerely thank everyone who played a role in the success of our
group project.

Name of the Student:


Roll No.:

Signature:

3
Bachelors of Computer Application
Tourism Management
System

Abstract

This project delves into the development of a Tourism Management System (TMS)
designed to enhance the efficiency and user experience of booking and managing
tourism-related services. Utilizing a combination of Java, NetBeans IDE, MS
Access for the database, and GlassFish/Tomcat server for deployment, the system
offers a robust platform for users to book hotel stays and travel packages
seamlessly.

The core functionality of the TMS encompasses a user-friendly interface for both
customers and administrators. Customers can register, log in, search for available
hotels and packages, and make bookings with ease. Administrators, on the other
hand, can manage user accounts, handle bookings, and update available services.

The project commenced with a detailed system study, examining existing manual
processes and identifying key areas for automation and improvement. Following
this, the design and implementation phases focused on creating a scalable and
secure application, incorporating features such as real-time availability checks,
booking management, and feedback mechanisms.

The Tourism Management System exemplifies the potential of software


applications in streamlining operations and enhancing user satisfaction in the
tourism industry. Future enhancements could include the integration of advanced
analytics for better decision-making and the incorporation of more personalized
user experiences through AI-driven recommendations.

4
Bachelors of Computer Application
Tourism Management
System

Table of Content

Acknowledgment...................................................................................................i
Abstract.................................................................................................................ii
List of Figures......................................................................................................iii
List of Abbreviations...........................................................................................iv
List of Tables........................................................................................................v
1. Introduction.......................................................................................................1-16
1.1. DBMS, Sql, Java, JDBC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 -12
1.2. Project Aim and Obejectives...................................................................13
1.3. System Study.....................................................................................13-14
1.4. Purpose....................................................................................................14
1.5. Scope.......................................................................................................14
1.6. Need for Purposed System......................................................................15
1.7. Features and Benefits..............................................................................15
1.8. Feasiblity Study . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ....15-16
1.9. Operating Environment...........................................................................16
2. Software Specification Document...................................................................17-20
2.1. Introduction.............................................................................................17
2.2. Abbrevations...........................................................................................17
2.3. Overall Description.................................................................................18
2.4. User Classes and Characterstics..............................................................18
2.5. User Interface..........................................................................................19
5
Bachelors of Computer Application
Tourism Management
System
2.6. Operating Environment...........................................................................19
2.7. Technologies to be Used.........................................................................19
2.8. Hardware Interface..................................................................................19
2.9. Design and Implementation Constraints.................................................19
2.10. Minimum Hardware Requirements.........................................................20
3. System Design................................................................................................21-23
3.1. ER Diagram............................................................................................21
3.2. Schema diagram......................................................................................22
3.3. Data Flow Diagram.................................................................................23
4. Implementation..............................................................................................24-102
4.1. Database Description.........................................................................24-26
4.2. Snapshots...........................................................................................27-31
4.3. Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ......................31-51
5. Testing..................................................................................................................52
6. Conclusion.......................................................................................................53-54
7. Future Scope...................................................................................................55-56
8. Bibliography.........................................................................................................57

6
Bachelors of Computer Application
Tourism Management
System

List of Figures

Figure 1 Database Management Systen................................................................9

Figure 2 Features of Java......................................................................................11

7
Bachelors of Computer Application
Tourism Management
System

List of Abbreviations

▪ DBMS: Database Management System


▪ SQL: Structured Query Language
▪ JDBC: Java Database Connectivity
▪ IDE: Integrated Development Environment
▪ TMS: Tourism Management System
▪ GUI: Graphical User Interface
▪ API: Application Programming Interface
▪ HTML: HyperText Markup Language
▪ CSS: Cascading Style Sheets
▪ ER Diagram: Entity-Relationship Diagram
▪ RAM: Random Access Memory
▪ RMI: Remote Method Invocation
▪ EJB: Enterprise JavaBeans
▪ JVM: Java Virtual Machine
▪ MySQL: My Structured Query Language
▪ HTTP: HyperText Transfer Protocol
▪ HTTPS: HyperText Transfer Protocol Secure

8
Bachelors of Computer Application
Tourism Management
System

List of Tables

Table 1 Advantages and Disadvantages of DBMS..............................................10

Table 2 Account Table.........................................................................................23

Table 3 Customer Table.......................................................................................24

Table 4 Hotel Table..............................................................................................24

Table 5 Book Hotel Table....................................................................................25

Table 6 Book Package Table................................................................................25

9
Bachelors of Computer Application
Tourism Management
System Chapter: 1
Introduction

1. Introduction

1.1. Database Management System (DBMS)


A Database Management System (DBMS) is essential for the efficient handling
of data in modern applications. A database is a collection of related data, and
data represents recordable facts. For example, data about marks obtained by
students can be used to determine toppers and average marks. A DBMS stores
data in such a way that it becomes easier to retrieve, manipulate, and produce
information.

1.1.1. Characteristics of DBMS


▪ Traditionally, data was organized in file formats. The advent of DBMS was
to overcome the deficiencies in traditional data management.
▪ A modern DBMS has the following characteristics:
▪ Real-world entity representation
▪ Relation-based tables
▪ Isolation of data and application
▪ Reduction of redundancy
▪ Consistency
▪ Query language support
▪ ACID properties (Atomicity,
Consistency, Isolation, Durability)
▪ Multiple views
▪ Multi-user and concurrent access
▪ Security

Fig 1

10
Bachelors of Computer Application
Tourism Management
System

1.1.2. Advantages and Disadvantages of DBMS


Table 1

Advantages of DBMS Disadvantages of DBMS

Reduction of Redundancy: Minimizes


Complexity: Requires sophisticated hardware
duplication of data, reducing storage
and software and trained personnel.
costs and improving data integrity.

Data Sharing: Multiple users can share Cost: High initial investment for hardware,
the same database simultaneously. software, and training.

Data Security: Provides high levels of Performance: Can be slower than file-based
security to protect data from systems for simple operations due to the
unauthorized access. overhead of managing the database.

Data Consistency: Ensures that data Maintenance: Regular updates and maintenance
remains consistent and accurate across are required to ensure efficient performance and
the database. security.

Resource Intensive: Consumes significant


Backup and Recovery: Facilitates
system resources, which can impact other
automatic backup and recovery of data.
applications.

1.2. SQL
SQL (Structured Query Language) is a language used to operate databases,
including creating and deleting databases, fetching and modifying rows, etc.
SQL is the standard language for relational database systems like MySQL, MS
Access, Oracle, Sybase, Informix, Postgres, and SQL Server.

11
Bachelors of Computer Application
Tourism Management
System

1.3. Java
Java is a programming language created by James Gosling from Sun
Microsystems in 1991. Java is designed to be platform-independent, allowing
programs written in Java to run on any operating system. Over the years, new
and enhanced versions of Java have been released, with Java 1.8 (Java 8) being a
significant version.

1.3.1. Main Features of Java


• Platform Independent: Java programs can run on any platform that has a
Java Virtual Machine (JVM).
• Object-Oriented: Java uses object-oriented programming
principles, including abstraction, encapsu lation,
inheritance, and polymorphism.
• Robust: Emphasis on early error checkin g
and runtime checking makes Java robust.
Features like garbage collection and
exception handling enhance its
reliability.
• Secure: Java's design avoids common
security issues found in other languages ,
such as buffer overflows.
• Distributed: Java supports distri buted
computing through technologies like Fig 2

RMI and EJB.


• Multithreading: Java supports concurrent execution of multiple parts of a
program to maximize CPU utilization.
• Portable: Java code can be executed on any platform without modification.

1.4. JDBC
Java Database Connectivity (JDBC) is an API for connecting and executing
queries on a database. It provides methods to query and update data in a
12
Bachelors of Computer Application
Tourism Management
System
relational database and is an essential part of Java Standard Edition

13
Bachelors of Computer Application
Tourism Management
System

2. Project Aim and Objectives


The project aims and objectives that will be achieved upon completion of the
Tourism Management System project are discussed in this section.

2.1. The aims and objectives are as follows:


▪ Tourism Website for Travelers: Develop a comprehensive tourism
management platform.
▪ Traveler Registration and Login: Facilitate new traveler registrations and
provide a secure login for existing users.
▪ Search and Book Tours: Allow travelers to search for available tours and
book them.
▪ Real-Time Availability Check: Implement a feature to check the
availability status of tours.
▪ Online Notice Board: Provide an online notice board for updates and
information about events and promotions.

3. System Study
Information systems projects originate from many reasons: to achieve greater
speed in processing data, better accuracy and improved consistency, faster
information retrieval, integration of business areas, reduced cost, and better
security. Project proposals often originate from department managers, senior
executives, and system analysts, sometimes driven by external requirements
such as government regulations. When a request is made, the first system
activity, the preliminary investigation, begins. This includes request
clarification, feasibility study, and request approval.

3.1. Existing System


▪ Manual Processes: Current systems often involve manual paper work
for booking and managing tours.
▪ In-Person Visits: Users have to visit offices to book tours and get
information.

14
Bachelors of Computer Application
Tourism Management
System
▪ Limited Feedback Mechanism: There is no efficient way for users to
provide feedback online.

3.2. Drawbacks in the Existing Systems


▪ Time Consuming: Processes are slow and require significant time
investment.
▪ Expensive: Manual processes and in-person visits incur additional costs.
▪ Inconvenient: Users need to travel to offices for bookings and inquiries.

3.3. Need for a New System


▪ Automation: A computerized system to automate and streamline
tourism management processes.
▪ Efficiency: Time-efficient mechanisms for managing traveler details,
profiles, and feedback.
▪ Accessibility: Easier and more convenient access to information and
booking services.
▪ Security: Enhanced security for user data through login authentication.

4. Purpose
The Tourism Management System aims to enhance access to tourism
services, improve service continuity and efficiency, and provide a robust
platform for managing online bookings. It aims to link clients to services
effectively and handle intensive booking requirements.

5. Scope
This product has a broad future scope. The Tourism Management System will
be internet-based software developed for Windows and Linux environments.
It will provide secure login functionality to prevent unauthorized access,
ensuring that only authorized users can access the system.

15
Bachelors of Computer Application
Tourism Management
System

6. Need for the Proposed System


The proposed Tourism Management System will be easy to maintain, ready
to run, scalable, affordable, and a reliable cost-saving tool suitable for small,
medium, and large tourism enterprises.

7. Features and Benefits


▪ Security: Provides secure access to users.
▪ Cost-Effective: Reduces costs associated with manual processes.
▪ User-Friendly: Requires basic computer knowledge.
▪ Configurable: Extensible application UI design for customization.
▪ Accessibility: Can be used by novice users without technical expertise.
▪ Organizational Integration: Contributes to the overall objectives of the
organization, integrates with existing systems, and operates within current
technological and resource constraints.

8. Feasibility Study
A feasibility study is a focused analysis to answer the following questions:

8.1. Technical Feasibility


▪ Current Technology: Is the project feasible within the limits of current
technology?
▪ Technology Availability: Does the required technology exist and is it
available within resource constraints (budget, schedule)?

8.2. Financial Feasibility


▪ Resource Constraints: Is the project possible given the resource constraints?
▪ Cost-Benefit Analysis: Are the benefits worth the costs? What are the
tangible and intangible savings?

16
Bachelors of Computer Application
Tourism Management
System
▪ Development and Operational Costs: What are the costs involved in
developing and operating the system?

8.3. Operational Feasibility


▪ Urgency and Acceptability: Define the urgency of the problem and the
acceptability of the solution. Will the system be used if developed?
▪ Social and Internal Issues: Consider people-oriented and social issues, such
as manpower problems, labor objections, manager resistance,
organizational conflicts, policies, social acceptability, legal aspects, and
government regulations.

9. Operating Environment

▪ Processor
Required: Intel Core Processor or better

▪ Performance
Operating System: Windows 7, Windows 8, Windows 10, or Linux
Memory: 1GB RAM or more
Hard Disk Space: Minimum 3GB of free space

▪ Software and Technologies


Programming Language:
Java IDE: NetBeans 7.01 or
higher Database: MySQL
Server: GlassFish or Tomcat 7.0 server

17
Bachelors of Computer Application
Tourism Management
System

Chapter: 2
Software Requirement Specification

1. Introduction
1.1. Purpose
The purpose of this document is to describe the requirements and
specifications for the development of a Tourism Management System. It
outlines the functional, behavioral, and nonfunctional requirements of the
system and provides guidelines for system engineers and designers to start
working on the project.

1.2. Intended Audience and Reading Suggestions


All stakeholders involved in the development, implementation, and usage of
the Tourism Management System are the intended audience for this
document. This includes project managers, system engineers, developers,
testers, and end- users such as tourists and administrators.

1.3. Project Scope


The Tourism Management System will include features for managing tour
packages, booking reservations, managing customer information, processing
payments, and generating reports. The scope of the development covers these
features exclusively.

2. Abbreviations
 TMS: Tourism Management System
 GUI: Graphical User Interface
 API: Application Programming Interface
 HTML: HyperText Markup Language
 CSS: Cascading Style Sheets
 ER Diagram: Entity-Relationship Diagram
 RAM: Random Access Memory
18
Bachelors of Computer Application
Tourism Management
System

3. Overall Description

3.1. Product Perspective


The Tourism Management System will serve as a standalone system
responsible for managing tourism services. It will interact with external
systems for payment processing and possibly integrate with travel APIs for
real-time updates on related services.

3.2. Product Features

o Functional Requirements
▪ User registration and authentication
▪ Search and display tour packages
▪ Booking and cancellation of tours
▪ Payment processing
▪ User profile management

o Nonfunctional Requirements
▪ Usability: The system should be easy to navigate and use.
▪ Performance: Response times should be optimized for user interactions.
▪ Security: User data should be encrypted and protected.
▪ Reliability: The system should be available 24/7 with minimal
downtime.

4. User Classes and Characteristics


The users of the Tourism Management System include tourists, tour
operators, and administrators. Tourists will primarily interact with the system
to book tours, while tour operators will manage tour packages and customer
information. Administrators will oversee system operations and manage user
accounts.

19
Bachelors of Computer Application
Tourism Management
System

5. User Interfaces
The user interface will include screens for login, tour search, booking,
payment, and user profile management. It will feature a modern and intuitive
design to enhance user experience.

6. Operating Environment
The Tourism Management System will operate in a web-based environment,
accessible through standard web browsers such as Chrome, Firefox, and
Safari. It will be hosted on a secure server with access to databases for storing
tour and user information.

7. Technologies to be Used:

▪ Programming Language: Java


▪ Database: MySQL
▪ Frontend: HTML, CSS, JavaScript

8. Hardware Interface
The system will require standard hardware components including servers for
hosting the application, storage for databases, and network infrastructure for
communication.

9. Design and Implementation Constraints


The system design should adhere to industry standards for security and data
privacy. Minimum hardware requirements for client and server-side
operations will be specified.

11
Bachelors of Computer Application 0
Tourism Management
System

10. Minimum Hardware Requirements

10.1. Client Side


▪ Browser: Chrome, Firefox, Safari
▪ Processor: Intel Core i3 or equivalent
▪ RAM: 4GB
▪ Disk Space: 100MB

10.2. Server Side


▪ Web Server: Apache Tomcat
▪ Database: MySQL Server
▪ Processor: Intel Xeon or equivalent
▪ RAM: 8GB
▪ Disk Space: 500GB

20
Bachelors of Computer Application
Tourism Management
System Chapter – 3
System Design

ER Diagram :

Fig 3

21
Bachelors of Computer Application
Tourism Management
System

 Schema Diagram:

A database schema is the skeleton structure that represents the logical view of the
entire database. It defines how the data is organized and how the relations among
them are associated. It formulates all the constraints that are to be applied on the
data.
The database schema for the Tourism Management System is designed to manage
various aspects of user accounts, customer information, and booking details for both
packages and hotels.

Account:
username name password security answer

Customer:
username id id_number name gender country address phone email

Book package:
username package persons id id_number phone price

Book Hotel:
username hotel persons days ac food id id_number phone price

Hotel:
hotel cost_per_day food_charges ac_charges

22
Bachelors of Computer Application
Tourism Management
System
 Data Flow Diagram:

Fig 4

23
Bachelors of Computer Application
Tourism Management
System Chapter - 4
Implementation

1. Database Description

The Tourism Management System (TMS) database schema is designed


to manage user accounts, customer information, and bookings for both
packages and hotels.

Below is the detailed structure of each table in the database, including


primary and foreign keys.

1.1. Account Table


Table 2

Field Name Type Key Description


username varchar(30) PK Unique username for the account
name varchar(40) Full name of the user
password varchar(30) User's password
question varchar(100) Security question for password recovery
answer varchar(50) Answer to the security question

24
Bachelors of Computer Application
Tourism Management
System

1.2. Customer Table


Table 3

Field Name Type Key Description


username varchar(30) PK, FK Username linked to the account

id_type varchar(20) Type of identification (e.g., passport, ID card)

number varchar(20) Identification number

name varchar(30) Full name of the customer

gender varchar(15) Gender of the customer

country varchar(20) Country of the customer

address varchar(50) Residential address

phone varchar(20) Contact phone number

email varchar(40) Email address

1.3. Hotels Table


Table 4

Field Name Type Key Description


name varchar(30) PK Name of the hotel
cost_per_day varchar(20) Cost per day for staying at the hotel
food_charges varchar(20) Daily food charges
ac_charges varchar(20) Daily air conditioning charges

25
Bachelors of Computer Application
Tourism Management
System
1.4. Book Hotels Table
Table 5

Field Name Type Key Description


username varchar(30) PK, FK Username linked to the account
name varchar(30) PK, FK Name of the hotel
persons varchar(20) Number of persons
days varchar(20) Number of days of stay
ac varchar(10) Air conditioning preference
food varchar(10) Food preference
id varchar(30) Identification type
number varchar(20) Identification number
phone varchar(20) Contact phone number
cost varchar(20) Total cost of the booking

1.5. Book Package Table


Table 6

Field Name Type Key Description


username varchar(30) PK, FK Username linked to the account
package varchar(40) PK Name of the package
persons varchar(20) Number of persons
id varchar(30) Identification type
number varchar(20) Identification number
phone varchar(20) Contact phone number
price varchar(20) Total price of the package

26
Bachelors of Computer Application
Tourism Management
System

2. Snapshots:

27
Bachelors of Computer Application
Tourism Management
System

28
Bachelors of Computer Application
Tourism Management
System

29
Bachelors of Computer Application
Tourism Management
System

30
Bachelors of Computer Application
Tourism Management
System

31
Bachelors of Computer Application
Tourism Management
System
3. Code:
3.1. Home Page
package travel.management.system;

import java.awt.*;
import javax.swing.*;
import java.awt.event.*;

public class Home extends JFrame


{ String username;
public static void main(String[] args) {
new Home("").setVisible(true);
}

public Home(String username) {


super("Travel and Tourism Management System");
this.username = username;
setForeground(Color.CYAN);
setLayout(null);

ImageIcon i1 = new ImageIcon(ClassLoader.getSystemResource("travel/management/system/icons/


home.jpg"));
Image i2 = i1.getImage().getScaledInstance(1950, 1000,Image.SCALE_DEFAULT);
ImageIcon i3 = new ImageIcon(i2);
JLabel NewLabel = new JLabel(i3);
NewLabel.setBounds(0, 0, 1950, 1000);
add(NewLabel);

JLabel l1 = new JLabel("Travel and Tourism Management System", SwingConstants.CENTER); //


Centering the text
l1.setForeground(Color.WHITE);
l1.setFont(new Font("Tahoma", Font.PLAIN,
55));
l1.setBounds(200, 60, 1000, 50);
NewLabel.add(l1);

JMenuBar menuBar = new JMenuBar();


setJMenuBar(menuBar);

JMenu m1 = new JMenu("CUSTOMER");


m1.setForeground(Color.BLUE);
menuBar.add(m1);
32
Bachelors of Computer Application
Tourism Management
System JMenuItem mi1 = new JMenuItem("ADD CUSTOMER");
m1.add(mi1);

JMenuItem mi2 = new JMenuItem("UPDATE CUSTOMER DETAIL");


m1.add(mi2);

JMenuItem mi3 = new JMenuItem("VIEW CUSTOMER DETAILS");


m1.add(mi3);

JMenuItem mi4 = new JMenuItem("DELETE CUSTOMER DETAILS");


m1.add(mi4);

mi1.addActionListener(new ActionListener()
{ public void actionPerformed(ActionEvent ae)
{
try{
new AddCustomer(username).setVisible(true);
}catch(Exception e ){}
}
});

mi2.addActionListener(new ActionListener()
{ public void actionPerformed(ActionEvent ae)
{
try{
new UpdateCustomer(username).setVisible(true);
}catch(Exception e ){}
}
});

mi3.addActionListener(new ActionListener()
{ public void actionPerformed(ActionEvent ae)
{
try{
new ViewCustomers().setVisible(true);
}catch(Exception e ){}
}
});

mi4.addActionListener(new ActionListener()
{ public void actionPerformed(ActionEvent ae)
{
try{
new DeleteCustomer().setVisible(true);
}catch(Exception e ){}
}
});

33
Bachelors of Computer Application
Tourism Management
System
JMenu m2 = new JMenu("PACKAGES");
m2.setForeground(Color.RED);

34
Bachelors of Computer Application
Tourism Management
System menuBar.add(m2);

JMenuItem mi6 = new JMenuItem("CHECK PACKAGE");


m2.add(mi6);

JMenuItem mi7 = new JMenuItem("BOOK PACKAGE");


m2.add(mi7);

JMenuItem mi5 = new JMenuItem("VIEW PACKAGE");


m2.add(mi5);

mi6.addActionListener(new ActionListener()
{ public void actionPerformed(ActionEvent ae)
{
try{
new CheckPackage().setVisible(true);
}catch(Exception e ){}
}
});

mi7.addActionListener(new ActionListener()
{ public void actionPerformed(ActionEvent ae)
{
try{
new BookPackage(username).setVisible(true);
}catch(Exception e ){}
}
});

mi5.addActionListener(new ActionListener()
{ public void actionPerformed(ActionEvent ae)
{
try{
new ViewPackage(username).setVisible(true);
}catch(Exception e ){}

}
});

JMenu m3 = new JMenu("HOTELS");


m3.setForeground(Color.BLUE);
menuBar.add(m3);

JMenuItem mi8 = new JMenuItem("BOOK HOTELS");


m3.add(mi8);
35
Bachelors of Computer Application
Tourism Management
System
JMenuItem mi9 = new JMenuItem("VIEW HOTELS");

36
Bachelors of Computer Application
Tourism Management
System
m3.add(mi9);
JMenuItem mi10 = new JMenuItem("VIEW BOOKED HOTEL");
m3.add(mi10);

mi8.addActionListener(new ActionListener()
{ public void actionPerformed(ActionEvent ae)
{
new BookHotel(username).setVisible(true);
}
});

mi9.addActionListener(new ActionListener()
{ public void actionPerformed(ActionEvent ae)
{
try{
new CheckHotels().setVisible(true);
}catch(Exception e ){}
}
});

mi10.addActionListener(new ActionListener()
{ public void actionPerformed(ActionEvent ae)
{
try{
new ViewBookedHotel(username).setVisible(true);
}catch(Exception e ){}
}
});

JMenu m4 = new JMenu("DESTINATION");


m4.setForeground(Color.RED);
menuBar.add(m4);

JMenuItem mi11 = new JMenuItem("DESTINATION");


m4.add(mi11);

mi11.addActionListener(new ActionListener()
{ public void actionPerformed(ActionEvent ae)
{
new Destination().setVisible(true);
}
});

JMenu m5 = new JMenu("PAYMENT");


m5.setForeground(Color.BLUE);
37
Bachelors of Computer Application
Tourism Management
System
menuBar.add(m5);
m3.add(mi9);

JMenuItem mi12 = new JMenuItem("PAY USING PAYTM");

38
Bachelors of Computer Application
Tourism Management
System m5.add(mi12);

mi12.addActionListener(new ActionListener()
{ public void actionPerformed(ActionEvent ae)
{
new Payment().setVisible(true);
}
});

JMenu m6 = new JMenu("UTILITY");


m6.setForeground(Color.RED);
menuBar.add(m6);

JMenuItem mi13 = new JMenuItem("NOTEPAD");


m6.add(mi13);

JMenuItem mi14 = new JMenuItem("CALCULATOR");


m6.add(mi14);

mi13.addActionListener(new ActionListener()
{ public void actionPerformed(ActionEvent ae)
{
try{
Runtime.getRuntime().exec("notepad.exe");
}catch(Exception e){ }
}
});

mi14.addActionListener(new ActionListener()
{ public void actionPerformed(ActionEvent ae)
{
try{
Runtime.getRuntime().exec("calc.exe");
}catch(Exception e){ }
}
});

JMenu m7 = new JMenu("ABOUT");


m7.setForeground(Color.BLUE);
menuBar.add(m7);

JMenuItem mi15 = new JMenuItem("ABOUT");


m7.add(mi15);

mi15.addActionListener(new ActionListener()
{ public void actionPerformed(ActionEvent ae)
{
new About().setVisible(true);
39
Bachelors of Computer Application
Tourism Management
System }
});

31
Bachelors of Computer Application 0
Tourism Management
System
setExtendedState(JFrame.MAXIMIZED_BOTH);
setVisible(true);
getContentPane().setBackground(Color.WHITE);
}
}

3.2. Login Page


package travel.management.system;

import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
import java.sql.*;

public class Login extends JFrame implements

ActionListener{ private JPanel panel;


private JTextField textField;
private JPasswordField passwordField;
private JButton b1,b2,b3;

public Login() {
setBackground(new Color(255, 255, 204));

// Calculate the screen dimensions and center the window


Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
int width = 700;
int height = 400;
int x = (screenSize.width - width) / 2;
int y = (screenSize.height - height) / 2;

setBounds(x, y, width, height);

panel = new JPanel();


panel.setBackground(Color.WHITE);
setContentPane(panel);
panel.setLayout(null);

JLabel l1 = new JLabel("Username : ");


l1.setBounds(124, 89, 95, 24);
panel.add(l1);

JLabel l2 = new JLabel("Password : ");


l2.setBounds(124, 124, 95, 24);
panel.add(l2);

31
Bachelors of Computer Application 1
Tourism Management
System
textField = new JTextField();
textField.setBounds(210, 93, 157, 20);
panel.add(textField);

passwordField = new JPasswordField();


passwordField.setBounds(210, 128, 157, 20);
panel.add(passwordField);

JLabel l3 = new JLabel("");


l3.setBounds(377, 79, 46, 34);
panel.add(l3);

JLabel l4 = new JLabel("");


l4.setBounds(377, 124, 46, 34);
panel.add(l4);

ImageIcon c1 = new ImageIcon(ClassLoader.getSystemResource("Travel/Management/System/icons/


login.png"));
Image i1 = c1.getImage().getScaledInstance(150, 150, Image.SCALE_DEFAULT);
ImageIcon i2 = new ImageIcon(i1);

JLabel l6 = new JLabel(i2);


l6.setBounds(480, 70, 150, 150);
add(l6);

b1 = new JButton("Login");
b1.addActionListener(this);

b1.setForeground(new Color(46, 139, 87));


b1.setBackground(new Color(176, 224, 230));
b1.setBounds(149, 181, 113, 25);
panel.add(b1);

b2 = new JButton("SignUp");
b2.addActionListener(this);

b2.setForeground(new Color(139, 69, 19));


b2.setBackground(new Color(255, 235, 205));
b2.setBounds(289, 181, 113, 25);
panel.add(b2);

b3 = new JButton("Forgot Password");


b3.addActionListener(this);

b3.setForeground(new Color(205, 92, 92));


b3.setBackground(new Color(253, 245, 230));
b3.setBounds(199, 231, 179, 25);

31
Bachelors of Computer Application 2
Tourism Management
System panel.add(b3);

JLabel l5 = new JLabel("Trouble in Login?");


l5.setFont(new Font("Tahoma", Font.PLAIN, 15));
l5.setForeground(new Color(255, 0, 0));
l5.setBounds(70, 235, 110, 20);
panel.add(l5);

JPanel panel2 = new JPanel();


panel2.setBackground(new Color(255, 255, 204));
panel2.setBounds(24, 40, 434, 263);
panel.add(panel2);
}

public void actionPerformed(ActionEvent ae)


{ if(ae.getSource() == b1){
Boolean status = false;
try {
Conn con = new Conn();
String sql = "select * from account where username=? and password=?";
PreparedStatement st = con.c.prepareStatement(sql);

st.setString(1, textField.getText());
st.setString(2, passwordField.getText());

ResultSet rs = st.executeQuery();
if (rs.next()) {
this.setVisible(false);
new Loading(textField.getText()).setVisible(true);
} else {
JOptionPane.showMessageDialog(null, "Invalid Login or Password!");
}
} catch (Exception e2) {
e2.printStackTrace();
}
}
if(ae.getSource() == b2){
setVisible(false);
Signup su = new Signup();
su.setVisible(true);
}
if(ae.getSource() == b3){
setVisible(false);
ForgotPassword forgot = new ForgotPassword();
forgot.setVisible(true);
}
}

31
Bachelors of Computer Application 3
Tourism Management
System public static void main(String[] args)
{ new Login().setVisible(true);
}
}

3.3. Add Customer


package travel.management.system;

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.sql.*;

public class AddCustomer extends JFrame


{ Connection conn = null;
PreparedStatement pst = null;
private JPanel contentPane;
private JTextField t1, t2, t3, t5, t6, t7, t8;
JComboBox<String> comboBox;
JRadioButton r1, r2;

/**
* Launch the application.
*/
public static void main(String[] args)
{ EventQueue.invokeLater(new Runnable() {
public void run()
{ try {
AddCustomer frame = new AddCustomer("");
frame.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
});
}

public AddCustomer(String username) throws SQLException {


System.out.println(username);
setBounds(580, 220, 850, 550);
contentPane = new JPanel();
setContentPane(contentPane);
contentPane.setLayout(null);

ImageIcon i1 = new ImageIcon(ClassLoader.getSystemResource("travel/management/system/icons/


newcustomer.jpg"));
Image i3 = i1.getImage().getScaledInstance(450, 500, Image.SCALE_DEFAULT);

40
Bachelors of Computer Application
Tourism Management
System ImageIcon i2 = new ImageIcon(i3);
JLabel l1 = new JLabel(i2);
l1.setBounds(450, 40, 450, 420);
add(l1);

JLabel lblName = new JLabel("NEW CUSTOMER FORM");


lblName.setFont(new Font("Yu Mincho", Font.PLAIN, 20));
lblName.setBounds(118, 11, 260, 53);
contentPane.add(lblName);

JLabel l3 = new JLabel("Username :");


l3.setBounds(35, 70, 200, 14);
contentPane.add(l3);

t7 = new JTextField();
t7.setBounds(271, 70, 150, 20);
contentPane.add(t7);
t7.setColumns(10);

JLabel lblId = new JLabel("ID


:"); lblId.setBounds(35, 110, 200,
14); contentPane.add(lblId);

comboBox = new JComboBox<>(new String[]{"Passport", "Aadhar Card", "Voter Id", "Driving


license"});
comboBox.setBounds(271, 110, 150, 20);
contentPane.add(comboBox);

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


l2.setBounds(35, 150, 200, 14);
contentPane.add(l2);

t1 = new JTextField();
t1.setBounds(271, 150, 150, 20);
contentPane.add(t1);
t1.setColumns(10);

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


lblName_1.setBounds(35, 190, 200, 14);
contentPane.add(lblName_1);

t2 = new JTextField();
t2.setBounds(271, 190, 150, 20);
contentPane.add(t2);
t2.setColumns(10);

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


lblGender.setBounds(35, 230, 200, 14);

41
Bachelors of Computer Application
Tourism Management
System contentPane.add(lblGender);

r1 = new JRadioButton("Male");
r1.setFont(new Font("Raleway", Font.BOLD, 14));
r1.setBackground(Color.WHITE);
r1.setBounds(271, 230, 80, 12);
add(r1);

r2 = new JRadioButton("Female");
r2.setFont(new Font("Raleway", Font.BOLD, 14));
r2.setBackground(Color.WHITE);
r2.setBounds(350, 230, 100, 12);
add(r2);

ButtonGroup bg = new ButtonGroup();


bg.add(r1);
bg.add(r2);

JLabel lblCountry = new JLabel("Country :");


lblCountry.setBounds(35, 270, 200, 14);
contentPane.add(lblCountry);

t3 = new JTextField();
t3.setBounds(271, 270, 150, 20);
contentPane.add(t3);
t3.setColumns(10);

JLabel lblReserveRoomNumber = new JLabel("Permanent Address :");


lblReserveRoomNumber.setBounds(35, 310, 200, 14);
contentPane.add(lblReserveRoomNumber);

t5 = new JTextField();
t5.setBounds(271, 310, 150, 20);
contentPane.add(t5);
t5.setColumns(10);

JLabel lblCheckInStatus = new JLabel("Phone :");


lblCheckInStatus.setBounds(35, 350, 200, 14);
contentPane.add(lblCheckInStatus);

t6 = new JTextField();
t6.setBounds(271, 350, 150, 20);
contentPane.add(t6);
t6.setColumns(10);

JLabel lblDeposite = new JLabel("Email :");


lblDeposite.setBounds(35, 390, 200, 14);
contentPane.add(lblDeposite);

42
Bachelors of Computer Application
Tourism Management
System
t8 = new JTextField();
t8.setBounds(271, 390, 150, 20);
contentPane.add(t8);
t8.setColumns(10);

try {
Conn c = new Conn();
ResultSet rs = c.s.executeQuery("select * from account where username = '" + username + "'");
while (rs.next()) {
t7.setText(rs.getString("username"));
t2.setText(rs.getString("name"));
}
} catch (Exception e) {
e.printStackTrace();
}

JButton btnNewButton = new JButton("Add");


btnNewButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e)
{ Conn c = new Conn();
String radio = null;

if (r1.isSelected())
{ radio = "Male";
} else if (r2.isSelected())
{ radio = "Female";
}

try {
String s9 = t7.getText(); //username
String s1 = (String) comboBox.getSelectedItem();
String s2 = t1.getText();
String s3 = t2.getText();
String s4 = radio;
String s5 = t3.getText();
String s7 = t5.getText(); //address
String s8 = t6.getText();
String s10 = t8.getText(); //email

String q1 = "insert into customer values('" + s9 + "','" + s1 + "','" + s2 + "','" + s3 + "','" + s4


+ "','" + s5 + "','" + s7 + "','" + s8 + "','" + s10 + "')";
c.s.executeUpdate(q1);

JOptionPane.showMessageDialog(null, "Customer Added Successfully");


setVisible(false);
} catch (SQLException e1) {
System.out.println(e1.getMessage());

43
Bachelors of Computer Application
Tourism Management
System } catch (NumberFormatException s)
{ JOptionPane.showMessageDialog(null, "Please enter a valid
Number");
}
}
});
btnNewButton.setBounds(100, 430, 120, 30);
btnNewButton.setBackground(Color.BLACK);
btnNewButton.setForeground(Color.WHITE);
contentPane.add(btnNewButton);

JButton btnExit = new JButton("Back");


btnExit.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
setVisible(false);
}
});
btnExit.setBounds(260, 430, 120, 30);
btnExit.setBackground(Color.BLACK);
btnExit.setForeground(Color.WHITE);
contentPane.add(btnExit);

getContentPane().setBackground(Color.WHITE);

// Center the window


setLocationRelativeTo(null);
}
}

3.4. Hotels Page


package travel.management.system;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;

public class CheckHotels extends JFrame implements Runnable {

JLabel l1, l2, l3, l4, l5, l6, l7, l8, l9, l10, l11, l12, l13, l14, l15, l16, l17, l18, l19;
JLabel caption;
Thread th;

public void run()


{ try {
l2.setVisible(true);
caption.setText("JW Marriott Hotel");
l2.add(caption);
Thread.sleep(2800);
l2.setVisible(false);
44
Bachelors of Computer Application
Tourism Management
System
l3.setVisible(true);
caption.setText("Mandarin Oriental Hotel");
l3.add(caption);
Thread.sleep(2800);
l3.setVisible(false);

l4.setVisible(true);
caption.setText("Four Seasons Hotel");
l4.add(caption);
Thread.sleep(2800);
l4.setVisible(false);

l5.setVisible(true);
caption.setText("Radisson Hotel");
l5.add(caption);
Thread.sleep(2800);
l5.setVisible(false);

l6.setVisible(true);
caption.setText("Classio Hotel");
l6.add(caption);
Thread.sleep(2800);
l6.setVisible(false);

l7.setVisible(true);
caption.setText("The Bay Club
Hotel"); l7.add(caption);
Thread.sleep(2800);
l7.setVisible(false);

l8.setVisible(true);
caption.setText("Breeze Blows Hotel");
l8.add(caption);
Thread.sleep(2800);
l8.setVisible(false);

l9.setVisible(true);
caption.setText("Quick Stop Hotel");
l9.add(caption);
Thread.sleep(2800);
l9.setVisible(false);

l10.setVisible(true);
caption.setText("Happy Mornings
Motel"); l10.add(caption);
Thread.sleep(2800);
l10.setVisible(false);

45
Bachelors of Computer Application
Tourism Management
System
l11.setVisible(true);
caption.setText("Moss View
Hotel"); l11.add(caption);
Thread.sleep(2800);
l11.setVisible(false);

this.setVisible(false);
} catch (Exception e) {
System.out.println(e);
}
}

public CheckHotels()
{ setBounds(580, 220, 900, 700);
getContentPane().setBackground(new Color(220, 250, 250));

th = new Thread(this);

caption = new JLabel();


caption.setBounds(50, 550, 1000, 70);
caption.setForeground(Color.WHITE);
caption.setFont(new Font("Tahoma", Font.PLAIN, 40));
add(caption);

ImageIcon i1 = new ImageIcon(ClassLoader.getSystemResource("travel/management/system/icons/


hotel1.jpg"));
Image i2 = i1.getImage().getScaledInstance(900, 700, Image.SCALE_DEFAULT);
ImageIcon i3 = new ImageIcon(i2);
l2 = new JLabel(i3);
l2.setBounds(0, 0, 900, 700);
add(l2);

setLayout(null);

ImageIcon i4 = new
ImageIcon(ClassLoader.getSystemResource("travel/management/system/icons/hotel2.jpg"));
Image i5 = i4.getImage().getScaledInstance(900, 700, Image.SCALE_DEFAULT);
ImageIcon i6 = new ImageIcon(i5);
l3 = new JLabel(i6);
l3.setBounds(0, 0, 900, 700);
add(l3);
l3.setVisible(false);

ImageIcon i7 = new ImageIcon(ClassLoader.getSystemResource("travel/management/system/icons/


hotel3.jpg"));
Image i8 = i7.getImage().getScaledInstance(900, 700, Image.SCALE_DEFAULT);
ImageIcon i9 = new ImageIcon(i8);

46
Bachelors of Computer Application
Tourism Management
System l4 = new JLabel(i9);
l4.setBounds(0, 0, 900, 700);
add(l4);
l4.setVisible(false);

ImageIcon i10 = new ImageIcon(ClassLoader.getSystemResource("travel/management/system/icons/


hotel4.jpg"));
Image i11 = i10.getImage().getScaledInstance(900, 700, Image.SCALE_DEFAULT);
ImageIcon i12 = new ImageIcon(i11);
l5 = new JLabel(i12);
l5.setBounds(0, 0, 900, 700);
add(l5);
l5.setVisible(false);

ImageIcon i13 = new ImageIcon(ClassLoader.getSystemResource("travel/management/system/icons/


hotel5.jpg"));
Image i14 = i13.getImage().getScaledInstance(900, 700, Image.SCALE_DEFAULT);
ImageIcon i15 = new ImageIcon(i14);
l6 = new JLabel(i15);
l6.setBounds(0, 0, 900, 700);
add(l6);
l6.setVisible(false);

ImageIcon i16 = new ImageIcon(ClassLoader.getSystemResource("travel/management/system/icons/


hotel6.jpg"));
Image i17 = i16.getImage().getScaledInstance(900, 700, Image.SCALE_DEFAULT);
ImageIcon i18 = new ImageIcon(i17);
l7 = new JLabel(i18);
l7.setBounds(0, 0, 900, 700);
add(l7);
l7.setVisible(false);

ImageIcon i19 = new ImageIcon(ClassLoader.getSystemResource("travel/management/system/icons/


hotel7.jpg"));
Image i20 = i19.getImage().getScaledInstance(900, 700, Image.SCALE_DEFAULT);
ImageIcon i21 = new ImageIcon(i20);
l8 = new JLabel(i21);
l8.setBounds(0, 0, 900, 700);
add(l8);
l8.setVisible(false);

ImageIcon i22 = new ImageIcon(ClassLoader.getSystemResource("travel/management/system/icons/


hotel8.jpg"));
Image i23 = i22.getImage().getScaledInstance(900, 700, Image.SCALE_DEFAULT);
ImageIcon i24 = new ImageIcon(i23);
l9 = new JLabel(i24);
l9.setBounds(0, 0, 900, 700);
add(l9);

47
Bachelors of Computer Application
Tourism Management
System l9.setVisible(false);

ImageIcon i25 = new ImageIcon(ClassLoader.getSystemResource("travel/management/system/icons/


hotel9.jpg"));
Image i26 = i25.getImage().getScaledInstance(900, 700, Image.SCALE_DEFAULT);
ImageIcon i27 = new ImageIcon(i26);
l10 = new JLabel(i27);
l10.setBounds(0, 0, 900,
700); add(l10);
l10.setVisible(false);

ImageIcon i28 = new ImageIcon(ClassLoader.getSystemResource("travel/management/system/icons/


hotel10.jpg"));
Image i29 = i28.getImage().getScaledInstance(900, 700, Image.SCALE_DEFAULT);
ImageIcon i30 = new ImageIcon(i29);
l11 = new JLabel(i30);
l11.setBounds(0, 0, 900,
700); add(l11);
l11.setVisible(false);

// Center the window


setLocationRelativeTo(null);

th.start();
}

public static void main(String args[])


{ new CheckHotels().setVisible(true);
}
}

3.5. Packages Page


package travel.management.system;

import javax.swing.*;
import java.awt.*;
import java.awt.event.*;

public class CheckPackage extends JFrame


{ public static void main(String[] args) {
new CheckPackage().setVisible(true);
}

CheckPackage()
{ setBounds(550, 220, 900,
600);
setLocationRelativeTo(null); // Center the window
setVisible(true);
48
Bachelors of Computer Application
Tourism Management
System String[] package1 = new String[]{"package1.jpg", "GOLD PACKAGE", "6 days and 7 Nights",
"Airport Assistance at Aiport", "Half Day City Tour", "Welcome drinks on Arrival", "Daily Buffet",
"Full Day 3 Island Cruise", "English Speaking Guide", "BOOK NOW", "Summer Special", "Rs 12000
only"};
String[] package2 = new String[]{"package2.jpg", "SILVER PACKAGE", "4 days and 3 Nights",
"Toll Free and Entrance Free Tickets", "Meet and Greet at Aiport", "Welcome drinks on Arrival",
"Night Safari", "Full Day 3 Island Cruise", "Cruise with Dinner", "BOOK NOW", "Winter Special",
"Rs 25000 only"};
String[] package3 = new String[]{"package3.jpg", "BRONZE PACKAGE", "6 days and 5
Nights", "Return Airfare", "Free Clubbing, Horse Riding & other Games", "Welcome drinks on
Arrival", "Daily Buffet", "Stay in 5 Star Hotel", "BBQ Dinner", "BOOK NOW", "Winter Special", "Rs
32000 only"};

JTabbedPane tabbedPane = new JTabbedPane();


JPanel p1 = createPackage(package1);
tabbedPane.addTab("Package 1", null, p1);

JPanel p2 = createPackage(package2);
tabbedPane.addTab("Package 2", null, p2);

JPanel p3 = createPackage(package3);
tabbedPane.addTab("Package 3", null, p3);

add(tabbedPane, BorderLayout.CENTER);
}

public JPanel createPackage(String[] pack) {


JPanel p1 = new JPanel();
p1.setLayout(null);
p1.setBackground(Color.WHITE);

ImageIcon i1 = new ImageIcon(ClassLoader.getSystemResource("travel/management/system/


icons/" + pack[0]));
Image i3 = i1.getImage().getScaledInstance(550, 300, Image.SCALE_DEFAULT);
ImageIcon i2 = new ImageIcon(i3);
JLabel l1 = new JLabel(i2);
l1.setBounds(400, 0, 450, 420);
p1.add(l1);

JLabel lblName = new JLabel(pack[1]);


lblName.setFont(new Font("Yu Mincho", Font.PLAIN, 30));
lblName.setBounds(50, 5, 350, 53);
p1.add(lblName);

JLabel l3 = new JLabel(pack[2]);


l3.setForeground(Color.RED);
l3.setBounds(35, 70, 200, 14);
p1.add(l3);

49
Bachelors of Computer Application
Tourism Management
System JLabel lblId = new JLabel(pack[3]);
lblId.setForeground(Color.BLUE);
lblId.setBounds(35, 110, 200, 14);
p1.add(lblId);

JLabel l2 = new JLabel(pack[4]);


l2.setForeground(Color.RED);
l2.setBounds(35, 150, 200, 14);
p1.add(l2);

JLabel lblName_1 = new JLabel(pack[5]);


lblName_1.setForeground(Color.BLUE);
lblName_1.setBounds(35, 190, 200, 14);
p1.add(lblName_1);

JLabel lblGender = new JLabel(pack[6]);


lblGender.setForeground(Color.RED);
lblGender.setBounds(35, 230, 200, 14);
p1.add(lblGender);

JLabel lblCountry = new JLabel(pack[7]);


lblCountry.setForeground(Color.BLUE);
lblCountry.setBounds(35, 270, 200, 14);
p1.add(lblCountry);

JLabel lblReserveRoomNumber = new JLabel(pack[8]);


lblReserveRoomNumber.setForeground(Color.RED);
lblReserveRoomNumber.setBounds(35, 310, 200, 14);
p1.add(lblReserveRoomNumber);

JLabel lblCheckInStatus = new JLabel(pack[9]);


lblCheckInStatus.setForeground(Color.BLUE);
lblCheckInStatus.setFont(new Font("Yu Mincho", Font.PLAIN, 20));
lblCheckInStatus.setBounds(35, 400, 200, 30);
p1.add(lblCheckInStatus);

JLabel lblDeposite = new JLabel(pack[10]);


lblDeposite.setFont(new Font("Yu Mincho", Font.PLAIN, 30));
lblDeposite.setBounds(35, 460, 400, 40);
p1.add(lblDeposite);

JLabel la1 = new JLabel(pack[11]);


la1.setForeground(Color.RED);
la1.setFont(new Font("Yu Mincho", Font.PLAIN, 30));
la1.setBounds(600, 460, 400, 40);
p1.add(la1);

return p1;

50
Bachelors of Computer Application
Tourism Management
System }
}

3.6. Payment Page


package travel.management.system;

import java.awt.Color;
import java.awt.Container;
import java.awt.Font;
import java.awt.Image;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.*;
public class Payment extends

JFrame{ public Payment(){

setLayout(null);
setBounds(600, 220, 800,
600);
setLocationRelativeTo(null);

JLabel label=new JLabel("Pay using Paytm");


label.setFont(new Font("Raleway", Font.BOLD, 40));
label.setBounds(50, 20, 350, 45);
add(label);

ImageIcon i7 = new ImageIcon(ClassLoader.getSystemResource("travel/management/system/icons/


paytm.jpeg"));
Image i8 = i7.getImage().getScaledInstance(800, 600, Image.SCALE_DEFAULT);
ImageIcon i9 = new ImageIcon(i8);
JLabel l4 = new JLabel(i9);
l4.setBounds(0, 150, 800, 600);
add(l4);

JButton pay = new JButton("Pay");


pay.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e)
{ new Paytm().setVisible(true);
}
});
pay.setBounds(420, 20, 80, 40);
add(pay);

JButton back=new JButton("Back");


back.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
setVisible(false);}
51
Bachelors of Computer Application
Tourism Management
System Chapter – 6
Testing

Test Steps to
cases Input Actual
Test case execute the Expected Result Pass/Fail
Data Result
No. test case
A message
After entering A proper message
the data click indicating the error was
Wrong displayed
Login should appear and
1 username on the login saying Pass
Screen the user should be
or password button Invalid
redirected to login
screen. username or
password
A message
A proper message
After entering indicating the error was
If any field the data click displayed
should appear and
2 Insertion was not saying Enter Pass
on the create the user should be
entered. all the
button redirected to
customer screen. details
properly
A message
A proper message
After entering indicating the error was
If any field the data click displayed
should appear and
3 Deletion was not saying Enter Pass
on the delete the user should be
entered. all the
button redirected to
customer screen. details
properly
A message
A proper message
After entering indicating the error was
If any field the data click displayed
should appear and
4 Update was not saying Enter Pass
on the update the user should be
entered. all the
button redirected to update
customer screen. details
properly

52
Bachelors of Computer Application
Tourism Management
System Chapter – 7
Conclusion

In this project, we set out to develop a comprehensive Tourism Management


System (TMS) aimed at enhancing the efficiency and accessibility of tourism-
related services. Our project journey encompassed a detailed exploration of
database management and web application development, leading to the creation of a
robust and user-friendly platform. The key phases of the project included the
following:

 System Study and Analysis:


Conducted an in-depth analysis of existing systems, identifying their limitations,
such as time consumption, high costs, and the need for physical presence.
Established the need for a new, computerized system that offers features like time
efficiency, online feedback, and user profile management.

 Design and Implementation:


Developed a database schema that includes key tables such as account, customer,
hotels, bookHotel, and bookPackage. These tables were designed to handle
essential data for managing user accounts, customer details, hotel bookings, and
package bookings.
Utilized Java and JDBC for developing the backend, ensuring robust database
connectivity and efficient data handling.
Implemented user interfaces using Java Swing for various functionalities, including
login, customer management, hotel booking, and package booking.

53
Bachelors of Computer Application
Tourism Management
System

 System Features and Benefits:


Developed a secure and low-cost system that provides an intuitive user interface,
requiring basic computer knowledge.
Ensured the system supports multiple users, provides an online feedback
mechanism, and offers an online notice board for workshops.Integrated search
functionality for checking the availability status of services.

 Evaluation and Results:


Conducted thorough testing to ensure the system's reliability and efficiency.
Achieved significant improvements over the existing manual system, particularly in
terms of time efficiency and user convenience.

 Key Findings and Recommendations:


The new TMS significantly reduces the need for physical presence and manual
paperwork, thereby saving time and costs.The implementation of a computerized
feedback system and user profile management enhances the overall user experience.
Identified areas for future improvement include expanding the system's
functionalities to cover more tourism services and integrating advanced features
like real-time data analytics for better decision-making.

In conclusion, the development of the Tourism Management System has provided


valuable insights into the application of database management and web
development technologies in the tourism sector. The system's ability to streamline
operations, improve user experience, and provide secure and efficient management
of tourism- related services underscores its potential as a vital tool for the industry.
The successful implementation of this project sets a solid foundation for future
enhancements and innovations in tourism management.
54
Bachelors of Computer Application
Tourism Management
System Chapter – 8
Future Scope

As we conclude this project on the Tourism Management System (TMS), several


potential avenues for future exploration and enhancement emerge. The current
implementation provides a robust foundation for further research and development
in the domain of tourism management and web-based applications. Here are some
potential areas for future work:

1. Feature Enhancement:
▪ Real-Time Data Analytics: Integrating advanced data analytics tools to
provide real-time insights into user preferences, booking trends, and
service performance.
▪ Mobile Application Development: Expanding the system to include
mobile application support, allowing users to access services on-the-go.

2. Integration with Third-Party Services:


▪ Payment Gateways: Incorporating secure online payment gateways to
facilitate seamless transactions for bookings and other services.
▪ Third-Party APIs: Integrating with third-party services such as travel
agencies, transportation services, and local attractions for a more
comprehensive tourism management experience.

3. Advanced Security Measures:


▪ Two-Factor Authentication: Implementing advanced security measures
such as two-factor authentication to enhance user account security.
▪ Encryption Techniques: Employing robust encryption techniques to
protect sensitive user data and ensure privacy.

55
Bachelors of Computer Application
Tourism Management
System

4. Enhanced User Experience:


▪ Personalization: Developing personalized recommendations for users
based on their past bookings and preferences.
▪ Multilingual Support: Adding multilingual support to cater to a diverse
user base from different regions and backgrounds.

5. Scalability and Performance Optimization:


▪ Cloud Integration: Leveraging cloud computing technologies to ensure
the system can scale efficiently to handle a growing number of users and
data.
▪ Performance Optimization: Continuously optimizing the system's
performance to ensure quick response times and a smooth user
experience.

6. Collaboration and Partnerships:


▪ Local Businesses: Collaborating with local businesses, hotels, and tour
operators to expand the range of services offered through the platform.
▪ Government and Tourism Boards: Partnering with government agencies
and tourism boards to promote local tourism and enhance service
offerings.

In summary, the future work outlined above presents exciting opportunities to


further enhance the functionality, usability, and reach of the Tourism Management
System. By embracing technological advancements, fostering strategic partnerships,
and focusing on user-centric enhancements, future endeavors in this area can
contribute to the growth and development of the tourism industry, providing a
seamless and enriching experience for users.

56
Bachelors of Computer Application
Tourism Management
System

Chapter: 9
Bibliography

 W3schools. Retrieved from


[https://www.w3schools.com]

 Javatpoint. Retrieved from


[https://www.javatpoint.com]

 Codecademy. Retrieved from


[https://www.codecademy.com]

 Stackoverflow. Retrieved from


[https://www.stackoverflow.com]

 YouTube :
[https://youtu.be/5vzCjvUwMXg]
[https://youtu.be/dwVj_g3TpZ4]
[https://youtu.be/L5RpqspNAuc]

 Google/Google Images. Figures/ Graphics

57
Bachelors of Computer Application

You might also like