0% found this document useful (0 votes)
12 views14 pages

Cruise Management System: Kashish Giri

The document outlines a micro-project titled 'Cruise Management System' developed by Kashish Giri as part of a Diploma in Computer Technology course. It details the project's aim to create a Java-based application using AWT and Swing components, along with the methodology, resources, and skills developed throughout the project. The project culminates in a functional system for managing cruise bookings, emphasizing GUI design and event handling.

Uploaded by

samarthbhuruk
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)
12 views14 pages

Cruise Management System: Kashish Giri

The document outlines a micro-project titled 'Cruise Management System' developed by Kashish Giri as part of a Diploma in Computer Technology course. It details the project's aim to create a Java-based application using AWT and Swing components, along with the methodology, resources, and skills developed throughout the project. The project culminates in a functional system for managing cruise bookings, emphasizing GUI design and event handling.

Uploaded by

samarthbhuruk
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/ 14

Advance Java Programming - 22517 Cruise Management System

Micro project

On

“Cruise Management System”


Submitted By

Kashish Giri(19)

Guided By

Ms. A. D. Mate

Diploma Course in Computer

Technology (As per directives of I

Scheme, MSBTE)

Sinhgad Technical Education Society’s

SOU.VENUTAI CHAVAN POLYTECHNIC

PUNE - 411041

ACADEMIC YEAR 2024-2025

1
Advance Java Programming - 22517 Cruise Management System

Maharashtra State Board of


Technical Education
Certificate
This is to certify that Ms. Kashish Giri with Roll No.19 of Semester V of
Diploma in Computer Technology of Institute Sou. Venutai Chavan
Polytechnic (Code: 0040) has successfully completed the Micro-Project in
Advance Java Programming (22517) for the academic year 2024-2025 as
prescribed in the curriculum.

Program Code: CM Place: Pune


Course Code: CM/5/I Enrolment No: 2200400308

Date: Exam Seat No:

Ms. A. D. Mate Mrs. A.V. Kurkute Dr.(Mrs.) M.S. Jadhav


Course Teacher HOD of Department Principal

2
Advance Java Programming - 22517 Cruise Management System

INDEX

SR NO CONTENTS PAGE NO

1 Aim of the Micro-Project 1

2 Rationale 3

3 Course Outcomes Achieved 3

4 Literature Review 3

5 Actual Methodology Followed 5

6 Actual Resources Used 5

7 Skills Developed 12

8 Conclusion 12

3
Advance Java Programming - 22517 Cruise Management System

Annexure - I
Micro-Project
Proposal
Cruise Management System

1.0 Aim of the Micro-Project:

The aim of the Micro-project is to develop an Cruise Management System in


Java.

2.0 Intended Course Outcomes:

a. Develop a program using GUI framework (AWT and Swing)


b. Handle events of AWT and Swing Components.
c. Develop a program to handle Events in Java Programming.
e. Develop program using database.

3.0 Proposed methodology:

I. Study the concept of JAVA programming.


II. Study various syntax and functions of JAVA.
III. Study to create small programs using JAVA.
IV. Study to create packages and developing a java file in it and importing it.
V. Study to calling the methods of different packages.
VI. Make program for given criteria.
VII. Prepare the final report.

4
Advance Java Programming - 22517 Cruise Management System

4.0 Action Plan:

Name of responsible
Sr. Details of Activity Planned Planned Team members
No. Start Date Finish Date
1 Identify the requirements of the project.
4/10/24 08/10/24 Kashish Giri

2 Design the structure of the project.


8/10/24 14/10/24 Kashish Giri

3 Develop the program using in JAVA.


14/10/24 18/10/24 Kashish Giri

4 Debug code and eliminate errors


occurred. 18/10/24 25/10/24 Kashish Giri

5 Test the project.


25/10/24 1/11/24 Kashish Giri

6 Prepare the final report.


1/11/24 4/11/24 Kashish Giri

5.0 Resources Required:

S. No. Resources required Specifications

1 Computer system Intel(R) Pentium CPU, RAM 16 GB

2 Operating System Windows 11, 64 Bit Operating System


3 Software Command Prompt, Visual Studio Code

6.0 Team members:

S. No. Roll. number Name of Student

1 19 Kashish Giri

5
Advance Java Programming - 22517 Cruise Management System

Annexure - II
Micro-Project Report

1.0 Rationale:

Java, the very popular language for desktop as well as mobile application development, has
some unique features, also it’s an object-oriented programming language.
In this course of microproject I am going to learn about one of Java’s unique feature i.e.,
Package creation and importing it in a program to use its function.
By default, in Java the main class runs in a default java package, but one can create our
own package and can implement classes in and methods, so that I can import that package
to use its functions.

2.0 Aim of the Micro-Project:

The aim of the Micro-project is to develop a Cruise Management System in Java using AWT
and Swing components.

3.0 Course Outcomes Achieved:

a. Develop a program using GUI framework (AWT and Swing)


b. Handle events of AWT and Swing Components
c. Develop a program to handle Events in Java Programming.
e. Develop program using database.

4.0 Literature Review:

1. AWT Components:
AWT, Java's original GUI toolkit, provides a set of platform-dependent components
for building graphical user interfaces. These components include buttons, text fields,
labels, and panels, which were used in the project to create the management system.

2. Swing Components:
Swing, an extension of AWT, offers a more versatile and customizable set of GUI
components. Swing components, such as JFrame, JPanel, JTextField, JButton,
JLabel, and JScrollPane, were central to the project's GUI design.

6
Advance Java Programming - 22517 Cruise Management System

