Professional Documents
Culture Documents
A Project Report On Ticket Booking For CBSE 2018 Examination
A Project Report On Ticket Booking For CBSE 2018 Examination
A Project Report On Ticket Booking For CBSE 2018 Examination
on
TICKET BOOKING
For
CBSE 2018 Examination
[As a part of the Informatics Practices Course (065)]
SUBMITTED BY
SAKTHI KUMARAN.S
VELAMMAL VIDYASHRAM
CERTIFICATE
Date : ……………………..
EXTERNAL EXAMINER
ACKNOWLEDGEMENT
First of all we thank our beloved parents for providing us the
opportunity to study in VELAMMAL VIDHYASHRAM.
We also thank all our friend who helped us in the completion of this
project
C O N T E N T S
1. Introduction------------------------------------------------------------------
2. Theoretical Background-------------------------------------------------
4. System Implementation--------------------------------------------------
6. References -------------------------------------------------------------------
1. Introduction
Which contains several frames and coding which is the base of this
software.
This software, being simple in design and working, does not require
During coding and design of the software Project, Java NetBeans IDE, a
Also this software consumes small amount of space and error free
software.
It helps user to pick up their favorite movie to watch them and enjoy.
2. Theoretical Background
To find and retrieve just the data that meets conditions you specify, including data from
multiple tables, create a query. A query can also update or delete multiple records at the same
time, and perform built-in or custom calculations on your data.
The DBMS interprets and processes users' requests to retrieve information from a database.
In most cases, a query request will have to penetrate several layers of software in the DBMS
and operating system before the physical database can be accessed. The DBMS responds to a
query by invoking the appropriate subprograms, each of which performs its special function
to interpret the query, or to locate the desired data in the database and present it in the desired
order.
NetBeans started as a student project (originally called Xelfi) in the Czech Republic in 1996.
The goal was to write a Delphi-like Java IDE in Java. Xelfi was the first Java IDE (Integrated
Development Environment) written in Java, with its first pre-releases in 1997. Xelfi was a fun
project to work on, especially since Java IDE space was uncharted territory at that time. The
project attracted enough interest that these students, once they graduated, decided that they
could market it as a commercial product. Soliciting resources from friends and relatives for a
web space, they formed a company around it.
Soon after, they were contacted by Roman Stanek, an entrepreneur who had already been
involved in several startups in the Czech Republic. He was looking for a good idea to invest
in, and discovered Xelfi. He met with the founders; they hit it off, and a business was born.
In the spring of 1999, NetBeans DeveloperX2 was released, supporting Swing. The
performance improvements that came in JDK 1.3, released in the fall of 1999, made
NetBeans a viable choice for development tools. By the summer of 1999, the team was hard
at work re-architecting DeveloperX2 into the more modular NetBeans that forms the basis of
the software today.
Something else was afoot in the summer of 1999: Sun Microsystems wanted better Java
development tools, and had become interested in NetBeans. It was a dream come true for the
NetBeans team: NetBeans would become the flagship tool set of the maker of Java itself! By
the Fall, with the next generation of NetBeans Developer in beta, a deal was struck. Sun
Microsystems had also acquired another tools company, During the acqusition, the young
developers who had been involved in open-source projects for most of their programming
careers, mentioned the idea of open-sourcing NetBeans. Fast forward to less than six months
later, the decision was made that NetBeans would be open sourced. While Sun had
contributed considerable amounts of code to open source projects over the years, this was
Sun's first sponsored open source project, one in which Sun would be paying for the site and
handling the infrastructure.
Features of NetBeans
A free, open-source Integrated Development Environment for software developers. You get
all the tools you need to create professional desktop, enterprise, web, and mobile applications
with the Java platform, as well as C/C++, PHP, JavaScript, Groovy, and Ruby.
NetBeans IDE 6.9 introduces the JavaFX Composer, support for JavaFX SDK 1.3, OSGi
interoperability, support for the PHP Zend framework and Ruby on Rails 3.0, and more.
3. Problem Definition & Analysis
The hardest part of building a software system is deciding precisely what to build. No other
part of the conceptual work is so difficult as establishing the detailed technical requirement.
Defining and applying good, complete requirements are hard to work, and success in this
endeavor has eluded many of us. Yet, we continue to make progress.
Problem definition describes the What of a system, not How . The quality of a software
product is only as good as the process that creates it. Problem definition is one of the most
crucial steps in this creation process. Without defining a problem, developers do not know
what to build, customers do not know what to expect, and there is no way to validate that the
built system satisfies the requirement.
Problem definition and Analysis is the activity that encompasses learning about the problem
to be solved, understanding the needs of customer and users, trying to find out who the user
really is, and understanding all the constraints on the solution. It includes all activities related
to the following:
Identification and documentation of customer’s or user’s needs.
Creation of a document that describes the external behavior and the association
constraints that will satisfies those needs.
Analysis and validation of the requirements documents to ensure consistency,
completeness, and feasibility
Evolution of needs.
After the analysis of the functioning of a Public Library system, the proposed System is
expected to do the following: -
To provide a user friendly, Graphical User Interface (GUI) based integrated and
centralized environment for computerized Public Library System.
The proposed system should maintain all the records and transactions, and should
generate the required reports and information when required.
To provide efficient and secured Information storage, flow and retrieval system,
ensuring the integrity and validity of records.
To provide graphical and user-friendly interface to interact with a centralized database
based on client-server architecture.
To identify the critical operation procedure and possibilities of simplification using
modern IT tools and practices.
4. System Implementation
Table Design:
The database of Ticket Booking contains 7 tables. Most of the tables are designed to store
master records. The tables and their structure are given below.
Table: account
Column Name key Type Size
First -- Char 20
Last -- Char 20
Id PR varchar 30
Pass -- varchar 30
Table: screen_1
Column Name key Type Size
Id PR int 11
Dat -- date --
Tim -- char 15
Amount -- int 11
Table: screen_2
Column Name key Type Size
Id PR int 11
Dat -- date --
Tim -- char 15
Amount -- int 11
Table: screen_3
Column Name key Type Size
Id PR int 11
Dat -- date --
Tim -- char 15
Amount -- int 11
Table: screen_4
Column Name key Type Size
Id PR int 11
Dat -- date --
Tim -- char 15
Amount -- int 11
Table: screen_5
Column Name key Type Size
Id PR int 11
Dat -- date --
Tim -- char 15
Amount -- int 11
Table: screen_6
Column Name key Type Size
Id PR int 11
Dat -- date --
Tim -- char 15
Amount -- int 11
5.2 I/O Forms Design & Event Coding:
FRAME TicketBookingSystem:
Button Welcome:
new i_Max_1().setVisible(true);
this.setVisible(false);
FRAME:i_Max_1
this.setVisible(false);
new Sign_up().setVisible(true)
Class.forName("com.mysql.jdbc.Driver");
Connection
con=DriverManager.getConnection("jdbc:mysql://localhost:3306/imax","root","3008"
);
Statement stmt=con.createStatement();
id='"+username+"';");
while(rs.next())
if(pwd.equals(pass))
this.setVisible(false);
Mv.setVisible(true);
else {
JOptionPane.showMessageDialog(this,"INCORRECT ID OR PASSWORD");
}
con.close();
catch(Exception e)
{ System.out.println(e); }
FRAME Sign_up:
Button Accept:
String first=jTextField1.getText();
String last=jTextField2.getText();
String id=jTextField3.getText();
String pass=jPasswordField1.getText();
try
Class.forName("com.mysql.jdbc.Driver");
Connection con=(Connection)
DriverManager.getConnection("jdbc:Mysql://localhost:3306/imax","root","3008");
Statement stmt=con.createStatement();
values('"+first+"','"+last+"','"+id+"','"+pass+"') ";
stmt.executeUpdate(query1);
Created");
con.close();
catch(Exception e)
JOptionPane.showMessageDialog(this,e);
Check Box 1:
if(jCheckBox1.isSelected())
jPasswordField1.setEchoChar((char)0);
}
else
jPasswordField1.setEchoChar('*'); }
FRAME Movies:
Button OK:
if(jRadioButton1.isSelected())
this.setVisible(false);
new Mersal().setVisible(true);
else if(jRadioButton2.isSelected())
{
this.setVisible(false);
new AvengersInfinityWar().setVisible(true);
else if(jRadioButton3.isSelected())
this.setVisible(false);
new JusticeLeague().setVisible(true);
else
}
FRAME MERSAL:
Button Next:
new MersalBooking().setVisible(true);
this.setVisible(false);
FRAME MERSALBOOKING:
Button Tickets:
String rt;
rt=jComboBox3.getSelectedItem().toString();
if(rt.equals("Screen-1"))
new Screen_1().setVisible(true);
this.setVisible(false);
}
else if(rt.equals("Screen-2"))
new Screen_2().setVisible(true);
this.setVisible(false); }
Button Back:
new Mersal().setVisible(true);
this.setVisible(false);
FRAME Screen_1:
this.setVisible(false);
new Homepage().setVisible(true);
Button Book:
rt=jComboBox4.getSelectedItem().toString();
if(rt.equals("27/11/2017"))
k=20171127;
else if(rt.equals("28/11/2017"))
k=20171128;
else if(rt.equals("29/11/2017"))
k=20171129;
else if(rt.equals("30/11/2017"))
k=20171130;
else if(rt.equals("01/12/2017"))
k=20171201;
}
else if(rt.equals("02/12/2017"))
k=20171202;
else if(rt.equals("03/12/2017"))
k=20171203;
else if(rt.equals("04/12/2017"))
k=20171204;
else if(rt.equals("05/12/2017"))
k=20171205;
else if(rt.equals("06/12/2017"))
k=20171206;
else if(rt.equals("07/12/2017"))
k=20171207;
}
int b; String lt;
String l=null;
lt=jComboBox5.getSelectedItem().toString();
if(lt.equals("7.30.AM"))
l="Morning";
else if(lt.equals("3.30.PM"))
l="Evening";
else if(lt.equals("8.30.PM"))
l="Night";
mt=jList1.getSelectedValue();
if(mt.equals("A1"))
{
m="A1";
Z=500;
else if(mt.equals("A2"))
m="A2";
Z=500;
else if(mt.equals("A3"))
m="A3";
Z=500;
else if(mt.equals("A4"))
m="A4";
Z=500;
else if(mt.equals("A5"))
{
m="A5";
Z=500;
else if(mt.equals("A6"))
m="A6";
Z=500;
else if(mt.equals("A7"))
m="A7";
Z=500;
else if(mt.equals("A8"))
m="A8";
Z=500;
else if(mt.equals("A9"))
m="A9";
Z=500;
else if(mt.equals("A10"))
m="A10";
Z=500;
else if(mt.equals("B1"))
m="B1";
Z=300;
else if(mt.equals("B2"))
m="B2";
Z=300;
else if(mt.equals("B3"))
m="B3";
Z=300;
}
else if(mt.equals("B4"))
m="B4";
Z=300;
else if(mt.equals("B5"))
m="B5";
Z=300;
else if(mt.equals("B6"))
m="B6";
Z=300;
else if(mt.equals("B7"))
m="B7";
Z=300;
}
else if(mt.equals("B8"))
m="B8";
Z=300;
else if(mt.equals("B9"))
m="B9";
Z=300;
else if(mt.equals("B10"))
m="B10";
Z=300;
else if(mt.equals("C1"))
m="C1";
else if(mt.equals("C2"))
{
m="C2";
Z=200;
else if(mt.equals("C3"))
m="C3";
Z=200;
else if(mt.equals("C4"))
m="C4";
Z=200;
else if(mt.equals("C5"))
m="C5";
Z=200;
else if(mt.equals("C6"))
{
m="C6";
Z=200;
else if(mt.equals("C7"))
m="C7";
Z=200;
else if(mt.equals("C8"))
m="C8";
Z=200;
else if(mt.equals("C9"))
m="C9";
Z=200;
else if(mt.equals("C10"))
m="C10";
Z=200;
if(jList1.isSelectedIndex(0))
amount=amount+500;
if(jList1.isSelectedIndex(1))
amount=amount+500;
if(jList1.isSelectedIndex(2))
amount=amount+500;
if(jList1.isSelectedIndex(3))
amount=amount+500;
if(jList1.isSelectedIndex(4))
amount=amount+500;
if(jList1.isSelectedIndex(5))
{
amount=amount+500;
if(jList1.isSelectedIndex(6))
amount=amount+500;
if(jList1.isSelectedIndex(7))
amount=amount+500;
if(jList1.isSelectedIndex(8))
amount=amount+500;
if(jList1.isSelectedIndex(9))
amount=amount+500;
if(jList1.isSelectedIndex(10))
amount=amount+300;
if(jList1.isSelectedIndex(11))
{
amount=amount+300;
if(jList1.isSelectedIndex(12))
amount=amount+300;
if(jList1.isSelectedIndex(13))
amount=amount+300;
if(jList1.isSelectedIndex(14))
amount=amount+300;
if(jList1.isSelectedIndex(15))
amount=amount+300;
if(jList1.isSelectedIndex(16))
amount=amount+300;
if(jList1.isSelectedIndex(17))
amount=amount+300;
}
if(jList1.isSelectedIndex(18))
amount=amount+300;
if(jList1.isSelectedIndex(19))
amount=amount+300;
if(jList1.isSelectedIndex(20))
amount=amount+200;
if(jList1.isSelectedIndex(21))
amount=amount+200;
if(jList1.isSelectedIndex(22))
amount=amount+200;
if(jList1.isSelectedIndex(23))
amount=amount+200;
}
if(jList1.isSelectedIndex(24))
amount=amount+200;
if(jList1.isSelectedIndex(25))
amount=amount+200;
if(jList1.isSelectedIndex(26))
amount=amount+200;
if(jList1.isSelectedIndex(27))
amount=amount+200;
if(jList1.isSelectedIndex(28))
amount=amount+200;
if(jList1.isSelectedIndex(29))
amount=amount+200;
}
{jTextField1.setText(Integer.toString(amount));}
String p=jTextField2.getText();
try
Class.forName("com.mysql.jdbc.Driver");
Connection con=(Connection)
DriverManager.getConnection("jdbc:mysql://localhost:3306/iMax","root","3008");
stmt.executeUpdate(query);
con.close();
JOptionPane.showMessageDialog(this,"Saved Successfully");
}
catch(Exception e)
JOptionPane.showMessageDialog(this,e);
}
FRAME Screen_2:
Button Book:
else if(lt.equals("8.30.PM"))
{
l="Night";
}
int amount=0;
if(jList1.isSelectedIndex(0))
{
amount=amount+500;
}
if(jList1.isSelectedIndex(1))
{
amount=amount+500;
}
if(jList1.isSelectedIndex(2))
{
amount=amount+500;
}
if(jList1.isSelectedIndex(3))
{
amount=amount+500;
}
if(jList1.isSelectedIndex(4))
{
amount=amount+500;
}
if(jList1.isSelectedIndex(5))
{
amount=amount+500;
}
if(jList1.isSelectedIndex(6))
{
amount=amount+500;
}
if(jList1.isSelectedIndex(7))
{
amount=amount+500;
}
if(jList1.isSelectedIndex(8))
{
amount=amount+500;
}
if(jList1.isSelectedIndex(9))
{
amount=amount+500;
}
if(jList1.isSelectedIndex(10))
{
amount=amount+300;
}
if(jList1.isSelectedIndex(11))
{
amount=amount+300;
}
if(jList1.isSelectedIndex(12))
{
amount=amount+300;
}
if(jList1.isSelectedIndex(13))
{
amount=amount+300;
}
if(jList1.isSelectedIndex(14))
{
amount=amount+300;
}
if(jList1.isSelectedIndex(15))
{
amount=amount+300;
}
if(jList1.isSelectedIndex(16))
{
amount=amount+300;
}
if(jList1.isSelectedIndex(17))
{
amount=amount+300;
}
if(jList1.isSelectedIndex(18))
{
amount=amount+300;
}
if(jList1.isSelectedIndex(19))
{
amount=amount+300;
}
if(jList1.isSelectedIndex(20))
{
amount=amount+200;
}
if(jList1.isSelectedIndex(21))
{
amount=amount+200;
}
if(jList1.isSelectedIndex(22))
{
amount=amount+200;
}
if(jList1.isSelectedIndex(23))
{
amount=amount+200;
}
if(jList1.isSelectedIndex(24))
{
amount=amount+200;
}
if(jList1.isSelectedIndex(25))
{
amount=amount+200;
}
if(jList1.isSelectedIndex(26))
{
amount=amount+200;
}
if(jList1.isSelectedIndex(27))
{
amount=amount+200;
}
if(jList1.isSelectedIndex(28))
{
amount=amount+200;
}
if(jList1.isSelectedIndex(29))
{
amount=amount+200;
}
{jTextField1.setText(Integer.toString(amount));}
String p=jTextField2.getText();
try
{
Class.forName("com.mysql.jdbc.Driver");
Connection con=(Connection)
DriverManager.getConnection("jdbc:mysql://localhost:3306/iMax","root","3008");
Statement stmt =con.createStatement();
String query="insert into screen_2 values('"+p+"','"+k+"','"+l+"','"+amount+"');";
stmt.executeUpdate(query);
con.close();
JOptionPane.showMessageDialog(this,"Saved Successfully");
}
catch(Exception e)
{
JOptionPane.showMessageDialog(this,e);
}
FRAME AvengersInfinityWar:
Button Back:
new AvengersInfinityWar().setVisible(true);
this.setVisible(false);
FRAME Screen_3:
else if(lt.equals("8.30.PM"))
{
l="Night";
}
int amount=0;
if(jList1.isSelectedIndex(0))
{
amount=amount+500;
}
if(jList1.isSelectedIndex(1))
{
amount=amount+500;
}
if(jList1.isSelectedIndex(2))
{
amount=amount+500;
}
if(jList1.isSelectedIndex(3))
{
amount=amount+500;
}
if(jList1.isSelectedIndex(4))
{
amount=amount+500;
}
if(jList1.isSelectedIndex(5))
{
amount=amount+500;
}
if(jList1.isSelectedIndex(6))
{
amount=amount+500;
}
if(jList1.isSelectedIndex(7))
{
amount=amount+500;
}
if(jList1.isSelectedIndex(8))
{
amount=amount+500;
}
if(jList1.isSelectedIndex(9))
{
amount=amount+500;
}
if(jList1.isSelectedIndex(10))
{
amount=amount+300;
}
if(jList1.isSelectedIndex(11))
{
amount=amount+300;
}
if(jList1.isSelectedIndex(12))
{
amount=amount+300;
}
if(jList1.isSelectedIndex(13))
{
amount=amount+300;
}
if(jList1.isSelectedIndex(14))
{
amount=amount+300;
}
if(jList1.isSelectedIndex(15))
{
amount=amount+300;
}
if(jList1.isSelectedIndex(16))
{
amount=amount+300;
}
if(jList1.isSelectedIndex(17))
{
amount=amount+300;
}
if(jList1.isSelectedIndex(18))
{
amount=amount+300;
}
if(jList1.isSelectedIndex(19))
{
amount=amount+300;
}
if(jList1.isSelectedIndex(20))
{
amount=amount+200;
}
if(jList1.isSelectedIndex(21))
{
amount=amount+200;
}
if(jList1.isSelectedIndex(22))
{
amount=amount+200;
}
if(jList1.isSelectedIndex(23))
{
amount=amount+200;
}
if(jList1.isSelectedIndex(24))
{
amount=amount+200;
}
if(jList1.isSelectedIndex(25))
{
amount=amount+200;
}
if(jList1.isSelectedIndex(26))
{
amount=amount+200;
}
if(jList1.isSelectedIndex(27))
{
amount=amount+200;
}
if(jList1.isSelectedIndex(28))
{
amount=amount+200;
}
if(jList1.isSelectedIndex(29))
{
amount=amount+200;
}
{jTextField1.setText(Integer.toString(amount));}
String p=jTextField2.getText();
try
{
Class.forName("com.mysql.jdbc.Driver");
Connection con=(Connection)
DriverManager.getConnection("jdbc:mysql://localhost:3306/iMax","root","3008");
Statement stmt =con.createStatement();
String query="insert into screen_3 values('"+p+"','"+k+"','"+l+"','"+amount+"');";
stmt.executeUpdate(query);
con.close();
JOptionPane.showMessageDialog(this,"Saved Successfully");
}
catch(Exception e)
{
JOptionPane.showMessageDialog(this,e);
}
FRAME Screen_4:
else if(lt.equals("11.30.PM"))
{
l="Night";
}
int amount=0;
if(jList1.isSelectedIndex(0))
{
amount=amount+500;
}
if(jList1.isSelectedIndex(1))
{
amount=amount+500;
}
if(jList1.isSelectedIndex(2))
{
amount=amount+500;
}
if(jList1.isSelectedIndex(3))
{
amount=amount+500;
}
if(jList1.isSelectedIndex(4))
{
amount=amount+500;
}
if(jList1.isSelectedIndex(5))
{
amount=amount+500;
}
if(jList1.isSelectedIndex(6))
{
amount=amount+500;
}
if(jList1.isSelectedIndex(7))
{
amount=amount+500;
}
if(jList1.isSelectedIndex(8))
{
amount=amount+500;
}
if(jList1.isSelectedIndex(9))
{
amount=amount+500;
}
if(jList1.isSelectedIndex(10))
{
amount=amount+300;
}
if(jList1.isSelectedIndex(11))
{
amount=amount+300;
}
if(jList1.isSelectedIndex(12))
{
amount=amount+300;
}
if(jList1.isSelectedIndex(13))
{
amount=amount+300;
}
if(jList1.isSelectedIndex(14))
{
amount=amount+300;
}
if(jList1.isSelectedIndex(15))
{
amount=amount+300;
}
if(jList1.isSelectedIndex(16))
{
amount=amount+300;
}
if(jList1.isSelectedIndex(17))
{
amount=amount+300;
}
if(jList1.isSelectedIndex(18))
{
amount=amount+300;
}
if(jList1.isSelectedIndex(19))
{
amount=amount+300;
}
if(jList1.isSelectedIndex(20))
{
amount=amount+200;
}
if(jList1.isSelectedIndex(21))
{
amount=amount+200;
}
if(jList1.isSelectedIndex(22))
{
amount=amount+200;
}
if(jList1.isSelectedIndex(23))
{
amount=amount+200;
}
if(jList1.isSelectedIndex(24))
{
amount=amount+200;
}
if(jList1.isSelectedIndex(25))
{
amount=amount+200;
}
if(jList1.isSelectedIndex(26))
{
amount=amount+200;
}
if(jList1.isSelectedIndex(27))
{
amount=amount+200;
}
if(jList1.isSelectedIndex(28))
{
amount=amount+200;
}
if(jList1.isSelectedIndex(29))
{
amount=amount+200;
}
{jTextField1.setText(Integer.toString(amount));}
String p=jTextField2.getText();
try
{
Class.forName("com.mysql.jdbc.Driver");
Connection con=(Connection)
DriverManager.getConnection("jdbc:mysql://localhost:3306/iMax","root","3008");
Statement stmt =con.createStatement();
String query="insert into screen_4 values('"+p+"','"+k+"','"+l+"','"+amount+"');";
stmt.executeUpdate(query);
con.close();
JOptionPane.showMessageDialog(this,"Saved Successfully");
}
catch(Exception e)
{
JOptionPane.showMessageDialog(this,e);
}
FRAME JusticeLeague:
Button Back:
new JusticeLeague().setVisible(true);
this.setVisible(false);
FRAME Screen_5:
Coding For Screen_5:
Button Menu:
this.setVisible(false);
new i_Max_1().setVisible(true);
Button Book:
int a = 0,k=0; String rt;
rt=jComboBox4.getSelectedItem().toString();
if(rt.equals("27/11/2017"))
{
k=20171127;
}
else if(rt.equals("28/11/2017"))
{
k=20171128;
}
else if(rt.equals("29/11/2017"))
{
k=20171129;
}
else if(rt.equals("30/11/2017"))
{
k=20171130;
}
else if(rt.equals("01/12/2017"))
{
k=20171201;
}
else if(rt.equals("02/12/2017"))
{
k=20171202;
}
else if(rt.equals("03/12/2017"))
{
k=20171203;
}
else if(rt.equals("04/12/2017"))
{
k=20171204;
}
else if(rt.equals("05/12/2017"))
{
k=20171205;
}
else if(rt.equals("06/12/2017"))
{
k=20171206;
}
else if(rt.equals("07/12/2017"))
{
k=20171207;
}
else if(lt.equals("9.30.PM"))
{
l="Night";
}
int c = 0,Z=0; String mt; String m =null;
mt=jList1.getSelectedValue();
if(mt.equals("A1"))
{
m="A1";
Z=500;
}
else if(mt.equals("A2"))
{
m="A2";
Z=500;
}
else if(mt.equals("A3"))
{
m="A3";
Z=500;
}
else if(mt.equals("A4"))
{
m="A4";
Z=500;
}
else if(mt.equals("A5"))
{
m="A5";
Z=500;
}
else if(mt.equals("A6"))
{
m="A6";
Z=500;
}
else if(mt.equals("A7"))
{
m="A7";
Z=500;
}
else if(mt.equals("A8"))
{
m="A8";
Z=500;
}
else if(mt.equals("A9"))
{
m="A9";
Z=500;
}
else if(mt.equals("A10"))
{
m="A10";
Z=500;
}
else if(mt.equals("B1"))
{
m="B1";
Z=300;
}
else if(mt.equals("B2"))
{
m="B2";
Z=300;
}
else if(mt.equals("B3"))
{
m="B3";
Z=300;
}
else if(mt.equals("B4"))
{
m="B4";
Z=300;
}
else if(mt.equals("B5"))
{
m="B5";
Z=300;
}
else if(mt.equals("B6"))
{
m="B6";
Z=300;
}
else if(mt.equals("B7"))
{
m="B7";
Z=300;
}
else if(mt.equals("B8"))
{
m="B8";
Z=300;
}
else if(mt.equals("B9"))
{
m="B9";
Z=300;
}
else if(mt.equals("B10"))
{
m="B10";
Z=300;
}
else if(mt.equals("C1"))
{
m="C1";
Z=200;
}
else if(mt.equals("C2"))
{
m="C2";
Z=200;
}
else if(mt.equals("C3"))
{
m="C3";
Z=200;
}
else if(mt.equals("C4"))
{
m="C4";
Z=200;
}
else if(mt.equals("C5"))
{
m="C5";
Z=200;
}
else if(mt.equals("C6"))
{
m="C6";
Z=200;
}
else if(mt.equals("C7"))
{
m="C7";
Z=200;
}
else if(mt.equals("C8"))
{
m="C8";
Z=200;
}
else if(mt.equals("C9"))
{
m="C9";
Z=200;
}
else if(mt.equals("C10"))
{
m="C10";
Z=200;
}
int t=Z;
int amount=0;
if(jList1.isSelectedIndex(0))
{
amount=amount+500;
}
if(jList1.isSelectedIndex(1))
{
amount=amount+500;
}
if(jList1.isSelectedIndex(2))
{
amount=amount+500;
}
if(jList1.isSelectedIndex(3))
{
amount=amount+500;
}
if(jList1.isSelectedIndex(4))
{
amount=amount+500;
}
if(jList1.isSelectedIndex(5))
{
amount=amount+500;
}
if(jList1.isSelectedIndex(6))
{
amount=amount+500;
}
if(jList1.isSelectedIndex(7))
{
amount=amount+500;
}
if(jList1.isSelectedIndex(8))
{
amount=amount+500;
}
if(jList1.isSelectedIndex(9))
{
amount=amount+500;
}
if(jList1.isSelectedIndex(10))
{
amount=amount+300;
}
if(jList1.isSelectedIndex(11))
{
amount=amount+300;
}
if(jList1.isSelectedIndex(12))
{
amount=amount+300;
}
if(jList1.isSelectedIndex(13))
{
amount=amount+300;
}
if(jList1.isSelectedIndex(14))
{
amount=amount+300;
}
if(jList1.isSelectedIndex(15))
{
amount=amount+300;
}
if(jList1.isSelectedIndex(16))
{
amount=amount+300;
}
if(jList1.isSelectedIndex(17))
{
amount=amount+300;
}
if(jList1.isSelectedIndex(18))
{
amount=amount+300;
}
if(jList1.isSelectedIndex(19))
{
amount=amount+300;
}
if(jList1.isSelectedIndex(20))
{
amount=amount+200;
}
if(jList1.isSelectedIndex(21))
{
amount=amount+200;
}
if(jList1.isSelectedIndex(22))
{
amount=amount+200;
}
if(jList1.isSelectedIndex(23))
{
amount=amount+200;
}
if(jList1.isSelectedIndex(24))
{
amount=amount+200;
}
if(jList1.isSelectedIndex(25))
{
amount=amount+200;
}
if(jList1.isSelectedIndex(26))
{
amount=amount+200;
}
if(jList1.isSelectedIndex(27))
{
amount=amount+200;
}
if(jList1.isSelectedIndex(28))
{
amount=amount+200;
}
if(jList1.isSelectedIndex(29))
{
amount=amount+200;
}
{jTextField1.setText(Integer.toString(amount));}
String p=jTextField2.getText();
try
{
Class.forName("com.mysql.jdbc.Driver");
Connection con=(Connection)
DriverManager.getConnection("jdbc:mysql://localhost:3306/iMax","root","3008");
Statement stmt =con.createStatement();
String query="insert into screen_5 values('"+p+"','"+k+"','"+l+"','"+amount+"');";
stmt.executeUpdate(query);
con.close();
JOptionPane.showMessageDialog(this,"Saved Successfully");
}
catch(Exception e)
{
JOptionPane.showMessageDialog(this,e); }
FRAME Screen_6:
this.setVisible(false);
new i_Max_1().setVisible(true);
Button Book:
else if(lt.equals("9.30.PM"))
{
l="Night";
}
int c = 0,Z=0; String mt; String m =null;
mt=jList1.getSelectedValue();
if(mt.equals("A1"))
{
m="A1";
Z=500;
}
else if(mt.equals("A2"))
{
m="A2";
Z=500;
}
else if(mt.equals("A3"))
{
m="A3";
Z=500;
}
else if(mt.equals("A4"))
{
m="A4";
Z=500;
}
else if(mt.equals("A5"))
{
m="A5";
Z=500;
}
else if(mt.equals("A6"))
{
m="A6";
Z=500;
}
else if(mt.equals("A7"))
{
m="A7";
Z=500;
}
else if(mt.equals("A8"))
{
m="A8";
Z=500;
}
else if(mt.equals("A9"))
{
m="A9";
Z=500;
}
else if(mt.equals("A10"))
{
m="A10";
Z=500;
}
else if(mt.equals("B1"))
{
m="B1";
Z=300;
}
else if(mt.equals("B2"))
{
m="B2";
Z=300;
}
else if(mt.equals("B3"))
{
m="B3";
Z=300;
}
else if(mt.equals("B4"))
{
m="B4";
Z=300;
}
else if(mt.equals("B5"))
{
m="B5";
Z=300;
}
else if(mt.equals("B6"))
{
m="B6";
Z=300;
}
else if(mt.equals("B7"))
{
m="B7";
Z=300;
}
else if(mt.equals("B8"))
{
m="B8";
Z=300;
}
else if(mt.equals("B9"))
{
m="B9";
Z=300;
}
else if(mt.equals("B10"))
{
m="B10";
Z=300;
}
else if(mt.equals("C1"))
{
m="C1";
Z=200;
}
else if(mt.equals("C2"))
{
m="C2";
Z=200;
}
else if(mt.equals("C3"))
{
m="C3";
Z=200;
}
else if(mt.equals("C4"))
{
m="C4";
Z=200;
}
else if(mt.equals("C5"))
{
m="C5";
Z=200;
}
else if(mt.equals("C6"))
{
m="C6";
Z=200;
}
else if(mt.equals("C7"))
{
m="C7";
Z=200;
}
else if(mt.equals("C8"))
{
m="C8";
Z=200;
}
else if(mt.equals("C9"))
{
m="C9";
Z=200;
}
else if(mt.equals("C10"))
{
m="C10";
Z=200;
}
int t=Z;
int amount=0;
if(jList1.isSelectedIndex(0))
{
amount=amount+500;
}
if(jList1.isSelectedIndex(1))
{
amount=amount+500;
}
if(jList1.isSelectedIndex(2))
{
amount=amount+500;
}
if(jList1.isSelectedIndex(3))
{
amount=amount+500;
}
if(jList1.isSelectedIndex(4))
{
amount=amount+500;
}
if(jList1.isSelectedIndex(5))
{
amount=amount+500;
}
if(jList1.isSelectedIndex(6))
{
amount=amount+500;
}
if(jList1.isSelectedIndex(7))
{
amount=amount+500;
}
if(jList1.isSelectedIndex(8))
{
amount=amount+500;
}
if(jList1.isSelectedIndex(9))
{
amount=amount+500;
}
if(jList1.isSelectedIndex(10))
{
amount=amount+300;
}
if(jList1.isSelectedIndex(11))
{
amount=amount+300;
}
if(jList1.isSelectedIndex(12))
{
amount=amount+300;
}
if(jList1.isSelectedIndex(13))
{
amount=amount+300;
}
if(jList1.isSelectedIndex(14))
{
amount=amount+300;
}
if(jList1.isSelectedIndex(15))
{
amount=amount+300;
}
if(jList1.isSelectedIndex(16))
{
amount=amount+300;
}
if(jList1.isSelectedIndex(17))
{
amount=amount+300;
}
if(jList1.isSelectedIndex(18))
{
amount=amount+300;
}
if(jList1.isSelectedIndex(19))
{
amount=amount+300;
}
if(jList1.isSelectedIndex(20))
{
amount=amount+200;
}
if(jList1.isSelectedIndex(21))
{
amount=amount+200;
}
if(jList1.isSelectedIndex(22))
{
amount=amount+200;
}
if(jList1.isSelectedIndex(23))
{
amount=amount+200;
}
if(jList1.isSelectedIndex(24))
{
amount=amount+200;
}
if(jList1.isSelectedIndex(25))
{
amount=amount+200;
}
if(jList1.isSelectedIndex(26))
{
amount=amount+200;
}
if(jList1.isSelectedIndex(27))
{
amount=amount+200;
}
if(jList1.isSelectedIndex(28))
{
amount=amount+200;
}
if(jList1.isSelectedIndex(29))
{
amount=amount+200;
}
{jTextField1.setText(Integer.toString(amount));}
String p=jTextField2.getText();
try
{
Class.forName("com.mysql.jdbc.Driver");
Connection con=(Connection)
DriverManager.getConnection("jdbc:mysql://localhost:3306/imax","root","3008");
Statement stmt =con.createStatement();
String query="insert into screen_6 values('"+p+"','"+k+"','"+l+"','"+amount+"');";
stmt.executeUpdate(query);
con.close();
JOptionPane.showMessageDialog(this,"Saved Successfully");
}
catch(Exception f)
{
JOptionPane.showMessageDialog(this,f); }
6. References
In order to work on this project titled TICKET BOOKING , the following books and
literature are refered by me during the various phases of development of the project.
(3) http://www.mysql.org/
(4) http://www.netbeans.org/
Other than the above-mentioned books, the suggestions and supervision of my teacher and
my class experience also helped me to develop this software project.