.

Sunday, June 6, 2010

MessageBox MODULE AIRLINE RESERVATION PROJECT

import java.awt.*;
import java.awt.event.*;
public class MessageBox extends Dialog implements ActionListener{
GridBagLayout gbl;
GridBagConstraints gbc;
FlowLayout F;
Button b1;
Label l;
Font f1,f2;
MessageBox(Frame fm) {
super(fm,true);
setBackground(Color.cyan);
f1 = new Font("Times Roman",Font.BOLD,20);
f2 = new Font("Times Roman",Font.BOLD,15);
gbl=new GridBagLayout();
gbc=new GridBagConstraints();
setLayout(gbl);
l=new Label("Incorrect username or password",Label.CENTER);
l.setFont(f1);
b1 = new Button(" OK ");
b1.setFont(f2);
gbc.gridx=0;
gbc.gridy=0;
gbl.setConstraints(l,gbc);
add(l);
gbc.gridx=0;
gbc.gridy=4;
gbl.setConstraints(b1,gbc);
add(b1);
setSize(350,200);
setTitle("Message Box");
b1.addActionListener(this);
addWindowListener(new X());
} public void actionPerformed(ActionEvent ae) {
if(ae.getSource()==b1) {
setVisible(false);
dispose();
}
}
class X extends WindowAdapter { public void windowClosing(WindowEvent e) {
setVisible(false);
dispose(); }
}
}


NEXT ==>> PROJECT MODULE
for source code part 1 class MainMenu click here
for source code part 2 class LoginFrame click here
for source code part 3 class Emprptwindow click here
for source code part 4 class Editwindow click here
for source code part 5 class Deletewindow click here
for source code part 6 class clsSettings click here
for source code part 7 class Settingswindowclick here
for source code part 8 class printwindow here
for source code part 9 class Addwindow here
PART 10: PROJECT MODULE
THE COMPLETE SOURCE CODE OF PROJECT MODULE IS HERE CREATE A JAVA FILE NAMED PROJECT .java AND COPY THE below
import java.awt.*;
import java.awt.event.*;
public class Project extends Frame{public static void main(String args[]){
Login L = new Login();
L.setLocation(200,100);
L.setSize(300,300);
L.setVisible(true);
L.setTitle("Login Screen");
}
}

CLICK HERE TO GET THE COMPLETE SOURCE CODE

AIRLINE RESERVATION SYSTEM :LOGIN MODULE


