0% found this document useful (0 votes)
7 views

project_7

Uploaded by

aryanmaharana714
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views

project_7

Uploaded by

aryanmaharana714
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 120

ODISHA ADARSHA VIDYALAYA

RAJGANGPUR, SUNDARGARH
SESSION 2024-25

APROJECTON
____
Submitted By
PRADYUMNA MAHAPATRA
CLASS: XII, A
ROLLNO:12

Under the Guidance of


Mr. Manas Ranjan Nayak
Computer Science Teacher

Department of Computer Science


Odisha Adarsha Vidyalaya Rajgangpur, Sundargarh
CERTIFICATE
This is to certify that name of class XII has successfully
completed Project on Check Two String aqual or Not
under the guidance of Computer Science Teacher Mr.
Manas Ranjan Nayak during the Year 2024-25.

Signature of Teacher Signature of Principal


Name: Manas Ranjan Nayak
ACKNOWLEDGEMENT

W e undertook this project work, as the part of our XII-


Information Technology course. We had tried to apply our
best of knowledge and experience, gained during the study
and class work experience. However, developing software is
generally a quite complex and time-consuming process. It requires a
systematic study, insight vision and professional approach during the
design and development. Moreover, the developer always feels the
needs, the help and good wishes of people near you, who have
considerable experience and idea.

We would like to extend our sincere thanks and gratitude to our


teacher Mr. Manas Rajan Nayak (COMPUTER SCIENCE TEACHER).
We are very much thankful to our Principal Miss Banita Patel for
giving valuable time and moral support to develop this application

We would like to take opportunity extend our sincere thanks and


gratitude to our parents for being a source of inspiration and
providing time and freedom to develop this application.

PRADYUMNA MAHAPATRA
CLASS-XII, A
ROLLNO: 12
CONTENTS

SL Topics Page
No. number
1 Introduction 1
2 Objective & Scope of the Project 2
3 Theoretical Background 3 to 4
4 System Implementation 5
5 System Design & Development 6 to12
6 User Manual 13 to15
7 References 16
1. Introduction
In this project, we have developed a Simple Calculator App
using Java with the help of NetBeans IDE. The goal of the
application is to perform basic string manipulation
method equals(). This simple program serves
as a great beginner project for understanding
fundamental programming concepts regarding
string manipulation, graphical user interface
(GUI) design, and event-driven programming.
The project demonstrates how Java can be used to create
interactive applications that allow users to input values,
perform calculations, and view the results instantly. By
utilizing NetBeans IDE, we leverage its powerful tools for
GUI development, allowing us to design a clean and intuitive
user interface This application accepts two
Strings and checks they are equal or not.
This project is intended to enhance understanding of Java
syntax, GUI components such as buttons, text fields, and
labels, as well as basic control flow mechanisms for
processing arithmetic operations. Furthermore, it provides a
solid foundation for building more advanced Java applications
in the future.

Page| 1
2. Objective & Scope of the Project

Scope
1. Core Features:
 This application accepts two Strings and checks they are
equal or not.
2. Design and Usability:
 User-friendly interface suitable for all age groups.
 Display of current input, operation and result in a
clear and readable manner.
3. Platform:
 Desktop application.
 Offline functionality.

Objective
1. Efficiency: Provide a quick and reliable tool for
performing everyday calculations.
2. Accessibility: Make arithmetic calculations easy for non-
technical users.
3. Education: Help students and learners understand and
perform simple math operations.
4. Convenience: Offer an always-available alternative to
physical calculators.

Page| 2
3. Theoretical Background

3.1WhatisNetBeansIDE?
NetBeans is an open-source integrated development environment
(IDE) used primarily for developing Java applications, though it also
supports other languages such as C, C++, PHP, HTML, JavaScript,
and more. It provides a rich set of tools for developers to write, debug,
and optimize code efficiently.

Key Features of NetBeans


1. Support for Multiple Languages:
Native support for Java.
Plugins for C/C++, PHP, HTML5, Python, and other languages.
2. Code Editor:
Advanced text editor with features like syntax highlighting, auto-
completion, and code refactoring.
3. Project Management:
Helps organize code into projects with clear structures and easy
navigation.
4. Debugging Tools:
Built-in debugger to find and fix bugs in the code.
5. UI Development:
Visual design tools for creating graphical user interfaces (GUIs),
especially for Java Swing applications.
6. Integration with Build Tools:

Page| 3
Supports tools like Maven, Ant, and Gradle for build and dependency
management.
1. Version Control:
Built-in support for Git, Subversion(SVN), and Mercurial.
2. Cross-Platform:
Available for Windows, mac OS, and Linux.
3. Extensibility:
Allows installation of plugins to extend its capabilities.
Uses of NetBeans
It is used for Development of desktop, web, and mobile applications.
Learning and teaching programming concepts (common in academic
environments). Building enterprise applications using Java EE.
History and Current Status
It is originally developed by Sun Microsystems, later acquired by
Oracle. Currently it is maintained by the Apache Software Foundation
as part of the Apache Incubator program. Latest versions are branded
as Apache NetBeans.

Page| 4
4. System Implementation

Hardware Requirements:
 Computer with at least2GB of RAM, 1.0GHzCPU.
 Keyboard and mouse for user input.
 Display screen for showing the application interface.
 Java-compatible OS(Windows, mac OS, Linux).

Software Requirements:
 Java Development Kit(JDK)(version8 or above).
 NetBeans IDE for codingand UI design.
 Java Swing for the GUI

Page| 5
5. System Design & Development

Coding
/*
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to
change this license
* Click nbfs://nbhost/SystemFileSystem/Templates/GUIForms/JFrame.java to edit this
template
*/

/**
*
* @author admin4
*/
public class NewJFrame7 extends javax.swing.JFrame {

/**
* Creates new form NewJFrame7
*/
public NewJFrame7() {
initComponents();
}

/**
* This method is called from within the constructor to initialize the form.
* WARNING: Do NOT modify this code. The content of this method is always
* regenerated by the Form Editor.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">
private void initComponents() {

jLabel1 = new javax.swing.JLabel();


jLabel2 = new javax.swing.JLabel();
jTextField1 = new javax.swing.JTextField();
jTextField2 = new javax.swing.JTextField();
jLabel3 = new javax.swing.JLabel();
jButton1 = new javax.swing.JButton();

setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

jLabel1.setText("Enter your text");

jLabel2.setText("Re-enter your text");

jButton1.setText("Check");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
Page| 6
}
});

javax.swing.GroupLayout layout = new


javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(39, 39, 39)

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
.addComponent(jLabel2,
javax.swing.GroupLayout.DEFAULT_SIZE, 202, Short.MAX_VALUE)
.addComponent(jLabel1,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE))

.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
.addComponent(jTextField1,
javax.swing.GroupLayout.DEFAULT_SIZE, 287, Short.MAX_VALUE)
.addComponent(jTextField2)))
.addGroup(layout.createSequentialGroup()
.addGap(177, 177, 177)
.addComponent(jLabel3,
javax.swing.GroupLayout.PREFERRED_SIZE, 316,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(layout.createSequentialGroup()
.addGap(222, 222, 222)
.addComponent(jButton1,
javax.swing.GroupLayout.PREFERRED_SIZE, 186,
javax.swing.GroupLayout.PREFERRED_SIZE)))
.addContainerGap(136, Short.MAX_VALUE))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(57, 57, 57)

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
.addComponent(jTextField1,
javax.swing.GroupLayout.DEFAULT_SIZE, 41, Short.MAX_VALUE)
.addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))

.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)

Page| 7
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE,
43, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jTextField2,
javax.swing.GroupLayout.PREFERRED_SIZE, 41,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(51, 51, 51)
.addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 43,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(42, 42, 42)
.addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 37,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(72, Short.MAX_VALUE))
);

pack();
}// </editor-fold>

private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
String str1=new String();
String str2=new String();
boolean bool;
str1=jTextField1.getText();
str2=jTextField2.getText();
bool=str1.equals(str2);
if(bool==true)
{
jLabel3.setText("entered strings are equal");
}
else
{
jLabel3.setText("entered strings are not equal");
}

/**
* @param args the command line arguments
*/
public static void main(String args[]) {
/* Set the Nimbus look and feel */
//<editor-fold defaultstate="collapsed" desc=" Look and feel setting code
(optional) ">
/* If Nimbus (introduced in Java SE 6) is not available, stay with the
default look and feel.
* For details see
http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
*/
try {
for (javax.swing.UIManager.LookAndFeelInfo info :
javax.swing.UIManager.getInstalledLookAndFeels()) {
if ("Nimbus".equals(info.getName())) {
javax.swing.UIManager.setLookAndFeel(info.getClassName());
break;
Page| 8
}
}
} catch (ClassNotFoundException ex) {

java.util.logging.Logger.getLogger(NewJFrame7.class.getName()).log(java.util.loggin
g.Level.SEVERE, null, ex);
} catch (InstantiationException ex) {

java.util.logging.Logger.getLogger(NewJFrame7.class.getName()).log(java.util.loggin
g.Level.SEVERE, null, ex);
} catch (IllegalAccessException ex) {

java.util.logging.Logger.getLogger(NewJFrame7.class.getName()).log(java.util.loggin
g.Level.SEVERE, null, ex);
} catch (javax.swing.UnsupportedLookAndFeelException ex) {

java.util.logging.Logger.getLogger(NewJFrame7.class.getName()).log(java.util.loggin
g.Level.SEVERE, null, ex);
}
//</editor-fold>

/* Create and display the form */


java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new NewJFrame7().setVisible(true);
}
});
}

