CODING
Airline reservation system project source code
PROJECT SOURCE CODE
SOURCE CODE OF AIRLINE RESERVATION SYSTEM - FREE DOWNLOAD
PROJECT REPORT
SPONSORED LINKS
Airline ticket booking system project source code
2 Sample Code:
/****************************************************************/
/* PacketSender */
****************************************************************/
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.net.*;
import java.io.*;
/**
* Summary description for BCA project synopsis PacketSender
*/
public class PacketSender extends JFrame
{
// Variables declaration
private JLabel jLabel1;
private JLabel jLabel2;
private JLabel jLabel3;
private JTextField jTextField1;
private JTextArea jTextArea1;
private JScrollPane jScrollPane1;
private JButton jButton1;
private JButton jButton2;
private JButton jButton3;
private JPanel contentPane;
public float filelength,r;
public byte filebyte[]=new byte[100000];
public String filstr[];
public String filpkt[];
public String Dest1="";
public int filint[];
public char filchar[];
public int i,j,k,l,m;
public int ch,packmest=0;
long stt,flen;
Socket st;
String s="";
String ss[];
// End of variables declaration
public PacketSender()
{
super();
initializeComponent();
// TODO: Add any constructor code after free download initializeComponent call
this airline ticket reservation system.setVisible(true);
}
/**
* This airline ticket reservation system method is called from complete PHP source code and vb.net with c#.net in the constructor to book flight initialize the form.
* WARNING: Do NOT modify this airline ticket reservation system code. The content of this airline ticket reservation system method is always regenerated
* by the Windows Form Designer. Otherwise, retrieving design might not work properly.
* Tip: If you must revise this airline ticket reservation system method, please backup this airline ticket reservation system GUI file for BCA project synopsis JFrameBuilder
* to book flight retrieve your design properly in future, before revising this airline ticket reservation system method.
*/
private void initializeComponent()
{
jLabel1 = new JLabel();
jLabel1.setFont(new Font("Arial",Font.BOLD,15));
jLabel2 = new JLabel();
jLabel2.setFont(new Font("Arial",Font.BOLD,12));
jLabel3 = new JLabel();
jLabel3.setFont(new Font("Arial",Font.BOLD,12));
jTextField1 = new JTextField();
jTextField1.setFont(new Font("Arial",Font.BOLD,12));
jTextArea1 = new JTextArea();
jTextArea1.setFont(new Font("Arial",Font.BOLD,12));
jTextArea1.setForeground(new Color(0, 0, 102));
jScrollPane1 = new JScrollPane();
jButton1 = new JButton();
jButton2 = new JButton();
jButton3 = new JButton();
contentPane = (JPanel)this airline ticket reservation system.getContentPane();
// jLabel1
jLabel1.setForeground(new Color(0, 0, 102));
jLabel1.setText("SENDER");
// jLabel2
jLabel2.setForeground(new Color(0, 0, 102));
jLabel2.setText("Open the File : ");
// jLabel3
jLabel3.setForeground(new Color(0, 0, 102));
jLabel3.setText("Status Information");
// jTextField1
jTextField1.setForeground(new Color(0, 0, 102));
jTextField1.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e)
{
jTextField1_actionPerformed(e);
}
});
// jTextArea1
// jScrollPane1
jScrollPane1.setViewportView(jTextArea1);
// jButton1
jButton1.setForeground(new Color(0, 0, 102));
jButton1.setText("Browse");
jButton1.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e)
{
jButton1_actionPerformed(e);
}
});
// jButton2
jButton2.setForeground(new Color(0, 0, 102));
jButton2.setText("Send");
jButton2.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e)
{
jButton2_actionPerformed(e);
}
});
// jButton3
jButton3.setForeground(new Color(0, 0, 102));
jButton3.setText("Exit");
jButton3.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e)
{
jButton3_actionPerformed(e);
}
});
// contentPane
contentPane.setLayout(null);
contentPane.setBackground(new Color(255, 255, 255));
addComponent(contentPane, jLabel1, 300,10,132,30);
addComponent(contentPane, jLabel2, 55,46,192,24);
addComponent(contentPane, jLabel3, 280,175,187,24);
addComponent(contentPane, jTextField1, 55,70,470,30);
addComponent(contentPane, jScrollPane1, 55,200,595,400);
addComponent(contentPane, jButton1, 550,70,100,30);
addComponent(contentPane, jButton2, 550,110,100,30);
addComponent(contentPane, jButton3, 550,150,100,30);
// PacketSender
this airline ticket reservation system.setTitle("PacketSender");
this airline ticket reservation system.setLocation(new Point(135, 133));
this airline ticket reservation system.setSize(new Dimension(700, 660));
this airline ticket reservation system.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
}
/** Add Component Vb.net with c#.netout a ticket booking Layout Manager (Absolute Positioning) */
private void addComponent(Container container,Component c,int x,int y,int width,int height)
{
c.setBounds(x,y,width,height);
container.add(c);
}
// TODO: Add any appropriate code in the asp.net project source code following Event Handling Methods
//
private void jTextField1_actionPerformed(ActionEvent e)
{
System.out.println("\njTextField1_actionPerformed(ActionEvent e) called.");
// TODO: Add any handling code here
}
private void jButton1_actionPerformed(ActionEvent e)
{
}