Cruise Management System: Kashish Giri
Cruise Management System: Kashish Giri
Micro project
On
Kashish Giri(19)
Guided By
Ms. A. D. Mate
Scheme, MSBTE)
PUNE - 411041
1
Advance Java Programming - 22517 Cruise Management System
2
Advance Java Programming - 22517 Cruise Management System
INDEX
SR NO CONTENTS PAGE NO
2 Rationale 3
4 Literature Review 3
7 Skills Developed 12
8 Conclusion 12
3
Advance Java Programming - 22517 Cruise Management System
Annexure - I
Micro-Project
Proposal
Cruise Management System
4
Advance Java Programming - 22517 Cruise Management System
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
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.
The aim of the Micro-project is to develop a Cruise Management System in Java using AWT
and Swing components.
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.
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
1 Computer system
Intel(R) Pentium CPU, RAM 8 GB
3 Software
Java JDK 21, Notepad++, Command Prompt,
Visual Studio Code
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);
destination = new
Choice();
destination.add("Station
X");
destination.add("Station
Y");
destination.add("Station
Z"); add(destination);
resetButton = new
Button("Reset");
add(resetButton);
resetButton.addActionListener(th
is);
resultLabel = new
Label("");
add(resultLabel);
addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent
9
Advance Java Programming - 22517 Cruise Management System
windowEvent) { System.exit(0);
}
});
setVisible(true);
}
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);
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
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:
11.0 References:
www.geeksforgeeks.com
www.javatpoint.com
www.github.com
14