// Variables declaration - do not modify


private javax.swing.JButton jButton1;
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel2;
private javax.swing.JLabel jLabel3;
private javax.swing.JTextField jTextField1;
private javax.swing.JTextField jTextField2;
// End of variables declaration
}

Page| 9
RESULT

Page| 10
Testing with first set of inputs

Page| 11
Testing with another set of inputs.

Page| 12
6. User Manual

How to install Software?


Hardware Requirements:
 Computer withatleast2GB of RAM, 1.0GHzCPU.
 Keyboard and mouse for user input.
 Display screen for showing the application interface.
 Java-compatible OS(Windows, macOS, Linux).
Software Requirements:
 Java Development Kit(JDK)(version8 or above).
 NetBeans IDE for coding and UI design.
 Java Swing for the GUI

Installing NetBeans
1. Download NetBeans:
Go to the official Apache NetBeans website.
Download the installer for your operating system
(Windows, macOS, or Linux).
2. Install Java Development Kit (JDK) (Required for Java
Development):
Ensure you have the JDK installed. You can download it
from the Oracle website or use Open JDK.
After installation, set the JAVA_HOM Environment variable to
point to the JDK installation directory.
3. Install NetBeans:
Run the downloaded installer.
Follow the on-screen instructions to complete the
installation process.

Page| 13
During installation, ensure it detects your JDK.
1. Launch NetBeans:
After installation, open NetBeans from your desktop or
applications menu.

Using NetBeans
1. Create a New Project:
 Click File > NewProject.
 Select the type of project (e.g., "Java with Maven"
or "Java Application").
 Click Next, enter project details (name, location),
and finish.
2. Write Code:
 Once the project is created, open the Main.java file
or the main class file.
 Write your code in the editor. It provides features
like syntax highlighting, auto-completion, and
suggestions.
3. Run Your Project:
 Click the Run button (green triangle) in the toolbar,
or press Shift + F6.
 The output will be displayed in the Output window
at the bottom.
4. Debug Your Code:
 Use the Debug button (green triangle with a bug
icon) to start debugging.
 Add breakpoints by clicking on the line number in
the editor.

Page| 14
 Inspect variables and step through the code in the
Debugger panel.
5. Manage Libraries and Dependencies:
 For Java projects, you can manage libraries via
Project Properties > Libraries.
 Use Maven or Gradle for dependency management
(build tools are integrated into NetBeans).

Page| 15
7. References

In order to work on this project, the following books and


literature are referred by me during the various phases of
development on the project.
1. Information Technology for class XII
-By Sumit Arora
2. Database Management Applications Class XII student
Handbook.
-By CBSE
3. https://netbeans.apache.org/front/main/index.html
4. https://www.oracle.com/in/java/technologies/downloads/
5. https://chatgpt.com/
6. https://docs.oracle.com/javase/tutorial/uiswing
7. Online help of NetBeans
8. Various websites of discussion forum and software
development activities

Other than the above-mentioned books, the suggestions and


supervision of my teacher and my class experience also
helped me to develop software project.

Page| 16
ODISHA ADARSHA VIDYALAYA
RAJGANGPUR, SUNDARGARH
SESSION 2024-25

APROJECTON
____
Submitted By
ROHIT RAJ MINZ
CLASS: XII, B
ROLLNO:17

Under the Guidance of


Mr. Manas Ranjan Nayak
Computer Science Teacher

Department of Computer Science


Odisha Adarsha Vidyalaya Rajgangpur, Sundargarh

Page| 1
CERTIFICATE
This is to certify that name of class XII has successfully
completed Project on Check Two String aqual or Not
under the guidance of Computer Science Teacher Mr.
Manas Ranjan Nayak during the Year 2024-25.

Signature of Teacher Signature of Principal


Name: Manas Ranjan Nayak

Page| 2
ACKNOWLEDGEMENT

W e undertook this project work, as the part of our XII-


Information Technology course. We had tried to apply our
best of knowledge and experience, gained during the study
and class work experience. However, developing software is
generally a quite complex and time-consuming process. It requires a
systematic study, insight vision and professional approach during the
design and development. Moreover, the developer always feels the
needs, the help and good wishes of people near you, who have
considerable experience and idea.

We would like to extend our sincere thanks and gratitude to our


teacher Mr. Manas Rajan Nayak (COMPUTER SCIENCE TEACHER).
We are very much thankful to our Principal Miss Banita Patel for
giving valuable time and moral support to develop this application

We would like to take opportunity extend our sincere thanks and


gratitude to our parents for being a source of inspiration and
providing time and freedom to develop this application.

ROHIT RAJ MINZ


CLASS-XII, B
ROLLNO: 17

Page| 3
CONTENTS

SL Topics Page
No. number
1 Introduction 1
2 Objective & Scope of the Project 2
3 Theoretical Background 3 to 4
4 System Implementation 5
5 System Design & Development 6 to12
6 User Manual 13 to15
7 References 16

Page| 4
1. Introduction
In this project, we have developed a Simple Calculator App
using Java with the help of NetBeans IDE. The goal of the
application is to perform basic string manipulation
method equals(). This simple program serves
as a great beginner project for understanding
fundamental programming concepts regarding
string manipulation, graphical user interface
(GUI) design, and event-driven programming.
The project demonstrates how Java can be used to create
interactive applications that allow users to input values,
perform calculations, and view the results instantly. By
utilizing NetBeans IDE, we leverage its powerful tools for
GUI development, allowing us to design a clean and intuitive
user interface This application accepts two
Strings and checks they are equal or not.
This project is intended to enhance understanding of Java
syntax, GUI components such as buttons, text fields, and
labels, as well as basic control flow mechanisms for
processing arithmetic operations. Furthermore, it provides a
solid foundation for building more advanced Java applications
in the future.

Page| 1
2. Objective & Scope of the Project

Scope
1. Core Features:
 This application accepts two Strings and checks they are
equal or not.
2. Design and Usability:
 User-friendly interface suitable for all age groups.
 Display of current input, operation and result in a
clear and readable manner.
3. Platform:
 Desktop application.
 Offline functionality.

Objective
1. Efficiency: Provide a quick and reliable tool for
performing everyday calculations.
2. Accessibility: Make arithmetic calculations easy for non-
technical users.
3. Education: Help students and learners understand and
perform simple math operations.
4. Convenience: Offer an always-available alternative to
physical calculators.

Page| 2
3. Theoretical Background

3.1WhatisNetBeansIDE?
NetBeans is an open-source integrated development environment
(IDE) used primarily for developing Java applications, though it also
supports other languages such as C, C++, PHP, HTML, JavaScript,
and more. It provides a rich set of tools for developers to write, debug,
and optimize code efficiently.

Key Features of NetBeans


1. Support for Multiple Languages:
Native support for Java.
Plugins for C/C++, PHP, HTML5, Python, and other languages.
2. Code Editor:
Advanced text editor with features like syntax highlighting, auto-
completion, and code refactoring.
3. Project Management:
Helps organize code into projects with clear structures and easy
navigation.
4. Debugging Tools:
Built-in debugger to find and fix bugs in the code.
5. UI Development:
Visual design tools for creating graphical user interfaces (GUIs),
especially for Java Swing applications.
6. Integration with Build Tools:

Page| 3
Supports tools like Maven, Ant, and Gradle for build and dependency
management.
1. Version Control:
Built-in support for Git, Subversion(SVN), and Mercurial.
2. Cross-Platform:
Available for Windows, mac OS, and Linux.
3. Extensibility:
Allows installation of plugins to extend its capabilities.
Uses of NetBeans
It is used for Development of desktop, web, and mobile applications.
Learning and teaching programming concepts (common in academic
environments). Building enterprise applications using Java EE.
History and Current Status
It is originally developed by Sun Microsystems, later acquired by
Oracle. Currently it is maintained by the Apache Software Foundation
as part of the Apache Incubator program. Latest versions are branded
as Apache NetBeans.

Page| 4
4. System Implementation

Hardware Requirements:
 Computer with at least2GB of RAM, 1.0GHzCPU.
 Keyboard and mouse for user input.
 Display screen for showing the application interface.
 Java-compatible OS(Windows, mac OS, Linux).

Software Requirements:
 Java Development Kit(JDK)(version8 or above).
 NetBeans IDE for codingand UI design.
 Java Swing for the GUI

Page| 5
5. System Design & Development

Coding
/*
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to
change this license
* Click nbfs://nbhost/SystemFileSystem/Templates/GUIForms/JFrame.java to edit this
template
*/

