JavaReport
JavaReport
Certificate
This is to certify that,
Roll
No Name Enrollment No Seat No
Seal Of
Institute
Part A: Micro Project Proposal
1.Introduction:
Java Swing is a part of Java's standard library used to create Graphical
User Interfaces (GUIs). It provides a rich set of widgets and packages to create
interactive applications.
A Simple Calculator built using Swing allows users to perform basic arithmetic
operations such as Addition, Subtraction, Multiplication, and Division via a
graphical interface with buttons and text fields.
4.Literature Review:
6.Action Plan:
Sr. Details of Activity Planned Planned Name of
No. Start Finish Date responsible
Date team
member
1 Define Problem of the Project 17/1/25 24/1/25 Harshal,
Chaitali
2 Searching and Gathering 24/1/25 31/1/25 Snehal, Chaitali
Information
3 Designing the Project 14/2/25 21/2/25 Harshnil,
Dnyaneshwar
3.Literature Review:
The concept of calculators has been fundamental in the development of
computing systems. Over the years, calculators have evolved from physical
mechanical devices to software-based applications. In modern computing,
building a calculator application serves as an introductory exercise in GUI
development and event handling.
Java Swing is a widely used GUI toolkit in the Java programming language. It
provides a rich set of components such as JFrame, JButton, JTextField, and
JPanel, which can be used to build user-friendly applications. Swing is built on
top of the Abstract Window Toolkit (AWT) and offers more flexible and
customizable GUI elements.
Numerous studies and tutorials emphasize the importance of event-driven
programming in GUI-based applications. Handling user actions through
ActionListener interfaces allows for responsive and interactive user interfaces.
4.Java Program Code
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
SimpleCalculatorSwing()
{
setTitle("Swing Calculator");
setSize(300, 400);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
BorderLayout B1 = new BorderLayout();
setLayout(B1);
String[] buttons =
{
"7", "8", "9", "/",
"4", "5", "6", "*",
"1", "2", "3", "-",
"0", "C", "=", "+"
};
add(panel, BorderLayout.CENTER);
setVisible(true);
}