3. JFrame:
The JFrame class serves as the main window for the application. It encapsulates the
entire GUI and provides essential features such as window management and event
handling.

4. JPanel:
JPanel is a versatile container used to group and organize other components. In the
project, it was employed to create distinct sections of the GUI, such as the form panel
and the button panel.

5. JTextField and JLabel:


JTextField components are used for text input, allowing users to enter expense details.
Corresponding JLabel components provide labels for these input fields.

6. JButton:
JButton components represent interactive buttons that trigger actions. In the project,
they were used for the "Save Data" and "Add Cruise Entry" buttons.

7. JScrollPane:
JScrollPane enables scrolling of components that may exceed the visible area. It was
applied to the JTextArea component in the expense division screen to accommodate
potentially lengthy reports.

8. Event Handling:
Both AWT and Swing components support event handling. The project utilized event
listeners and action listeners to capture user interactions, such as button clicks and form
submissions.

9. Layout Managers:
Java provides various layout managers, including FlowLayout and BorderLayout, to
control the arrangement and positioning of components within containers. These layout
managers were utilized to design the GUI layout efficiently.

7
Advance Java Programming - 22517 Cruise Management System

5.0 Actual Methodology Followed:


The aim of the Micro-project is to develop an Cruise Management System in Java using
AWT and Swing components.
I. Study the concept of JAVA programming.
II. Study various syntaxes and functions of JAVA.
III. Study to create small programs using JAVA.
IV. Study to create packages and defining classes in it and importing it.
V. Study to calling the methods of different packages.
VI. Make program for given criteria.
VII. Prepare the final report.

6.0 Actual Resources Used:

S. No. Resources required Specifications

1 Computer system
Intel(R) Pentium CPU, RAM 8 GB

2 Operating System Windows 11, 64 Bit Operating System

3 Software
Java JDK 21, Notepad++, Command Prompt,
Visual Studio Code

7.0 Source Code of Program


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

public class Cruise TicketBookingSystem extends Frame implements


ActionListener {Label sourceLabel, destinationLabel,
resultLabel, detailsLabel;
Choice source, destination;
Button bookButton, resetButton,
saveButton; TextArea ticketDetails;

Cruise TicketBookingSystem () {
setLayout(new GridLayout(5,
2));
8
sourceLabel = new Label("Source:
Advance Java Programming - 22517 Cruise Management System

source = new
Choice();
source.add("Station
A");
source.add("Station
B");
source.add("Station
C"); add(source);

destinationLabel = new Label("Destination:


"); add(destinationLabel);

destination = new
Choice();
destination.add("Station
X");
destination.add("Station
Y");
destination.add("Station
Z"); add(destination);

bookButton = new Button("Book Ticket");


add(bookButton);
bookButton.addActionListener(this);

resetButton = new
Button("Reset");
add(resetButton);
resetButton.addActionListener(th
is);

saveButton = new Button("Save Ticket


Details"); add(saveButton);
saveButton.addActionListener(this);

resultLabel = new
Label("");
add(resultLabel);

detailsLabel = new Label("Ticket Details:


"); add(detailsLabel);

ticketDetails = new TextArea(10, 40);


add(ticketDetails);

setTitle("Cruise Ticket Booking


System");setSize(500, 300);

addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent
9
Advance Java Programming - 22517 Cruise Management System
windowEvent) { System.exit(0);
}
});

setVisible(true);
}

public void actionPerformed(ActionEvent


e) { if (e.getSource() ==
bookButton) {

10
Advance Java Programming - 22517 Cruise Management System

String sourceValue =
source.getItem(source.getSelectedIndex()); String
destinationValue =
destination.getItem(destination.getSelectedIndex());
String result = "Ticket booked from " + sourceValue + "
to " + destinationValue;
resultLabel.setText(result);

String ticketDetail = "Ticket Details: \n" + "Source: " +


sourceValue + "\nDestination: " + destinationValue + "\n\n";
ticketDetails.append(ticketDetail);
} else if (e.getSource() ==
resetButton) { source.select(0);
destination.select(0);
resultLabel.setText("");
ticketDetails.setText("");
} else if (e.getSource() ==
saveButton) { try {
String ticketData =
ticketDetails.getText(); File file = new
File("ticket_details.txt");
FileWriter fileWriter = new FileWriter(file, true);
fileWriter.write(ticketData);
fileWriter.close();
resultLabel.setText("Data saved to file
'ticket_details.txt'.");
} catch (IOException
exception) {
exception.printStackTrace(
);
}
}
}

public static void main(String[]

11
Advance Java Programming - 22517 Cruise Management System

 Book Ticket

 Save Ticket

12
Advance Java Programming - 22517 Cruise Management System

 Saved Data

13
Advance Java Programming - 22517 Cruise Management System

8.0 Skills Developed:


During this micro-project, I learnt to create a GUI and Event Handling managing the
expenses:
a) I learnt various syntaxes of Java language.

b) I learned to capture and manage user interactions.

c) I focused on creating an intuitive and user-friendly interface, emphasizing clear labels


and real-time feedback for better usability.

9.0 Applications of this Micro-project:

This micro-project finds its application in:

a) A table to display the details of existing Orders and allows you to add new Orders
b) Existing Orders are loaded from the database and displayed in the table when the
application starts.

10.0 Conclusion:

The " Cruise Management System" micro-project provides a functional foundation


for managing Bike inventory through an intuitive and user-friendly interface. It
combinesJava Swing for the graphical front-end and MySQL for data storage and
retrieval.

11.0 References:

www.geeksforgeeks.com
www.javatpoint.com
www.github.com

14

You might also like