/**
*
* @author admin4
*/
public class NewJFrame7 extends javax.swing.JFrame {

/**
* Creates new form NewJFrame7
*/
public NewJFrame7() {
initComponents();
}

/**
* This method is called from within the constructor to initialize the form.
* WARNING: Do NOT modify this code. The content of this method is always
* regenerated by the Form Editor.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">
private void initComponents() {

jLabel1 = new javax.swing.JLabel();


jLabel2 = new javax.swing.JLabel();
jTextField1 = new javax.swing.JTextField();
jTextField2 = new javax.swing.JTextField();
jLabel3 = new javax.swing.JLabel();
jButton1 = new javax.swing.JButton();

setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

jLabel1.setText("Enter your text");

jLabel2.setText("Re-enter your text");

jButton1.setText("Check");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
Page| 6
}
});

javax.swing.GroupLayout layout = new


javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(39, 39, 39)

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
.addComponent(jLabel2,
javax.swing.GroupLayout.DEFAULT_SIZE, 202, Short.MAX_VALUE)
.addComponent(jLabel1,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE))

.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
.addComponent(jTextField1,
javax.swing.GroupLayout.DEFAULT_SIZE, 287, Short.MAX_VALUE)
.addComponent(jTextField2)))
.addGroup(layout.createSequentialGroup()
.addGap(177, 177, 177)
.addComponent(jLabel3,
javax.swing.GroupLayout.PREFERRED_SIZE, 316,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(layout.createSequentialGroup()
.addGap(222, 222, 222)
.addComponent(jButton1,
javax.swing.GroupLayout.PREFERRED_SIZE, 186,
javax.swing.GroupLayout.PREFERRED_SIZE)))
.addContainerGap(136, Short.MAX_VALUE))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(57, 57, 57)

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
.addComponent(jTextField1,
javax.swing.GroupLayout.DEFAULT_SIZE, 41, Short.MAX_VALUE)
.addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))

.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)

Page| 7
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE,
43, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jTextField2,
javax.swing.GroupLayout.PREFERRED_SIZE, 41,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(51, 51, 51)
.addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 43,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(42, 42, 42)
.addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 37,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(72, Short.MAX_VALUE))
);

pack();
}// </editor-fold>

private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
String str1=new String();
String str2=new String();
boolean bool;
str1=jTextField1.getText();
str2=jTextField2.getText();
bool=str1.equals(str2);
if(bool==true)
{
jLabel3.setText("entered strings are equal");
}
else
{
jLabel3.setText("entered strings are not equal");
}

/**
* @param args the command line arguments
*/
public static void main(String args[]) {
/* Set the Nimbus look and feel */
//<editor-fold defaultstate="collapsed" desc=" Look and feel setting code
(optional) ">
/* If Nimbus (introduced in Java SE 6) is not available, stay with the
default look and feel.
* For details see
http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
*/
try {
for (javax.swing.UIManager.LookAndFeelInfo info :
javax.swing.UIManager.getInstalledLookAndFeels()) {
if ("Nimbus".equals(info.getName())) {
javax.swing.UIManager.setLookAndFeel(info.getClassName());
break;
Page| 8
}
}
} catch (ClassNotFoundException ex) {

java.util.logging.Logger.getLogger(NewJFrame7.class.getName()).log(java.util.loggin
g.Level.SEVERE, null, ex);
} catch (InstantiationException ex) {

java.util.logging.Logger.getLogger(NewJFrame7.class.getName()).log(java.util.loggin
g.Level.SEVERE, null, ex);
} catch (IllegalAccessException ex) {

java.util.logging.Logger.getLogger(NewJFrame7.class.getName()).log(java.util.loggin
g.Level.SEVERE, null, ex);
} catch (javax.swing.UnsupportedLookAndFeelException ex) {

java.util.logging.Logger.getLogger(NewJFrame7.class.getName()).log(java.util.loggin
g.Level.SEVERE, null, ex);
}
//</editor-fold>

/* Create and display the form */


java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new NewJFrame7().setVisible(true);
}
});
}

// Variables declaration - do not modify


private javax.swing.JButton jButton1;
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel2;
private javax.swing.JLabel jLabel3;
private javax.swing.JTextField jTextField1;
private javax.swing.JTextField jTextField2;
// End of variables declaration
}

Page| 9
RESULT

Page| 10
Testing with first set of inputs

Page| 11
Testing with another set of inputs.

Page| 12
6. User Manual

How to install Software?


Hardware Requirements:
 Computer withatleast2GB of RAM, 1.0GHzCPU.
 Keyboard and mouse for user input.
 Display screen for showing the application interface.
 Java-compatible OS(Windows, macOS, Linux).
Software Requirements:
 Java Development Kit(JDK)(version8 or above).
 NetBeans IDE for coding and UI design.
 Java Swing for the GUI

Installing NetBeans
1. Download NetBeans:
Go to the official Apache NetBeans website.
Download the installer for your operating system
(Windows, macOS, or Linux).
2. Install Java Development Kit (JDK) (Required for Java
Development):
Ensure you have the JDK installed. You can download it
from the Oracle website or use Open JDK.
After installation, set the JAVA_HOM Environment variable to
point to the JDK installation directory.
3. Install NetBeans:
Run the downloaded installer.
Follow the on-screen instructions to complete the
installation process.

Page| 13
During installation, ensure it detects your JDK.
1. Launch NetBeans:
After installation, open NetBeans from your desktop or
applications menu.

Using NetBeans
1. Create a New Project:
 Click File > NewProject.
 Select the type of project (e.g., "Java with Maven"
or "Java Application").
 Click Next, enter project details (name, location),
and finish.
2. Write Code:
 Once the project is created, open the Main.java file
or the main class file.
 Write your code in the editor. It provides features
like syntax highlighting, auto-completion, and
suggestions.
3. Run Your Project:
 Click the Run button (green triangle) in the toolbar,
or press Shift + F6.
 The output will be displayed in the Output window
at the bottom.
4. Debug Your Code:
 Use the Debug button (green triangle with a bug
icon) to start debugging.
 Add breakpoints by clicking on the line number in
the editor.

Page| 14
 Inspect variables and step through the code in the
Debugger panel.
5. Manage Libraries and Dependencies:
 For Java projects, you can manage libraries via
Project Properties > Libraries.
 Use Maven or Gradle for dependency management
(build tools are integrated into NetBeans).

Page| 15
7. References

In order to work on this project, the following books and


literature are referred by me during the various phases of
development on the project.
1. Information Technology for class XII
-By Sumit Arora
2. Database Management Applications Class XII student
Handbook.
-By CBSE
3. https://netbeans.apache.org/front/main/index.html
4. https://www.oracle.com/in/java/technologies/downloads/
5. https://chatgpt.com/
6. https://docs.oracle.com/javase/tutorial/uiswing
7. Online help of NetBeans
8. Various websites of discussion forum and software
development activities

Other than the above-mentioned books, the suggestions and


supervision of my teacher and my class experience also
helped me to develop software project.

Page| 16
ODISHA ADARSHA VIDYALAYA
RAJGANGPUR, SUNDARGARH
SESSION 2024-25

APROJECTON
____
Submitted By
RITESH LAKRA
CLASS: XII, B
ROLLNO:13

Under the Guidance of


Mr. Manas Ranjan Nayak
Computer Science Teacher

Department of Computer Science


Odisha Adarsha Vidyalaya Rajgangpur, Sundargarh

Page| 1
CERTIFICATE
This is to certify that name of class XII has successfully
completed Project on Check Two String aqual or Not
under the guidance of Computer Science Teacher Mr.
Manas Ranjan Nayak during the Year 2024-25.

Signature of Teacher Signature of Principal


Name: Manas Ranjan Nayak

Page| 2
ACKNOWLEDGEMENT

W e undertook this project work, as the part of our XII-


Information Technology course. We had tried to apply our
best of knowledge and experience, gained during the study
and class work experience. However, developing software is
generally a quite complex and time-consuming process. It requires a
systematic study, insight vision and professional approach during the
design and development. Moreover, the developer always feels the
needs, the help and good wishes of people near you, who have
considerable experience and idea.

We would like to extend our sincere thanks and gratitude to our


teacher Mr. Manas Rajan Nayak (COMPUTER SCIENCE TEACHER).
We are very much thankful to our Principal Miss Banita Patel for
giving valuable time and moral support to develop this application

We would like to take opportunity extend our sincere thanks and


gratitude to our parents for being a source of inspiration and
providing time and freedom to develop this application.

RITESH LAKRA
CLASS-XII, B
ROLLNO: 13

Page| 3
CONTENTS

SL Topics Page
No. number
1 Introduction 1
2 Objective & Scope of the Project 2
3 Theoretical Background 3 to 4
4 System Implementation 5
5 System Design & Development 6 to12
6 User Manual 13 to15
7 References 16

Page| 4
1. Introduction
In this project, we have developed a Simple Calculator App
using Java with the help of NetBeans IDE. The goal of the
application is to perform basic string manipulation
method equals(). This simple program serves
as a great beginner project for understanding
fundamental programming concepts regarding
string manipulation, graphical user interface
(GUI) design, and event-driven programming.
The project demonstrates how Java can be used to create
interactive applications that allow users to input values,
perform calculations, and view the results instantly. By
utilizing NetBeans IDE, we leverage its powerful tools for
GUI development, allowing us to design a clean and intuitive
user interface This application accepts two
Strings and checks they are equal or not.
This project is intended to enhance understanding of Java
syntax, GUI components such as buttons, text fields, and
labels, as well as basic control flow mechanisms for
processing arithmetic operations. Furthermore, it provides a
solid foundation for building more advanced Java applications
in the future.

Page| 1
2. Objective & Scope of the Project

Scope
1. Core Features:
 This application accepts two Strings and checks they are
equal or not.
2. Design and Usability:
 User-friendly interface suitable for all age groups.
 Display of current input, operation and result in a
clear and readable manner.
3. Platform:
 Desktop application.
 Offline functionality.

