AJP Microprojectfinallast
AJP Microprojectfinallast
Submitted by
Department of Information
TechnologySandip Polytechnic
Mahiravani, Nashik - 422213
Affiliated to
Maharashtra State
Board of Technical Education
Certificate
This is to certify that Mr. Harshada Gangadhar Dighe with Roll No- 13 has successfully completed Micro-project
in course Advanced Java Programming(22517) for the academic year 2023-24 as prescribed in the 'Assessment
Manual' during his tenure of completing fifth Semester of Diploma Program in Information Technology from
institute, Sandip Polytechnic with institute code 1167.
Certificate
This is to certify that Ms. Rohini Ganesh Bramhane with Roll No- 34 has successfully completed Micro- project
in course Advanced Java Programming(22517) for the academic year 2023-24 as prescribed in the 'Assessment
Manual' during his/her tenure of completing fifth Semester of Diploma Program in Computer Engineering from
institute, Sandip Polytechnic with institute code 1167.
Certificate
This is to certify that Mr. Sayali Ravidas Raut with Roll No- 52 has successfully completed Micro-project in course
Advanced Java Programming(22517) for the academic year 2023-24 as prescribed in the 'Assessment Manual'
during his/her tenure of completing fifth Semester of Diploma Program in Information Technology from institute,
Sandip Polytechnic with institute code 1167.
Certificate
This is to certify that Mr. Saurabh Vilas Chavan with Roll No- 45 has successfully completed Micro-project in
course Advanced Java Programming(22517) for the academic year 2023-24 as prescribed in the 'Assessment
Manual' during his/her tenure of completing fifth Semester of Diploma Program in Information Technology from
institute, Sandip Polytechnic with institute code 1167.
1.0 Rationale:
The Java-based Vehicle Booking System facilitates quick vehicle selection, enabling
customers to effortlessly book and confirm their preferred vehicles and additional features.
Through its intuitive interface, the system provides instant confirmations, ensuring a
streamlined and
}
});
f1.setVisible(true);
}
public void Login() //Login Page
{
f2=new JFrame("Login_page");
f2.setSize(1000,600);
f2.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
Color head=new Color(208,212,0);
f2.setBackground(head);
JLabel registration=new JLabel("Registration Form");
Font fn=new Font("Serif",Font.BOLD,40); //Font size of Registration label
registration.setFont(fn);
f2.add(registration,BorderLayout.NORTH);
registration.setHorizontalAlignment(JLabel.CENTER); //Horizontal Center
JPanel p2=new JPanel(new FlowLayout()); //Outer Green Panel
Color custom=new Color(204,225,102);
p2.setBackground(custom);
f2.add(p2,BorderLayout.CENTER);
JPanel innerpanel=new JPanel(new GridBagLayout()); //Inner White Pannel
innerpanel.setBackground(Color.WHITE);
innerpanel.setPreferredSize(new Dimension(400,500));
//p2.add(innerpanel);
JLabel notice1=new JLabel("* Please Fill all the below details *");
Font fn2=new Font("Serif",Font.ITALIC,15); //Font size of Notice label
notice1.setFont(fn2);
JLabel lname=new JLabel("Name :"); //Name Field
JTextField tname=new JTextField(10);
name=tname.getText();
JLabel lcontact=new JLabel("Contact.no :"); //Contact Field
JTextField tcontact=new JTextField(10);
contact=tcontact.getText();
JLabel lgmail=new JLabel("Gmail :"); //Gmail Field
JTextField tgmail=new JTextField(15);
gmail=tgmail.getText();
String[] items={"Mumbai","Nashik"};
JLabel lcity=new JLabel("Your City :"); //City Field
JComboBox<String> city=new JComboBox<>(items);
city.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent e)
{
String selectCity=(String) city.getSelectedItem();
}
});
//String City=city.getSelectedItem(toString());
g.gridwidth=1;
innerpanel.add(lname,g);
g.gridx=1;
g.gridy=1;
innerpanel.add(tname,g);
g.gridx=0; //Contact Field Alignment
g.gridy=2;
innerpanel.add(lcontact,g);
g.gridx=1;
g.gridy=2;
innerpanel.add(tcontact,g);
g.gridx=0; //City Field Alignment
g.gridy=3;
innerpanel.add(lcity,g);
g.gridx=1;
g.gridy=3;
innerpanel.add(city,g);
g.gridx=0; //Gmail Field Alignment
g.gridy=4;
innerpanel.add(lgmail,g);
g.gridx=1;
g.gridy=4;
innerpanel.add(tgmail,g);
g.gridx=0; //Clear/Next Field Alignment
g.gridy=5;
innerpanel.add(clear1,g);
g.gridx=1;
g.gridy=5;
innerpanel.add(next1,g);
clear1.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent ae)
{
tname.setText("");
tcontact.setText("");
tgmail.setText("");
}
});
p2.add(innerpanel);
next1.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent ae)
{
f2.setVisible(false); //Closing Current Frame
f3.setVisible(true); //Opening Next Frame
}
});
//p2.add(innerpanel);
}
public void Rooms() //Available Rooms Page
{
f3=new JFrame("Booking page");
f3.setSize(1000,600);
f3.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
Color head2=new Color(208,212,0);
f3.setBackground(head2);
JLabel rooms=new JLabel("Available Vehicles");
Font fn=new Font("Serif",Font.BOLD,40); //Font size of Rooms label
rooms.setFont(fn);
f3.add(rooms,BorderLayout.NORTH);
rooms.setHorizontalAlignment(JLabel.CENTER); //Horizontal Center
JPanel p3=new JPanel(new FlowLayout()); //Outer Green Panel
Color custom3=new Color(204,225,102);
p3.setBackground(custom3);
f3.add(p3,BorderLayout.CENTER);
JPanel innerpanel3=new JPanel(new GridBagLayout()); //Inner White Pannel
innerpanel3.setBackground(Color.WHITE);
innerpanel3.setPreferredSize(new Dimension(800,700));
//p3.add(innerpanel3);
JScrollPane scroll3= new JScrollPane(innerpanel3); //ScrollBar for Panel
p3.add(scroll3);
JLabel notice3=new JLabel("* Select a vehicle type *");
Font fn3=new Font("Serif",Font.ITALIC,20); //Font size of Notice label
notice3.setFont(fn3);
//*******Rooms Button*******
ImageIcon singleR=new ImageIcon("D:\\ajpmicropro\\06b94ba2-9d7b-11ec-a178-
89860fd7e8e1_1646592077674_1651693185203.jpg");
//Single Room Button
Image originalImage1=singleR.getImage();
int newWidth1=250;
int newHeight1=230;
Image
resizedImage1=originalImage1.getScaledInstance(newWidth1,newHeight1,Image.SCALE_SMOOTH);
ImageIcon singleI=new ImageIcon(resizedImage1);
JButton single = new JButton(singleI);
single.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent ae)
{
Roomtype="Single Bed Room";
}
});
JLabel singleL=new JLabel("50 Seat Bus : 10000"); //end single
ImageIcon doubleR=new ImageIcon("D:\\ajpmicropro\\downloadhi.jpg");
//Double Room Button
Image originalImage2=doubleR.getImage();
int newWidth2=250;
int newHeight2=230;
Image
resizedImage2=originalImage2.getScaledInstance(newWidth2,newHeight2,Image.SCALE_SMOOTH);
ImageIcon doubleI=new ImageIcon(resizedImage2);
JButton Double = new JButton(doubleI);
Double.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent ae)
{
Roomtype="Double Bed Room";
}
});
JLabel doubleL=new JLabel("Mini Van : ₹2000"); //end
ImageIcon tripleR=new ImageIcon("D:\\ajpmicropro\\download.jpg");
//Triple Room Button
Image originalImage3=tripleR.getImage();
int newWidth3=250;
int newHeight3=230;
Image
resizedImage3=originalImage3.getScaledInstance(newWidth3,newHeight3,Image.SCALE_SMOOTH);
ImageIcon tripleI=new ImageIcon(resizedImage3);
JButton triple = new JButton(tripleI);
triple.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent ae)
{
Roomtype="Triple Bed Room";
}
});
JLabel tripleL=new JLabel("SUV Car : ₹3000"); //end triple
ImageIcon quadR=new ImageIcon("D:\\ajpmicropro\\images.jpg");
//Quad Room Button
Image originalImage4=quadR.getImage();
int newWidth4=250;
int newHeight4=230;
Image
resizedImage4=originalImage4.getScaledInstance(newWidth4,newHeight4,Image.SCALE_SMOOTH);
ImageIcon quadI=new ImageIcon(resizedImage4);
JButton quad = new JButton(quadI);
quad.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent ae)
{
Roomtype="Quad Bed Room";
}
});
JLabel quadL=new JLabel("Traveller : ₹7000"); //end quad
JButton next3=new JButton("Next"); //Next Button
next3.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent ae)
{
f3.setVisible(false); //Closing Current Frame
f4.setVisible(true); //Opening Next Frame
}
});
GridBagConstraints g3=new GridBagConstraints();
g3.insets=new Insets(10,10,10,10);
g3.gridx=0; //Notice Label Alignment
g3.gridy=0;
g3.gridwidth=2;
g3.anchor=GridBagConstraints.NORTH;
innerpanel3.add(notice3,g3);
g3.gridx=0; //Single Room Alignment
g3.gridy=1;
g3.gridwidth=1;
innerpanel3.add(single,g3);
g3.gridx=0;
g3.gridy=2;
innerpanel3.add(singleL,g3);
g3.gridx=1; //Double Room Alignment
g3.gridy=1;
g3.gridwidth=1;
innerpanel3.add(Double,g3);
g3.gridx=1;
g3.gridy=2;
innerpanel3.add(doubleL,g3);
g3.gridx=0; //Triple Room Alignment
g3.gridy=3;
g3.gridwidth=1;
innerpanel3.add(triple,g3);
g3.gridx=0;
g3.gridy=4;
innerpanel3.add(tripleL,g3);
g3.gridx=1; //Quad Room Alignment
g3.gridy=3;
g3.gridwidth=1;
innerpanel3.add(quad,g3);
g3.gridx=1;
g3.gridy=4;
innerpanel3.add(quadL,g3);
g3.gridx=0; //Next Button Alignment
g3.gridy=5;
g3.gridwidth=2;
g3.anchor=GridBagConstraints.SOUTH;
innerpanel3.add(next3,g3);
//p3.add(innerpanel3);
//JScrollPane scroll3= new JScrollPane(innerpanel3); //ScrollBar for Panel
//p3.add(scroll3);
}
public void Date() //Date page
{
f4=new JFrame("Check IN/OUT_page");
f4.setSize(1000,550);
f4.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
Color head4=new Color(208,212,0);
f4.setBackground(head4);
JLabel registration4=new JLabel("Pick Up/Drod Date");
Font fn4=new Font("Serif",Font.BOLD,40); //Font size of Registration label
registration4.setFont(fn4);
f4.add(registration4,BorderLayout.NORTH);
registration4.setHorizontalAlignment(JLabel.CENTER); //Horizontal Center
JPanel p4=new JPanel(new FlowLayout()); //Outer Green Panel
Color custom4=new Color(204,225,102);
p4.setBackground(custom4);
f4.add(p4,BorderLayout.CENTER);
JPanel innerpanel4=new JPanel(new GridBagLayout()); //Inner White Pannel
innerpanel4.setBackground(Color.WHITE);
innerpanel4.setPreferredSize(new Dimension(350,400));
p4.add(innerpanel4);
JLabel notice4=new JLabel("* Please Fill the Pick UP/Drop date *");
notice4.setFont(fn);
JLabel lcheck_in=new JLabel("Pick Up :"); //Check IN Field
JTextField tcheck_in=new JTextField(10);
checkin=tcheck_in.getText();
JLabel lcheck_out=new JLabel("Drop :");//Check OUT Field
JTextField tcheck_out=new JTextField(10);
checkout=tcheck_out.getText();
JButton clear4=new JButton("Clear"); //Clear Button
JButton next4=new JButton("Next"); //Next Button
GridBagConstraints g4=new GridBagConstraints();
g4.insets=new Insets(10,10,10,10);
g4.gridx=0; //Notice Label Alignment
g4.gridy=0;
g4.gridwidth=2;
g4.anchor=GridBagConstraints.NORTH;
innerpanel4.add(notice4,g4);
g4.gridx=0; //Check IN Field Alignment
g4.gridy=1;
g4.gridwidth=1;
innerpanel4.add(lcheck_in,g4);
g4.gridx=1;
g4.gridy=1;
innerpanel4.add(tcheck_in,g4);
g4.gridx=0; //Check OUT Field Alignment
g4.gridy=2;
innerpanel4.add(lcheck_out,g4);
g4.gridx=1;
g4.gridy=2;
innerpanel4.add(tcheck_out,g4);
g4.gridx=0; //Next/Clear Alignment
g4.gridy=3;
innerpanel4.add(clear4,g4);
g4.gridx=1;
g4.gridy=3;
innerpanel4.add(next4,g4);
clear4.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent ae)
{
tcheck_in.setText("");
tcheck_out.setText("");
}
});
p4.add(innerpanel4);
next4.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent ae)
{
f4.setVisible(false); //Closing Current Frame
f5.setVisible(true); //Opening Next Frame
JOptionPane.showMessageDialog(f4,"Press 'OK' button to Pay and confirm booking")});
}
public void Receipt() //Receipt Page{
f5=new JFrame("Receipt_Page");
f5.setSize(1000,500);
f5.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
Color head5=new Color(208,212,0);
f5.setBackground(head5);
//JOptionPane.showMessageDialog(f5,"Press 'OK' button to Pay and confirm booking");
JLabel registration5=new JLabel("Confirmation Reciept");
Font fn5=new Font("Serif",Font.BOLD,40); //Font size of Registration label
registration5.setFont(fn5);
f5.add(registration5,BorderLayout.NORTH);
registration5.setHorizontalAlignment(JLabel.CENTER); //Horizontal Center
JPanel p5=new JPanel(new BorderLayout()); //Outer Green Panel
Color custom5=new Color(204,225,102);
p5.setBackground(custom5);
f5.add(p5,BorderLayout.CENTER);
JLabel confirm=new JLabel("Your Trip has been confirmed");
Font fn=new Font("Serif",Font.ITALIC,30); //Font size of Confirm label
confirm.setFont(fn);
p5.add(confirm,BorderLayout.CENTER);
confirm.setHorizontalAlignment(JLabel.CENTER);
}
public static void main(String args[])
{
Resort r=new Resort();
r.Welcome();
r.Login();
r.Rooms();
r.Date();
r.Receipt();
}}
8.0 Skill Developed:
1. Teamwork
2. Communication skills
3. Successfully created a application using Advance Java programming.
(A) (B)
Total Marks
Process and Product Assessment Individual Presentation/Viva
(10 Marks)
(6 Marks) (4 Marks)
(A) (B)
Total Marks
Process and Product Assessment Individual Presentation/Viva
(10 Marks)
(6 Marks) (4 Marks)
(A) (B)
Total Marks
Process and Product Assessment Individual Presentation/Viva
(10 Marks)
(6 Marks) (4 Marks)
(A) (B)
Total Marks
Process and Product Assessment Individual Presentation/Viva
(10 Marks)
(6 Marks) (4 Marks)