BACK <<==AIRLINE RESERVATION SYSTEM :CONFIRM MODULE AIRLINE RESERVATION SYSTEMBTECH /MCA /MSC/BSC ACADEMIC PROJECTS FREE DOWNLOAD PROJECT : AIRLINE RESERVATION SYSTEM PART 1 : PROJECT DETAILS PART 2 :MAINMENU MODULE PART 3 : Reservation MODULE PART 4 : TICKET MODULE PART 5: WAITING MODULE PART 6 : WARNING MODULE PART 7: CONFIRM MODULE PART 8 :CREATE MODULE PART 9 : LOGIN MODULE THE COMPLETE SOURCE CODE OF LOGIN MODULE IS HERECREATE A JAVA FILE NAMED LOGIN .java AND COPY THE below import java.awt.*; import java.awt.event.*; public class Login extends Frame implements ActionListener { String username = "anu"; String password = "rag"; TextField t1,t2; Label l1,l2,l3,l4,l5,l6; Button b2,b3,b4; GridBagLayout gbl; GridBagConstraints gbc; Font f1,f2; public Login() { //setTitle("Login Screen"); //g = new GridLayout(4,2,0,60); //setLayout(g); setBackground(Color.cyan); f1 = new Font("TimesRoman",Font.BOLD,20); f2 = new Font("TimesRoman",Font.BOLD,15); gbl=new GridBagLayout(); gbc=new GridBagConstraints(); setLayout(gbl); l1 = new Label("Username",Label.CENTER); l1.setFont(f1); l2 = new Label("Password",Label.CENTER); l2.setFont(f1); l3 = new Label(""); l4 = new Label(""); l5 = new Label(""); l6 = new Label(""); t1 = new TextField(15); t2 = new TextField(15); t2.setEchoChar('*'); //b1 = new Button("Change Login Details"); b2 = new Button("Reset"); b2.setFont(f2); b3 = new Button("Submit"); b3.setFont(f2); b4 = new Button("Close"); b4.setFont(f2); gbc.gridx=0; gbc.gridy=0; gbl.setConstraints(l1,gbc); add(l1); gbc.gridx=2; gbc.gridy=0; gbl.setConstraints(t1,gbc); add(t1); gbc.gridx=0; gbc.gridy=2; gbl.setConstraints(l2,gbc); add(l2); gbc.gridx=2; gbc.gridy=2; gbl.setConstraints(t2,gbc); add(t2); gbc.gridx=0; gbc.gridy=4; gbl.setConstraints(l3,gbc); add(l3); gbc.gridx=2; gbc.gridy=4; gbl.setConstraints(l4,gbc); add(l4); gbc.gridx=0; gbc.gridy=6; gbl.setConstraints(b2,gbc); add(b2); gbc.gridx=2; gbc.gridy=6; gbl.setConstraints(b3,gbc); add(b3); gbc.gridx=0; gbc.gridy=8; gbl.setConstraints(l4,gbc); add(l4); gbc.gridx=2; gbc.gridy=8; gbl.setConstraints(l5,gbc); add(l5); gbc.gridx=0; gbc.gridy=10; gbl.setConstraints(b4,gbc); add(b4); //add(l1); //add(t1); //add(l2); //add(t2); //add(b1); //add(b2); //add(b3); //add(b4); //b1.addActionListener(this); b2.addActionListener(this); b3.addActionListener(this); b4.addActionListener(this); } /*public Insets getInsets() { return new Insets(40,40,40,40); }*/ public void actionPerformed(ActionEvent ae) { if(ae.getSource()==b2) { t1.setText(""); t2.setText(""); } if(ae.getSource()==b4) { System.exit(0); } if(ae.getSource()==b3) { if((t1.getText().equals(username))&&(t2.getText().equals(password))) { MainMenu m = new MainMenu(); setVisible(false); m.setSize(400,400); m.setVisible(true); m.setTitle("Main Menu"); } else { //Warning w = new Warning(); //w.setSize(300,200); //w.setVisible(true); //w.setTitle("Message Box"); MessageBox mb = new MessageBox(this); mb.setLocation(200,200); mb.setVisible(true); } } /*if(ae.getSource() == b1) { Change c = new Change(); c.setSize(400,400); c.setVisible(true); c.setTitle("Screen for Changing Login Details"); }*/ } } NEXT ==>>
MESSAGEBOX MODULE

AIRLINE RESERVATION SYSTEM :CREATE MODULE

BACK <<==AIRLINE RESERVATION SYSTEM :CONFIRM MODULE
AIRLINE RESERVATION SYSTEMBTECH /MCA /MSC/BSC ACADEMIC PROJECTS FREE DOWNLOADPROJECT : AIRLINE RESERVATION SYSTEM

PART 1 : PROJECT DETAILS

PART 2 :MAINMENU MODULE

PART 3 : Reservation MODULE

PART 4 : TICKET MODULE

PART 5: WAITING MODULE

PART 6 : WARNING MODULE

PART 7: CONFIRM MODULE

PART 8 :CREATE MODULE

THE COMPLETE SOURCE CODE OF CREATE MODULE IS HERECREATE A JAVA FILE NAMED CREATE .java AND COPY THE below



import java.awt.*;
import java.awt.event.*;

public class Confirmed extends Frame
{
Confirmed()
{
addWindowListener(new W());
}
class W extends WindowAdapter
{
public void windowClosing(WindowEvent e)
{
setVisible(false);
//dispose();
System.exit(0);

}
}
}

NEXT ==>>LOGIN MODULE(AIRLINE RESERVATION PROJECT CONTINUED...)

AIRLINE RESERVATION SYSTEM :CONFIRM MODULE

AIRLINE RESERVATION SYSTEM
BTECH /MCA /MSC/BSC ACADEMIC PROJECTS FREE DOWNLOAD
PROJECT : AIRLINE RESERVATION SYSTEM
PART 1 : PROJECT DETAILS
PART 2 :MAINMENU MODULE
PART 3 : Reservation MODULE
PART 4 : TICKET MODULE
PART 5: WAITING MODULE
PART 6 : WARNING MODULE
PART 7: CONFIRM MODULE
THE COMPLETE SOURCE CODE OF CONFIRM MODULE IS HERECREATE A JAVA FILE NAMED CONFIRM .java AND COPY THE below

import java.awt.*;
import java.awt.event.*;

public class Confirmed extends Frame
{
Confirmed()
{
addWindowListener(new W());
}
class W extends WindowAdapter
{
public void windowClosing(WindowEvent e)
{
setVisible(false);
//dispose();
System.exit(0);

}
}
}

NEXT ==>>CREATION MODULE (AIRLINE RESERVATION PROJECT CONTINUED...)

AIRLINE RESERVATION SYSTEM :WAITING MODULE

AIRLINE RESERVATION SYSTEM
MODULE 3
PROJECT : AIRLINE RESERVATION SYSTEM
PART 1 : PROJECT DETAILS
PART 2 :MAINMENU MODULE
PART 3 : Reservation MODULE
PART 4 : TICKET MODULE
PART 5: WAITING MODULE
PART 6 : WARNING MODULE
THE COMPLETE SOURCE CODE OF WAITING MODULE IS HERECREATE A JAVA FILE NAMED WaRNING.java AND COPY THE below

import java.awt.*;
import java.awt.event.*;
public class Warning extends Frame {
GridLayout g;
Button b1;
Label l;
Warning() {
g = new GridLayout(2,1,10,40);
setLayout(g);
l = new Label("Incorrect username or password",Label.CENTER);
b1 = new Button("Ok");
add(l);
add(b1);
b1.addActionListener(new Y());
addWindowListener(new X());
} class Y implements ActionListener {
public void actionPerformed(ActionEvent ae) {
if(ae.getSource()==b1) {
//dispose(); System.exit(0);
}
}
}
class X extends WindowAdapter { public void windowClosing(WindowEvent e) {
setVisible(false);
dispose();
}
}
public Insets getInsets() {
return new Insets(40,40,40,40);
} /*public static void main(String args[]) {
Warning m = new Warning();
m.setTitle("Message Box");
m.setSize(300,200);
m.setVisible(true);
}*/
}
NEXT ==>>CONFIRMED MODULE (AIRLINE RESERVATION PROJECT CONTINUED...)

PROJECT : AIRLINE RESERVATION SYSTEM :WAITING MODULE

AIRLINE RESERVATION SYSTEM MODULE 3
PROJECT : AIRLINE RESERVATION SYSTEM
PART 1 : PROJECT DETAILS
PART 2 :MAINMENU MODULE
PART 3 : Reservation MODULE
PART 4 : TICKET MODULE
PART 5: WAITING MODULE
THE COMPLETE SOURCE CODE OF WAITING MODULE IS HERECREATE A JAVA FILE NAMED Waiting.java AND COPY THE below

import java.awt.*;
import java.awt.event.*;

public class Waiting extends Frame {
Waiting() {
addWindowListener(new W());
}
class W extends WindowAdapter {
public void windowClosing(WindowEvent e) {
setVisible(false);
//dispose();
System.exit(0);
}
}
}
NEXT ==>>WARNING MODULE (AIRLINE RESERVATION SYSTEM CONTINUE...)
AIRLINE RESERVATION SYSTEM MODULE 3
PROJECT : AIRLINE RESERVATION SYSTEM
PART 1 : PROJECT DETAILS
PART 2 :MAINMENU MODULE
PART 3 : Reservation MODULE
PART 4 : TICKET

THE COMPLETE SOURCE CODE OF TICKET MODULE IS HERE
CREATE A JAVA FILE NAMED Ticket.java AND COPY THE below code
import java.sql.*;
import java.awt.*;
import java.awt.event.*;
public class Ticket extends Frame implements ActionListener
{
TextField t1;
Label l1;
Button b1;
GridBagLayout gbl;
GridBagConstraints gbc;
Connection con;
PreparedStatement ps;
Statement stmt;
ResultSet rs;
int count;
Font f;
Ticket()
{
setBackground(Color.cyan);
t1 = new TextField(20);
l1 = new Label("PNR NO ");
l1.setFont(f);
gbc.gridx=0;
gbc.gridy=0;
gbl.setConstraints(l1,gbc);
add(l1);

gbc.gridx=0;
gbc.gridy=2;
gbl.setConstraints(t1,gbc);
add(t1);
addWindowListener(new W());
}
public void actionPerformed(ActionEvent ae)
{
}
class W extends WindowAdapter
{
public void windowClosing(WindowEvent e)
{
setVisible(false);
dispose();
}
}

/* public static void main(String args[])
{
Ticket t = new Ticket();
t.setSize(400,500);
t.setVisible(true);
t.setTitle("Ticket Screen");

}*/

}

NEXT ==>>WAITING MODULE(AIRLINE RESERVATION PROJECT CONTINUE...)

AIRLINE RESERVATION SYSTEM MODULE 3

PROJECT : AIRLINE RESERVATION SYSTEM
PART 1 : PROJECT DETAILS
PART 2 :MAINMENU MODULE
PART 3 : Reservation MODULE
THE COMPLETE SOURCE CODE OF RESERVATION MODULE IS HERE
CREATE A JAVA FILE NAMED Reservation.java AND COPY THE below code

import java.awt.*;import java.awt.event.*;
public class Reservation extends Frame implements ActionListener {
Button b1,b2,b3;
Label l1,l2;
GridBagLayout gbl;
GridBagConstraints gbc;
Font f;
Reservation() {
setBackground(Color.cyan);
f = new Font("TimesRoman",Font.BOLD,20);
gbl=new GridBagLayout();
gbc=new GridBagConstraints();
setLayout(gbl);
b1=new Button("Check Availability");
b1.setFont(f);
b2=new Button(" Create Passenger ");
b2.setFont(f);
// b3=new Button(" Fare Teller ");
// b3.setFont(f);
l1= new Label("");
l2= new Label("");
gbc.gridx=0;
gbc.gridy=0;
gbl.setConstraints(b1,gbc);
add(b1);

gbc.gridx=0;
gbc.gridy=4;
gbl.setConstraints(l1,gbc);
add(l1);
gbc.gridx=0;
gbc.gridy=8;
gbl.setConstraints(b2,gbc);
add(b2);
/* gbc.gridx=0; gbc.gridy=12; gbl.setConstraints(l2,gbc); add(l2);
gbc.gridx=0; gbc.gridy=16; gbl.setConstraints(b3,gbc); add(b3);
*/
b1.addActionListener(this);
b2.addActionListener(this);
// b3.addActionListener(this);
addWindowListener(new W());
}
public void actionPerformed(ActionEvent ae) {
if(ae.getSource()==b1) {
Check m = new Check();
//setVisible(false);
m.setSize(400,400);
m.setVisible(true);
m.setTitle("Check Availability Screen");
} if(ae.getSource()==b2) {
Create v = new Create();
//setVisible(false);
v.setSize(400,500);
v.setVisible(true);
v.setTitle("Create Passenger Screen");
} /* if(ae.getSource()==b3) { Fare f = new Fare(); //setVisible(false); f.setSize(400,500); f.setVisible(true); f.setTitle("Fare Teller Screen"); }
*/
} class W extends WindowAdapter {
public void windowClosing(WindowEvent e) {
setVisible(false);
dispose();
}
}
}

NEXT ==>> TICKET MODULE (AIRLINE RESERVATION SYSTEM)

MainMenu

PROJECT : AIRLINE RESERVATION SYSTEM
FOR FIRST PART CLICK HERE
SECOND PART :MAINMENU
MainMenu .java here we r creating MainMenu.java for our airline reservation project
the java code for airline reservation academic project for btech and mca,bsc fina year students is given below
/* all rights are reserved this code only for education purpose not for any business activity without author permission
File : MainMenu .java
Author : JohnJustin
site : http://johnjustin.tk/
http://technoparklive.com/
contact : johnjustin@in.com
*/
import java.awt.*;
import java.awt.event.*;
public class MainMenu extends Frame implements ActionListener {

MenuBar mbar;
Menu m1,m2,m3;
MenuItem m1_1,m1_2,m2_1,m2_2,m2_3,m3_1;
public MainMenu() {
mbar = new MenuBar();
setMenuBar(mbar);
m1=new Menu("Bookings");
mbar.add(m1);
m1_1 = new MenuItem("Reservation");
m1.add(m1_1);
m1_2 = new MenuItem("Cancellation");
m1.add(m1_2);
m2=new Menu("Reports");
mbar.add(m2);
m2_1 = new MenuItem("Confirmed Passengers");
m2.add(m2_1);
m2_2 = new MenuItem("Waiting");
m2.add(m2_2);
m2_3 = new MenuItem("Daily Collection Report");
m2.add(m2_3);
m3=new Menu("Close");
mbar.add(m3);
m3_1 = new MenuItem("Close");
m3.add(m3_1);
m1_1.addActionListener(this);
m1_2.addActionListener(this);
m2_1.addActionListener(this);
m2_2.addActionListener(this);
m2_3.addActionListener(this);
m3_1.addActionListener(this);
addWindowListener(new M());
}
public void actionPerformed(ActionEvent ae) { i
f(ae.getSource()==m1_1) {
Reservation r = new Reservation();
r.setSize(400,400);
r.setVisible(true);
r.setTitle("Reservation Screen");

} if(ae.getSource()==m1_2) {
Cancellation c = new Cancellation();
c.setSize(400,400);
c.setVisible(true
c.setTitle("Cancellation Screen");

} if(ae.getSource()==m2_1) {
Confirmed cr = new Confirmed();
cr.setSize(400,400);
cr.setVisible(true);
cr.setTitle("Confirmed Passengers List");
}
if(ae.getSource()==m2_2) {
Waiting wr = new Waiting();
wr.setSize(400,400);
wr.setVisible(true);
wr.setTitle("Waiting List");
}
if(ae.getSource()==m2_3) {
Collection dcr = new Collection();
dcr.setSize(400,400);
dcr.setVisible(true);
dcr.setTitle("Daily Collection Report");

} if(ae.getSource()==m3_1) {
System.exit(0); }
}
/*public static void main(String args[]) {
MainMenu m = new MainMenu();
m.setTitle("Main Menu");
m.setSize(400,400);
m.setVisible(true);
}*/
class M extends WindowAdapter {
public void windowClosing(WindowEvent e) {
setVisible(false);
dispose();
}
}
}
NEXT ==>> RESERVAATION MODULE PLS CLICK HERE

Airways_reservation_system java academic project

free download Airways_reservation_system core java academic project
this project can be useful for submitting as academic project for btech,bsc,msc and pg students.this java academic project is free and easy downloadable from here.this free downloadable java project is used by hundreds of students from world wide and they present this application as their final year btech/mca/bsc/be academic project

modules of this project consist of
1)MainMenu
2)Reservation
3) Ticket
4)waiting
5)Warning
6)Confirmed
7)Create
8)Login
9)MessageBox
10)Project


we can start step by step .the first step is main menu
NEXT=>> click here to see the mainmenu code

Google Ads