Objective
1. Efficiency: Provide a quick and reliable tool for
performing everyday calculations.
2. Accessibility: Make arithmetic calculations easy for non-
technical users.
3. Education: Help students and learners understand and
perform simple math operations.
4. Convenience: Offer an always-available alternative to
physical calculators.

Page| 2
3. Theoretical Background

3.1WhatisNetBeansIDE?
NetBeans is an open-source integrated development environment
(IDE) used primarily for developing Java applications, though it also
supports other languages such as C, C++, PHP, HTML, JavaScript,
and more. It provides a rich set of tools for developers to write, debug,
and optimize code efficiently.

Key Features of NetBeans


1. Support for Multiple Languages:
Native support for Java.
Plugins for C/C++, PHP, HTML5, Python, and other languages.
2. Code Editor:
Advanced text editor with features like syntax highlighting, auto-
completion, and code refactoring.
3. Project Management:
Helps organize code into projects with clear structures and easy
navigation.
4. Debugging Tools:
Built-in debugger to find and fix bugs in the code.
5. UI Development:
Visual design tools for creating graphical user interfaces (GUIs),
especially for Java Swing applications.
6. Integration with Build Tools:

Page| 3
Supports tools like Maven, Ant, and Gradle for build and dependency
management.
1. Version Control:
Built-in support for Git, Subversion(SVN), and Mercurial.
2. Cross-Platform:
Available for Windows, mac OS, and Linux.
3. Extensibility:
Allows installation of plugins to extend its capabilities.
Uses of NetBeans
It is used for Development of desktop, web, and mobile applications.
Learning and teaching programming concepts (common in academic
environments). Building enterprise applications using Java EE.
History and Current Status
It is originally developed by Sun Microsystems, later acquired by
Oracle. Currently it is maintained by the Apache Software Foundation
as part of the Apache Incubator program. Latest versions are branded
as Apache NetBeans.

Page| 4
4. System Implementation

Hardware Requirements:
 Computer with at least2GB of RAM, 1.0GHzCPU.
 Keyboard and mouse for user input.
 Display screen for showing the application interface.
 Java-compatible OS(Windows, mac OS, Linux).

Software Requirements:
 Java Development Kit(JDK)(version8 or above).
 NetBeans IDE for codingand UI design.
 Java Swing for the GUI

Page| 5
5. System Design & Development

Coding
/*
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to
change this license
* Click nbfs://nbhost/SystemFileSystem/Templates/GUIForms/JFrame.java to edit this
template
*/

/**
*
* @author admin4
*/
public class NewJFrame7 extends javax.swing.JFrame {

/**
* Creates new form NewJFrame7
*/
public NewJFrame7() {
initComponents();
}

/**
* This method is called from within the constructor to initialize the form.
* WARNING: Do NOT modify this code. The content of this method is always
* regenerated by the Form Editor.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">
private void initComponents() {

jLabel1 = new javax.swing.JLabel();


jLabel2 = new javax.swing.JLabel();
jTextField1 = new javax.swing.JTextField();
jTextField2 = new javax.swing.JTextField();
jLabel3 = new javax.swing.JLabel();
jButton1 = new javax.swing.JButton();

setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

jLabel1.setText("Enter your text");

jLabel2.setText("Re-enter your text");

jButton1.setText("Check");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
Page| 6
}
});

javax.swing.GroupLayout layout = new


javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(39, 39, 39)

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
.addComponent(jLabel2,
javax.swing.GroupLayout.DEFAULT_SIZE, 202, Short.MAX_VALUE)
.addComponent(jLabel1,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE))

.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
.addComponent(jTextField1,
javax.swing.GroupLayout.DEFAULT_SIZE, 287, Short.MAX_VALUE)
.addComponent(jTextField2)))
.addGroup(layout.createSequentialGroup()
.addGap(177, 177, 177)
.addComponent(jLabel3,
javax.swing.GroupLayout.PREFERRED_SIZE, 316,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(layout.createSequentialGroup()
.addGap(222, 222, 222)
.addComponent(jButton1,
javax.swing.GroupLayout.PREFERRED_SIZE, 186,
javax.swing.GroupLayout.PREFERRED_SIZE)))
.addContainerGap(136, Short.MAX_VALUE))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(57, 57, 57)

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
.addComponent(jTextField1,
javax.swing.GroupLayout.DEFAULT_SIZE, 41, Short.MAX_VALUE)
.addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))

.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)

Page| 7
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE,
43, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jTextField2,
javax.swing.GroupLayout.PREFERRED_SIZE, 41,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(51, 51, 51)
.addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 43,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(42, 42, 42)
.addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 37,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(72, Short.MAX_VALUE))
);

pack();
}// </editor-fold>

private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
String str1=new String();
String str2=new String();
boolean bool;
str1=jTextField1.getText();
str2=jTextField2.getText();
bool=str1.equals(str2);
if(bool==true)
{
jLabel3.setText("entered strings are equal");
}
else
{
jLabel3.setText("entered strings are not equal");
}

/**
* @param args the command line arguments
*/
public static void main(String args[]) {
/* Set the Nimbus look and feel */
//<editor-fold defaultstate="collapsed" desc=" Look and feel setting code
(optional) ">
/* If Nimbus (introduced in Java SE 6) is not available, stay with the
default look and feel.
* For details see
http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
*/
try {
for (javax.swing.UIManager.LookAndFeelInfo info :
javax.swing.UIManager.getInstalledLookAndFeels()) {
if ("Nimbus".equals(info.getName())) {
javax.swing.UIManager.setLookAndFeel(info.getClassName());
break;
Page| 8
}
}
} catch (ClassNotFoundException ex) {

java.util.logging.Logger.getLogger(NewJFrame7.class.getName()).log(java.util.loggin
g.Level.SEVERE, null, ex);
} catch (InstantiationException ex) {

java.util.logging.Logger.getLogger(NewJFrame7.class.getName()).log(java.util.loggin
g.Level.SEVERE, null, ex);
} catch (IllegalAccessException ex) {

java.util.logging.Logger.getLogger(NewJFrame7.class.getName()).log(java.util.loggin
g.Level.SEVERE, null, ex);
} catch (javax.swing.UnsupportedLookAndFeelException ex) {

java.util.logging.Logger.getLogger(NewJFrame7.class.getName()).log(java.util.loggin
g.Level.SEVERE, null, ex);
}
//</editor-fold>

/* Create and display the form */


java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new NewJFrame7().setVisible(true);
}
});
}

// Variables declaration - do not modify


private javax.swing.JButton jButton1;
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel2;
private javax.swing.JLabel jLabel3;
private javax.swing.JTextField jTextField1;
private javax.swing.JTextField jTextField2;
// End of variables declaration
}

Page| 9
RESULT

Page| 10
Testing with first set of inputs

Page| 11
Testing with another set of inputs.

Page| 12
6. User Manual

How to install Software?


Hardware Requirements:
 Computer withatleast2GB of RAM, 1.0GHzCPU.
 Keyboard and mouse for user input.
 Display screen for showing the application interface.
 Java-compatible OS(Windows, macOS, Linux).
Software Requirements:
 Java Development Kit(JDK)(version8 or above).
 NetBeans IDE for coding and UI design.
 Java Swing for the GUI

Installing NetBeans
1. Download NetBeans:
Go to the official Apache NetBeans website.
Download the installer for your operating system
(Windows, macOS, or Linux).
2. Install Java Development Kit (JDK) (Required for Java
Development):
Ensure you have the JDK installed. You can download it
from the Oracle website or use Open JDK.
After installation, set the JAVA_HOM Environment variable to
point to the JDK installation directory.
3. Install NetBeans:
Run the downloaded installer.
Follow the on-screen instructions to complete the
installation process.

Page| 13
During installation, ensure it detects your JDK.
1. Launch NetBeans:
After installation, open NetBeans from your desktop or
applications menu.

Using NetBeans
1. Create a New Project:
 Click File > NewProject.
 Select the type of project (e.g., "Java with Maven"
or "Java Application").
 Click Next, enter project details (name, location),
and finish.
2. Write Code:
 Once the project is created, open the Main.java file
or the main class file.
 Write your code in the editor. It provides features
like syntax highlighting, auto-completion, and
suggestions.
3. Run Your Project:
 Click the Run button (green triangle) in the toolbar,
or press Shift + F6.
 The output will be displayed in the Output window
at the bottom.
4. Debug Your Code:
 Use the Debug button (green triangle with a bug
icon) to start debugging.
 Add breakpoints by clicking on the line number in
the editor.

Page| 14
 Inspect variables and step through the code in the
Debugger panel.
5. Manage Libraries and Dependencies:
 For Java projects, you can manage libraries via
Project Properties > Libraries.
 Use Maven or Gradle for dependency management
(build tools are integrated into NetBeans).

Page| 15
7. References

In order to work on this project, the following books and


literature are referred by me during the various phases of
development on the project.
1. Information Technology for class XII
-By Sumit Arora
2. Database Management Applications Class XII student
Handbook.
-By CBSE
3. https://netbeans.apache.org/front/main/index.html
4. https://www.oracle.com/in/java/technologies/downloads/
5. https://chatgpt.com/
6. https://docs.oracle.com/javase/tutorial/uiswing
7. Online help of NetBeans
8. Various websites of discussion forum and software
development activities

Other than the above-mentioned books, the suggestions and


supervision of my teacher and my class experience also
helped me to develop software project.

Page| 16
ODISHA ADARSHA VIDYALAYA
RAJGANGPUR, SUNDARGARH
SESSION 2024-25

APROJECTON
____
Submitted By
ASWIN DUNG DUNG
CLASS: XII, B
ROLLNO:24

Under the Guidance of


Mr. Manas Ranjan Nayak
Computer Science Teacher

Department of Computer Science


Odisha Adarsha Vidyalaya Rajgangpur, Sundargarh

Page| 1
CERTIFICATE
This is to certify that name of class XII has successfully
completed Project on Check Two String aqual or Not
under the guidance of Computer Science Teacher Mr.
Manas Ranjan Nayak during the Year 2024-25.

Signature of Teacher Signature of Principal


Name: Manas Ranjan Nayak

Page| 2
ACKNOWLEDGEMENT

W e undertook this project work, as the part of our XII-


Information Technology course. We had tried to apply our
best of knowledge and experience, gained during the study
and class work experience. However, developing software is
generally a quite complex and time-consuming process. It requires a
systematic study, insight vision and professional approach during the
design and development. Moreover, the developer always feels the
needs, the help and good wishes of people near you, who have
considerable experience and idea.

We would like to extend our sincere thanks and gratitude to our


teacher Mr. Manas Rajan Nayak (COMPUTER SCIENCE TEACHER).
We are very much thankful to our Principal Miss Banita Patel for
giving valuable time and moral support to develop this application

We would like to take opportunity extend our sincere thanks and


gratitude to our parents for being a source of inspiration and
providing time and freedom to develop this application.

ASWIN DUNG DUNG


CLASS-XII, B
ROLLNO: 24

Page| 3
CONTENTS

SL Topics Page
No. number
1 Introduction 1
2 Objective & Scope of the Project 2
3 Theoretical Background 3 to 4
4 System Implementation 5
5 System Design & Development 6 to12
6 User Manual 13 to15
7 References 16

Page| 4
1. Introduction
In this project, we have developed a Simple Calculator App
using Java with the help of NetBeans IDE. The goal of the
application is to perform basic string manipulation
method equals(). This simple program serves
as a great beginner project for understanding
fundamental programming concepts regarding
string manipulation, graphical user interface
(GUI) design, and event-driven programming.
The project demonstrates how Java can be used to create
interactive applications that allow users to input values,
perform calculations, and view the results instantly. By
utilizing NetBeans IDE, we leverage its powerful tools for
GUI development, allowing us to design a clean and intuitive
user interface This application accepts two
Strings and checks they are equal or not.
This project is intended to enhance understanding of Java
syntax, GUI components such as buttons, text fields, and
labels, as well as basic control flow mechanisms for
processing arithmetic operations. Furthermore, it provides a
solid foundation for building more advanced Java applications
in the future.

Page| 1
2. Objective & Scope of the Project

Scope
1. Core Features:
 This application accepts two Strings and checks they are
equal or not.
2. Design and Usability:
 User-friendly interface suitable for all age groups.
 Display of current input, operation and result in a
clear and readable manner.
3. Platform:
 Desktop application.
 Offline functionality.

Objective
1. Efficiency: Provide a quick and reliable tool for
performing everyday calculations.
2. Accessibility: Make arithmetic calculations easy for non-
technical users.
3. Education: Help students and learners understand and
perform simple math operations.
4. Convenience: Offer an always-available alternative to
physical calculators.

Page| 2
3. Theoretical Background

3.1WhatisNetBeansIDE?
NetBeans is an open-source integrated development environment
(IDE) used primarily for developing Java applications, though it also
supports other languages such as C, C++, PHP, HTML, JavaScript,
and more. It provides a rich set of tools for developers to write, debug,
and optimize code efficiently.

Key Features of NetBeans


1. Support for Multiple Languages:
Native support for Java.
Plugins for C/C++, PHP, HTML5, Python, and other languages.
2. Code Editor:
Advanced text editor with features like syntax highlighting, auto-
completion, and code refactoring.
3. Project Management:
Helps organize code into projects with clear structures and easy
navigation.
4. Debugging Tools:
Built-in debugger to find and fix bugs in the code.
5. UI Development:
Visual design tools for creating graphical user interfaces (GUIs),
especially for Java Swing applications.
6. Integration with Build Tools:

Page| 3
Supports tools like Maven, Ant, and Gradle for build and dependency
management.
1. Version Control:
Built-in support for Git, Subversion(SVN), and Mercurial.
2. Cross-Platform:
Available for Windows, mac OS, and Linux.
3. Extensibility:
Allows installation of plugins to extend its capabilities.
Uses of NetBeans
It is used for Development of desktop, web, and mobile applications.
Learning and teaching programming concepts (common in academic
environments). Building enterprise applications using Java EE.
History and Current Status
It is originally developed by Sun Microsystems, later acquired by
Oracle. Currently it is maintained by the Apache Software Foundation
as part of the Apache Incubator program. Latest versions are branded
as Apache NetBeans.

Page| 4
4. System Implementation

Hardware Requirements:
 Computer with at least2GB of RAM, 1.0GHzCPU.
 Keyboard and mouse for user input.
 Display screen for showing the application interface.
 Java-compatible OS(Windows, mac OS, Linux).

Software Requirements:
 Java Development Kit(JDK)(version8 or above).
 NetBeans IDE for codingand UI design.
 Java Swing for the GUI

Page| 5
5. System Design & Development

Coding
/*
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to
change this license
* Click nbfs://nbhost/SystemFileSystem/Templates/GUIForms/JFrame.java to edit this
template
*/

/**
*
* @author admin4
*/
public class NewJFrame7 extends javax.swing.JFrame {

/**
* Creates new form NewJFrame7
*/
public NewJFrame7() {
initComponents();
}

/**
* This method is called from within the constructor to initialize the form.
* WARNING: Do NOT modify this code. The content of this method is always
* regenerated by the Form Editor.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">
private void initComponents() {

jLabel1 = new javax.swing.JLabel();


jLabel2 = new javax.swing.JLabel();
jTextField1 = new javax.swing.JTextField();
jTextField2 = new javax.swing.JTextField();
jLabel3 = new javax.swing.JLabel();
jButton1 = new javax.swing.JButton();

setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

jLabel1.setText("Enter your text");

jLabel2.setText("Re-enter your text");

jButton1.setText("Check");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
Page| 6
}
});

javax.swing.GroupLayout layout = new


javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(39, 39, 39)

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
.addComponent(jLabel2,
javax.swing.GroupLayout.DEFAULT_SIZE, 202, Short.MAX_VALUE)
.addComponent(jLabel1,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE))

.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
.addComponent(jTextField1,
javax.swing.GroupLayout.DEFAULT_SIZE, 287, Short.MAX_VALUE)
.addComponent(jTextField2)))
.addGroup(layout.createSequentialGroup()
.addGap(177, 177, 177)
.addComponent(jLabel3,
javax.swing.GroupLayout.PREFERRED_SIZE, 316,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(layout.createSequentialGroup()
.addGap(222, 222, 222)
.addComponent(jButton1,
javax.swing.GroupLayout.PREFERRED_SIZE, 186,
javax.swing.GroupLayout.PREFERRED_SIZE)))
.addContainerGap(136, Short.MAX_VALUE))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(57, 57, 57)

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
.addComponent(jTextField1,
javax.swing.GroupLayout.DEFAULT_SIZE, 41, Short.MAX_VALUE)
.addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))

.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)

Page| 7
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE,
43, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jTextField2,
javax.swing.GroupLayout.PREFERRED_SIZE, 41,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(51, 51, 51)
.addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 43,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(42, 42, 42)
.addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 37,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(72, Short.MAX_VALUE))
);

pack();
}// </editor-fold>

private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
String str1=new String();
String str2=new String();
boolean bool;
str1=jTextField1.getText();
str2=jTextField2.getText();
bool=str1.equals(str2);
if(bool==true)
{
jLabel3.setText("entered strings are equal");
}
else
{
jLabel3.setText("entered strings are not equal");
}

/**
* @param args the command line arguments
*/
public static void main(String args[]) {
/* Set the Nimbus look and feel */
//<editor-fold defaultstate="collapsed" desc=" Look and feel setting code
(optional) ">
/* If Nimbus (introduced in Java SE 6) is not available, stay with the
default look and feel.
* For details see
http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
*/
try {
for (javax.swing.UIManager.LookAndFeelInfo info :
javax.swing.UIManager.getInstalledLookAndFeels()) {
if ("Nimbus".equals(info.getName())) {
javax.swing.UIManager.setLookAndFeel(info.getClassName());
break;
Page| 8
}
}
} catch (ClassNotFoundException ex) {

java.util.logging.Logger.getLogger(NewJFrame7.class.getName()).log(java.util.loggin
g.Level.SEVERE, null, ex);
} catch (InstantiationException ex) {

java.util.logging.Logger.getLogger(NewJFrame7.class.getName()).log(java.util.loggin
g.Level.SEVERE, null, ex);
} catch (IllegalAccessException ex) {

java.util.logging.Logger.getLogger(NewJFrame7.class.getName()).log(java.util.loggin
g.Level.SEVERE, null, ex);
} catch (javax.swing.UnsupportedLookAndFeelException ex) {

java.util.logging.Logger.getLogger(NewJFrame7.class.getName()).log(java.util.loggin
g.Level.SEVERE, null, ex);
}
//</editor-fold>

/* Create and display the form */


java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new NewJFrame7().setVisible(true);
}
});
}

// Variables declaration - do not modify


private javax.swing.JButton jButton1;
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel2;
private javax.swing.JLabel jLabel3;
private javax.swing.JTextField jTextField1;
private javax.swing.JTextField jTextField2;
// End of variables declaration
}

Page| 9
RESULT

Page| 10
Testing with first set of inputs

Page| 11
Testing with another set of inputs.

Page| 12
6. User Manual

How to install Software?


Hardware Requirements:
 Computer withatleast2GB of RAM, 1.0GHzCPU.
 Keyboard and mouse for user input.
 Display screen for showing the application interface.
 Java-compatible OS(Windows, macOS, Linux).
Software Requirements:
 Java Development Kit(JDK)(version8 or above).
 NetBeans IDE for coding and UI design.
 Java Swing for the GUI

Installing NetBeans
1. Download NetBeans:
Go to the official Apache NetBeans website.
Download the installer for your operating system
(Windows, macOS, or Linux).
2. Install Java Development Kit (JDK) (Required for Java
Development):
Ensure you have the JDK installed. You can download it
from the Oracle website or use Open JDK.
After installation, set the JAVA_HOM Environment variable to
point to the JDK installation directory.
3. Install NetBeans:
Run the downloaded installer.
Follow the on-screen instructions to complete the
installation process.

Page| 13
During installation, ensure it detects your JDK.
1. Launch NetBeans:
After installation, open NetBeans from your desktop or
applications menu.

Using NetBeans
1. Create a New Project:
 Click File > NewProject.
 Select the type of project (e.g., "Java with Maven"
or "Java Application").
 Click Next, enter project details (name, location),
and finish.
2. Write Code:
 Once the project is created, open the Main.java file
or the main class file.
 Write your code in the editor. It provides features
like syntax highlighting, auto-completion, and
suggestions.
3. Run Your Project:
 Click the Run button (green triangle) in the toolbar,
or press Shift + F6.
 The output will be displayed in the Output window
at the bottom.
4. Debug Your Code:
 Use the Debug button (green triangle with a bug
icon) to start debugging.
 Add breakpoints by clicking on the line number in
the editor.

Page| 14
 Inspect variables and step through the code in the
Debugger panel.
5. Manage Libraries and Dependencies:
 For Java projects, you can manage libraries via
Project Properties > Libraries.
 Use Maven or Gradle for dependency management
(build tools are integrated into NetBeans).

Page| 15
7. References

In order to work on this project, the following books and


literature are referred by me during the various phases of
development on the project.
1. Information Technology for class XII
-By Sumit Arora
2. Database Management Applications Class XII student
Handbook.
-By CBSE
3. https://netbeans.apache.org/front/main/index.html
4. https://www.oracle.com/in/java/technologies/downloads/
5. https://chatgpt.com/
6. https://docs.oracle.com/javase/tutorial/uiswing
7. Online help of NetBeans
8. Various websites of discussion forum and software
development activities

Other than the above-mentioned books, the suggestions and


supervision of my teacher and my class experience also
helped me to develop software project.

Page| 16
ODISHA ADARSHA VIDYALAYA
RAJGANGPUR, SUNDARGARH
SESSION 2024-25

APROJECTON
____
Submitted By
ISSAC TIRKEY
CLASS: XII, A
ROLLNO:10

Under the Guidance of


Mr. Manas Ranjan Nayak
Computer Science Teacher

Department of Computer Science


Odisha Adarsha Vidyalaya Rajgangpur, Sundargarh

Page| 1
CERTIFICATE
This is to certify that name of class XII has successfully
completed Project on Check Two String aqual or Not
under the guidance of Computer Science Teacher Mr.
Manas Ranjan Nayak during the Year 2024-25.

Signature of Teacher Signature of Principal


Name: Manas Ranjan Nayak

Page| 2
ACKNOWLEDGEMENT

W e undertook this project work, as the part of our XII-


Information Technology course. We had tried to apply our
best of knowledge and experience, gained during the study
and class work experience. However, developing software is
generally a quite complex and time-consuming process. It requires a
systematic study, insight vision and professional approach during the
design and development. Moreover, the developer always feels the
needs, the help and good wishes of people near you, who have
considerable experience and idea.

We would like to extend our sincere thanks and gratitude to our


teacher Mr. Manas Rajan Nayak (COMPUTER SCIENCE TEACHER).
We are very much thankful to our Principal Miss Banita Patel for
giving valuable time and moral support to develop this application

We would like to take opportunity extend our sincere thanks and


gratitude to our parents for being a source of inspiration and
providing time and freedom to develop this application.

ISSAC TIRKEY
CLASS-XII, A
ROLLNO: 10

Page| 3
CONTENTS

SL Topics Page
No. number
1 Introduction 1
2 Objective & Scope of the Project 2
3 Theoretical Background 3 to 4
4 System Implementation 5
5 System Design & Development 6 to12
6 User Manual 13 to15
7 References 16

Page| 4
1. Introduction
In this project, we have developed a Simple Calculator App
using Java with the help of NetBeans IDE. The goal of the
application is to perform basic string manipulation
method equals(). This simple program serves
as a great beginner project for understanding
fundamental programming concepts regarding
string manipulation, graphical user interface
(GUI) design, and event-driven programming.
The project demonstrates how Java can be used to create
interactive applications that allow users to input values,
perform calculations, and view the results instantly. By
utilizing NetBeans IDE, we leverage its powerful tools for
GUI development, allowing us to design a clean and intuitive
user interface This application accepts two
Strings and checks they are equal or not.
This project is intended to enhance understanding of Java
syntax, GUI components such as buttons, text fields, and
labels, as well as basic control flow mechanisms for
processing arithmetic operations. Furthermore, it provides a
solid foundation for building more advanced Java applications
in the future.

Page| 1
2. Objective & Scope of the Project

Scope
1. Core Features:
 This application accepts two Strings and checks they are
equal or not.
2. Design and Usability:
 User-friendly interface suitable for all age groups.
 Display of current input, operation and result in a
clear and readable manner.
3. Platform:
 Desktop application.
 Offline functionality.

Objective
1. Efficiency: Provide a quick and reliable tool for
performing everyday calculations.
2. Accessibility: Make arithmetic calculations easy for non-
technical users.
3. Education: Help students and learners understand and
perform simple math operations.
4. Convenience: Offer an always-available alternative to
physical calculators.

Page| 2
3. Theoretical Background

3.1WhatisNetBeansIDE?
NetBeans is an open-source integrated development environment
(IDE) used primarily for developing Java applications, though it also
supports other languages such as C, C++, PHP, HTML, JavaScript,
and more. It provides a rich set of tools for developers to write, debug,
and optimize code efficiently.

Key Features of NetBeans


1. Support for Multiple Languages:
Native support for Java.
Plugins for C/C++, PHP, HTML5, Python, and other languages.
2. Code Editor:
Advanced text editor with features like syntax highlighting, auto-
completion, and code refactoring.
3. Project Management:
Helps organize code into projects with clear structures and easy
navigation.
4. Debugging Tools:
Built-in debugger to find and fix bugs in the code.
5. UI Development:
Visual design tools for creating graphical user interfaces (GUIs),
especially for Java Swing applications.
6. Integration with Build Tools:

Page| 3
Supports tools like Maven, Ant, and Gradle for build and dependency
management.
1. Version Control:
Built-in support for Git, Subversion(SVN), and Mercurial.
2. Cross-Platform:
Available for Windows, mac OS, and Linux.
3. Extensibility:
Allows installation of plugins to extend its capabilities.
Uses of NetBeans
It is used for Development of desktop, web, and mobile applications.
Learning and teaching programming concepts (common in academic
environments). Building enterprise applications using Java EE.
History and Current Status
It is originally developed by Sun Microsystems, later acquired by
Oracle. Currently it is maintained by the Apache Software Foundation
as part of the Apache Incubator program. Latest versions are branded
as Apache NetBeans.

Page| 4
4. System Implementation

Hardware Requirements:
 Computer with at least2GB of RAM, 1.0GHzCPU.
 Keyboard and mouse for user input.
 Display screen for showing the application interface.
 Java-compatible OS(Windows, mac OS, Linux).

Software Requirements:
 Java Development Kit(JDK)(version8 or above).
 NetBeans IDE for codingand UI design.
 Java Swing for the GUI

Page| 5
5. System Design & Development

Coding
/*
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to
change this license
* Click nbfs://nbhost/SystemFileSystem/Templates/GUIForms/JFrame.java to edit this
template
*/

/**
*
* @author admin4
*/
public class NewJFrame7 extends javax.swing.JFrame {

/**
* Creates new form NewJFrame7
*/
public NewJFrame7() {
initComponents();
}

/**
* This method is called from within the constructor to initialize the form.
* WARNING: Do NOT modify this code. The content of this method is always
* regenerated by the Form Editor.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">
private void initComponents() {

jLabel1 = new javax.swing.JLabel();


jLabel2 = new javax.swing.JLabel();
jTextField1 = new javax.swing.JTextField();
jTextField2 = new javax.swing.JTextField();
jLabel3 = new javax.swing.JLabel();
jButton1 = new javax.swing.JButton();

setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

jLabel1.setText("Enter your text");

jLabel2.setText("Re-enter your text");

jButton1.setText("Check");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
Page| 6
}
});

javax.swing.GroupLayout layout = new


javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(39, 39, 39)

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
.addComponent(jLabel2,
javax.swing.GroupLayout.DEFAULT_SIZE, 202, Short.MAX_VALUE)
.addComponent(jLabel1,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE))

.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
.addComponent(jTextField1,
javax.swing.GroupLayout.DEFAULT_SIZE, 287, Short.MAX_VALUE)
.addComponent(jTextField2)))
.addGroup(layout.createSequentialGroup()
.addGap(177, 177, 177)
.addComponent(jLabel3,
javax.swing.GroupLayout.PREFERRED_SIZE, 316,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(layout.createSequentialGroup()
.addGap(222, 222, 222)
.addComponent(jButton1,
javax.swing.GroupLayout.PREFERRED_SIZE, 186,
javax.swing.GroupLayout.PREFERRED_SIZE)))
.addContainerGap(136, Short.MAX_VALUE))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(57, 57, 57)

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
.addComponent(jTextField1,
javax.swing.GroupLayout.DEFAULT_SIZE, 41, Short.MAX_VALUE)
.addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))

.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)

Page| 7
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE,
43, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jTextField2,
javax.swing.GroupLayout.PREFERRED_SIZE, 41,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(51, 51, 51)
.addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 43,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(42, 42, 42)
.addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 37,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(72, Short.MAX_VALUE))
);

pack();
}// </editor-fold>

private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
String str1=new String();
String str2=new String();
boolean bool;
str1=jTextField1.getText();
str2=jTextField2.getText();
bool=str1.equals(str2);
if(bool==true)
{
jLabel3.setText("entered strings are equal");
}
else
{
jLabel3.setText("entered strings are not equal");
}

/**
* @param args the command line arguments
*/
public static void main(String args[]) {
/* Set the Nimbus look and feel */
//<editor-fold defaultstate="collapsed" desc=" Look and feel setting code
(optional) ">
/* If Nimbus (introduced in Java SE 6) is not available, stay with the
default look and feel.
* For details see
http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
*/
try {
for (javax.swing.UIManager.LookAndFeelInfo info :
javax.swing.UIManager.getInstalledLookAndFeels()) {
if ("Nimbus".equals(info.getName())) {
javax.swing.UIManager.setLookAndFeel(info.getClassName());
break;
Page| 8
}
}
} catch (ClassNotFoundException ex) {

java.util.logging.Logger.getLogger(NewJFrame7.class.getName()).log(java.util.loggin
g.Level.SEVERE, null, ex);
} catch (InstantiationException ex) {

java.util.logging.Logger.getLogger(NewJFrame7.class.getName()).log(java.util.loggin
g.Level.SEVERE, null, ex);
} catch (IllegalAccessException ex) {

java.util.logging.Logger.getLogger(NewJFrame7.class.getName()).log(java.util.loggin
g.Level.SEVERE, null, ex);
} catch (javax.swing.UnsupportedLookAndFeelException ex) {

java.util.logging.Logger.getLogger(NewJFrame7.class.getName()).log(java.util.loggin
g.Level.SEVERE, null, ex);
}
//</editor-fold>

/* Create and display the form */


java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new NewJFrame7().setVisible(true);
}
});
}

// Variables declaration - do not modify


private javax.swing.JButton jButton1;
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel2;
private javax.swing.JLabel jLabel3;
private javax.swing.JTextField jTextField1;
private javax.swing.JTextField jTextField2;
// End of variables declaration
}

Page| 9
RESULT

Page| 10
Testing with first set of inputs

Page| 11
Testing with another set of inputs.

Page| 12
6. User Manual

How to install Software?


Hardware Requirements:
 Computer withatleast2GB of RAM, 1.0GHzCPU.
 Keyboard and mouse for user input.
 Display screen for showing the application interface.
 Java-compatible OS(Windows, macOS, Linux).
Software Requirements:
 Java Development Kit(JDK)(version8 or above).
 NetBeans IDE for coding and UI design.
 Java Swing for the GUI

Installing NetBeans
1. Download NetBeans:
Go to the official Apache NetBeans website.
Download the installer for your operating system
(Windows, macOS, or Linux).
2. Install Java Development Kit (JDK) (Required for Java
Development):
Ensure you have the JDK installed. You can download it
from the Oracle website or use Open JDK.
After installation, set the JAVA_HOM Environment variable to
point to the JDK installation directory.
3. Install NetBeans:
Run the downloaded installer.
Follow the on-screen instructions to complete the
installation process.

Page| 13
During installation, ensure it detects your JDK.
1. Launch NetBeans:
After installation, open NetBeans from your desktop or
applications menu.

Using NetBeans
1. Create a New Project:
 Click File > NewProject.
 Select the type of project (e.g., "Java with Maven"
or "Java Application").
 Click Next, enter project details (name, location),
and finish.
2. Write Code:
 Once the project is created, open the Main.java file
or the main class file.
 Write your code in the editor. It provides features
like syntax highlighting, auto-completion, and
suggestions.
3. Run Your Project:
 Click the Run button (green triangle) in the toolbar,
or press Shift + F6.
 The output will be displayed in the Output window
at the bottom.
4. Debug Your Code:
 Use the Debug button (green triangle with a bug
icon) to start debugging.
 Add breakpoints by clicking on the line number in
the editor.

Page| 14
 Inspect variables and step through the code in the
Debugger panel.
5. Manage Libraries and Dependencies:
 For Java projects, you can manage libraries via
Project Properties > Libraries.
 Use Maven or Gradle for dependency management
(build tools are integrated into NetBeans).

Page| 15
7. References

In order to work on this project, the following books and


literature are referred by me during the various phases of
development on the project.
1. Information Technology for class XII
-By Sumit Arora
2. Database Management Applications Class XII student
Handbook.
-By CBSE
3. https://netbeans.apache.org/front/main/index.html
4. https://www.oracle.com/in/java/technologies/downloads/
5. https://chatgpt.com/
6. https://docs.oracle.com/javase/tutorial/uiswing
7. Online help of NetBeans
8. Various websites of discussion forum and software
development activities

Other than the above-mentioned books, the suggestions and


supervision of my teacher and my class experience also
helped me to develop software project.

Page| 16
ODISHA ADARSHA VIDYALAYA
RAJGANGPUR, SUNDARGARH
SESSION 2024-25

APROJECTON
____
Submitted By
KOUSHIK PRADHAN
CLASS: XII, A
ROLLNO:24

Under the Guidance of


Mr. Manas Ranjan Nayak
Computer Science Teacher

Department of Computer Science


Odisha Adarsha Vidyalaya Rajgangpur, Sundargarh

Page| 1
CERTIFICATE
This is to certify that name of class XII has successfully
completed Project on Check Two String aqual or Not
under the guidance of Computer Science Teacher Mr.
Manas Ranjan Nayak during the Year 2024-25.

Signature of Teacher Signature of Principal


Name: Manas Ranjan Nayak

Page| 2
ACKNOWLEDGEMENT

W e undertook this project work, as the part of our XII-


Information Technology course. We had tried to apply our
best of knowledge and experience, gained during the study
and class work experience. However, developing software is
generally a quite complex and time-consuming process. It requires a
systematic study, insight vision and professional approach during the
design and development. Moreover, the developer always feels the
needs, the help and good wishes of people near you, who have
considerable experience and idea.

We would like to extend our sincere thanks and gratitude to our


teacher Mr. Manas Rajan Nayak (COMPUTER SCIENCE TEACHER).
We are very much thankful to our Principal Miss Banita Patel for
giving valuable time and moral support to develop this application

We would like to take opportunity extend our sincere thanks and


gratitude to our parents for being a source of inspiration and
providing time and freedom to develop this application.

KOUSHIK PRADHAN
CLASS-XII, A
ROLLNO: 24

Page| 3
CONTENTS

SL Topics Page
No. number
1 Introduction 1
2 Objective & Scope of the Project 2
3 Theoretical Background 3 to 4
4 System Implementation 5
5 System Design & Development 6 to12
6 User Manual 13 to15
7 References 16

Page| 4
1. Introduction
In this project, we have developed a Simple Calculator App
using Java with the help of NetBeans IDE. The goal of the
application is to perform basic string manipulation
method equals(). This simple program serves
as a great beginner project for understanding
fundamental programming concepts regarding
string manipulation, graphical user interface
(GUI) design, and event-driven programming.
The project demonstrates how Java can be used to create
interactive applications that allow users to input values,
perform calculations, and view the results instantly. By
utilizing NetBeans IDE, we leverage its powerful tools for
GUI development, allowing us to design a clean and intuitive
user interface This application accepts two
Strings and checks they are equal or not.
This project is intended to enhance understanding of Java
syntax, GUI components such as buttons, text fields, and
labels, as well as basic control flow mechanisms for
processing arithmetic operations. Furthermore, it provides a
solid foundation for building more advanced Java applications
in the future.

Page| 1
2. Objective & Scope of the Project

Scope
1. Core Features:
 This application accepts two Strings and checks they are
equal or not.
2. Design and Usability:
 User-friendly interface suitable for all age groups.
 Display of current input, operation and result in a
clear and readable manner.
3. Platform:
 Desktop application.
 Offline functionality.

Objective
1. Efficiency: Provide a quick and reliable tool for
performing everyday calculations.
2. Accessibility: Make arithmetic calculations easy for non-
technical users.
3. Education: Help students and learners understand and
perform simple math operations.
4. Convenience: Offer an always-available alternative to
physical calculators.

Page| 2
3. Theoretical Background

3.1WhatisNetBeansIDE?
NetBeans is an open-source integrated development environment
(IDE) used primarily for developing Java applications, though it also
supports other languages such as C, C++, PHP, HTML, JavaScript,
and more. It provides a rich set of tools for developers to write, debug,
and optimize code efficiently.

Key Features of NetBeans


1. Support for Multiple Languages:
Native support for Java.
Plugins for C/C++, PHP, HTML5, Python, and other languages.
2. Code Editor:
Advanced text editor with features like syntax highlighting, auto-
completion, and code refactoring.
3. Project Management:
Helps organize code into projects with clear structures and easy
navigation.
4. Debugging Tools:
Built-in debugger to find and fix bugs in the code.
5. UI Development:
Visual design tools for creating graphical user interfaces (GUIs),
especially for Java Swing applications.
6. Integration with Build Tools:

Page| 3
Supports tools like Maven, Ant, and Gradle for build and dependency
management.
1. Version Control:
Built-in support for Git, Subversion(SVN), and Mercurial.
2. Cross-Platform:
Available for Windows, mac OS, and Linux.
3. Extensibility:
Allows installation of plugins to extend its capabilities.
Uses of NetBeans
It is used for Development of desktop, web, and mobile applications.
Learning and teaching programming concepts (common in academic
environments). Building enterprise applications using Java EE.
History and Current Status
It is originally developed by Sun Microsystems, later acquired by
Oracle. Currently it is maintained by the Apache Software Foundation
as part of the Apache Incubator program. Latest versions are branded
as Apache NetBeans.

Page| 4
4. System Implementation

Hardware Requirements:
 Computer with at least2GB of RAM, 1.0GHzCPU.
 Keyboard and mouse for user input.
 Display screen for showing the application interface.
 Java-compatible OS(Windows, mac OS, Linux).

Software Requirements:
 Java Development Kit(JDK)(version8 or above).
 NetBeans IDE for codingand UI design.
 Java Swing for the GUI

Page| 5
5. System Design & Development

Coding
/*
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to
change this license
* Click nbfs://nbhost/SystemFileSystem/Templates/GUIForms/JFrame.java to edit this
template
*/

/**
*
* @author admin4
*/
public class NewJFrame7 extends javax.swing.JFrame {

/**
* Creates new form NewJFrame7
*/
public NewJFrame7() {
initComponents();
}

/**
* This method is called from within the constructor to initialize the form.
* WARNING: Do NOT modify this code. The content of this method is always
* regenerated by the Form Editor.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">
private void initComponents() {

jLabel1 = new javax.swing.JLabel();


jLabel2 = new javax.swing.JLabel();
jTextField1 = new javax.swing.JTextField();
jTextField2 = new javax.swing.JTextField();
jLabel3 = new javax.swing.JLabel();
jButton1 = new javax.swing.JButton();

setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

jLabel1.setText("Enter your text");

jLabel2.setText("Re-enter your text");

jButton1.setText("Check");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
Page| 6
}
});

javax.swing.GroupLayout layout = new


javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(39, 39, 39)

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
.addComponent(jLabel2,
javax.swing.GroupLayout.DEFAULT_SIZE, 202, Short.MAX_VALUE)
.addComponent(jLabel1,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE))

.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
.addComponent(jTextField1,
javax.swing.GroupLayout.DEFAULT_SIZE, 287, Short.MAX_VALUE)
.addComponent(jTextField2)))
.addGroup(layout.createSequentialGroup()
.addGap(177, 177, 177)
.addComponent(jLabel3,
javax.swing.GroupLayout.PREFERRED_SIZE, 316,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(layout.createSequentialGroup()
.addGap(222, 222, 222)
.addComponent(jButton1,
javax.swing.GroupLayout.PREFERRED_SIZE, 186,
javax.swing.GroupLayout.PREFERRED_SIZE)))
.addContainerGap(136, Short.MAX_VALUE))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(57, 57, 57)

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
.addComponent(jTextField1,
javax.swing.GroupLayout.DEFAULT_SIZE, 41, Short.MAX_VALUE)
.addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))

.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)

Page| 7
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE,
43, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jTextField2,
javax.swing.GroupLayout.PREFERRED_SIZE, 41,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(51, 51, 51)
.addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 43,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(42, 42, 42)
.addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 37,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(72, Short.MAX_VALUE))
);

pack();
}// </editor-fold>

private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
String str1=new String();
String str2=new String();
boolean bool;
str1=jTextField1.getText();
str2=jTextField2.getText();
bool=str1.equals(str2);
if(bool==true)
{
jLabel3.setText("entered strings are equal");
}
else
{
jLabel3.setText("entered strings are not equal");
}

/**
* @param args the command line arguments
*/
public static void main(String args[]) {
/* Set the Nimbus look and feel */
//<editor-fold defaultstate="collapsed" desc=" Look and feel setting code
(optional) ">
/* If Nimbus (introduced in Java SE 6) is not available, stay with the
default look and feel.
* For details see
http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
*/
try {
for (javax.swing.UIManager.LookAndFeelInfo info :
javax.swing.UIManager.getInstalledLookAndFeels()) {
if ("Nimbus".equals(info.getName())) {
javax.swing.UIManager.setLookAndFeel(info.getClassName());
break;
Page| 8
}
}
} catch (ClassNotFoundException ex) {

java.util.logging.Logger.getLogger(NewJFrame7.class.getName()).log(java.util.loggin
g.Level.SEVERE, null, ex);
} catch (InstantiationException ex) {

java.util.logging.Logger.getLogger(NewJFrame7.class.getName()).log(java.util.loggin
g.Level.SEVERE, null, ex);
} catch (IllegalAccessException ex) {

java.util.logging.Logger.getLogger(NewJFrame7.class.getName()).log(java.util.loggin
g.Level.SEVERE, null, ex);
} catch (javax.swing.UnsupportedLookAndFeelException ex) {

java.util.logging.Logger.getLogger(NewJFrame7.class.getName()).log(java.util.loggin
g.Level.SEVERE, null, ex);
}
//</editor-fold>

/* Create and display the form */


java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new NewJFrame7().setVisible(true);
}
});
}

// Variables declaration - do not modify


private javax.swing.JButton jButton1;
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel2;
private javax.swing.JLabel jLabel3;
private javax.swing.JTextField jTextField1;
private javax.swing.JTextField jTextField2;
// End of variables declaration
}

Page| 9
RESULT

Page| 10
Testing with first set of inputs

Page| 11
Testing with another set of inputs.

Page| 12
6. User Manual

How to install Software?


Hardware Requirements:
 Computer withatleast2GB of RAM, 1.0GHzCPU.
 Keyboard and mouse for user input.
 Display screen for showing the application interface.
 Java-compatible OS(Windows, macOS, Linux).
Software Requirements:
 Java Development Kit(JDK)(version8 or above).
 NetBeans IDE for coding and UI design.
 Java Swing for the GUI

Installing NetBeans
1. Download NetBeans:
Go to the official Apache NetBeans website.
Download the installer for your operating system
(Windows, macOS, or Linux).
2. Install Java Development Kit (JDK) (Required for Java
Development):
Ensure you have the JDK installed. You can download it
from the Oracle website or use Open JDK.
After installation, set the JAVA_HOM Environment variable to
point to the JDK installation directory.
3. Install NetBeans:
Run the downloaded installer.
Follow the on-screen instructions to complete the
installation process.

Page| 13
During installation, ensure it detects your JDK.
1. Launch NetBeans:
After installation, open NetBeans from your desktop or
applications menu.

Using NetBeans
1. Create a New Project:
 Click File > NewProject.
 Select the type of project (e.g., "Java with Maven"
or "Java Application").
 Click Next, enter project details (name, location),
and finish.
2. Write Code:
 Once the project is created, open the Main.java file
or the main class file.
 Write your code in the editor. It provides features
like syntax highlighting, auto-completion, and
suggestions.
3. Run Your Project:
 Click the Run button (green triangle) in the toolbar,
or press Shift + F6.
 The output will be displayed in the Output window
at the bottom.
4. Debug Your Code:
 Use the Debug button (green triangle with a bug
icon) to start debugging.
 Add breakpoints by clicking on the line number in
the editor.

Page| 14
 Inspect variables and step through the code in the
Debugger panel.
5. Manage Libraries and Dependencies:
 For Java projects, you can manage libraries via
Project Properties > Libraries.
 Use Maven or Gradle for dependency management
(build tools are integrated into NetBeans).

Page| 15
7. References

In order to work on this project, the following books and


literature are referred by me during the various phases of
development on the project.
1. Information Technology for class XII
-By Sumit Arora
2. Database Management Applications Class XII student
Handbook.
-By CBSE
3. https://netbeans.apache.org/front/main/index.html
4. https://www.oracle.com/in/java/technologies/downloads/
5. https://chatgpt.com/
6. https://docs.oracle.com/javase/tutorial/uiswing
7. Online help of NetBeans
8. Various websites of discussion forum and software
development activities

Other than the above-mentioned books, the suggestions and


supervision of my teacher and my class experience also
helped me to develop software project.

Page| 16

You might also like