0% found this document useful (0 votes)
11 views260 pages

Project 9

Uploaded by

aryanmaharana714
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views260 pages

Project 9

Uploaded by

aryanmaharana714
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 260

ODISHA ADARSHA VIDYALAYA

RAJGANGPUR, SUNDARGARH
SESSION 2024-25

APROJECTON
____
Submitted By
MUSKAN ANSARI
CLASS: XII, A
ROLLNO:27

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 String Change Case 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.

MUSKAN ANSARI
CLASS-XII, A
ROLLNO: 27
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
methods such as toLowerCase(), toUpperCase().
This simple program serves as a great
beginner project for understanding
fundamental programming concepts regarding
string manipulation , graphical user
interface (GUI) design, and e
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 can handle String
and switches operation using two buttons.
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 can handle String and switches operation
using two buttons.
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 NewJFrame1 extends javax.swing.JFrame {

/**
* Creates new form NewJFrame1
*/
public NewJFrame1() {
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();


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

setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

jLabel1.setText("Enter a String");

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

jButton2.setText("Convert to Lowercase");
jButton2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton2ActionPerformed(evt);
}
});

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.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
.addGroup(layout.createSequentialGroup()
.addGap(59, 59, 59)
.addComponent(jLabel1,
javax.swing.GroupLayout.PREFERRED_SIZE, 118,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(27, 27, 27)
.addComponent(jTextField1,
javax.swing.GroupLayout.PREFERRED_SIZE, 190,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(47, 47, 47))
.addGroup(layout.createSequentialGroup()
.addGap(35, 35, 35)
.addComponent(jButton1,
javax.swing.GroupLayout.PREFERRED_SIZE, 183,
javax.swing.GroupLayout.PREFERRED_SIZE)

.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jButton2,
javax.swing.GroupLayout.PREFERRED_SIZE, 184,
javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGroup(layout.createSequentialGroup()
.addGap(59, 59, 59)
.addComponent(jLabel2,
javax.swing.GroupLayout.PREFERRED_SIZE, 373,
javax.swing.GroupLayout.PREFERRED_SIZE)))
.addContainerGap(111, Short.MAX_VALUE))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(72, 72, 72)

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
Page| 7
.addComponent(jTextField1,
javax.swing.GroupLayout.DEFAULT_SIZE, 42, Short.MAX_VALUE)
.addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGap(48, 48, 48)

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE,
48, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE,
48, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(42, 42, 42)
.addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 41,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(104, Short.MAX_VALUE))
);

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

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


// TODO add your handling code here:
String str_1, str_2;
str_1 = jTextField1.getText();
str_2 = str_1.toUpperCase();
jLabel2.setText(str_2);

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


// TODO add your handling code here:
String str_1, str_2;
str_1 = jTextField1.getText();
str_2 = str_1.toLowerCase();
jLabel2.setText(str_2);
}

/**
* @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(NewJFrame1.class.getName()).log(java.util.loggin
g.Level.SEVERE, null, ex);
} catch (InstantiationException ex) {

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

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

java.util.logging.Logger.getLogger(NewJFrame1.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 NewJFrame1().setVisible(true);
}
});
}

// Variables declaration - do not modify


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

Page| 9
RESULT

Page| 10
Testing of Uppercase conversion function

Page| 11
Testing of lower case conversion function

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
SIWANGI THAKUR
CLASS: XII, B
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 String Change Case 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.

SIWANGI THAKUR
CLASS-XII, B
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
methods such as toLowerCase(), toUpperCase().
This simple program serves as a great
beginner project for understanding
fundamental programming concepts regarding
string manipulation , graphical user
interface (GUI) design, and e
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 can handle String
and switches operation using two buttons.
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 can handle String and switches operation
using two buttons.
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 NewJFrame1 extends javax.swing.JFrame {

/**
* Creates new form NewJFrame1
*/
public NewJFrame1() {
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();


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

setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

jLabel1.setText("Enter a String");

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

jButton2.setText("Convert to Lowercase");
jButton2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton2ActionPerformed(evt);
}
});

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.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
.addGroup(layout.createSequentialGroup()
.addGap(59, 59, 59)
.addComponent(jLabel1,
javax.swing.GroupLayout.PREFERRED_SIZE, 118,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(27, 27, 27)
.addComponent(jTextField1,
javax.swing.GroupLayout.PREFERRED_SIZE, 190,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(47, 47, 47))
.addGroup(layout.createSequentialGroup()
.addGap(35, 35, 35)
.addComponent(jButton1,
javax.swing.GroupLayout.PREFERRED_SIZE, 183,
javax.swing.GroupLayout.PREFERRED_SIZE)

.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jButton2,
javax.swing.GroupLayout.PREFERRED_SIZE, 184,
javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGroup(layout.createSequentialGroup()
.addGap(59, 59, 59)
.addComponent(jLabel2,
javax.swing.GroupLayout.PREFERRED_SIZE, 373,
javax.swing.GroupLayout.PREFERRED_SIZE)))
.addContainerGap(111, Short.MAX_VALUE))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(72, 72, 72)

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
Page| 7
.addComponent(jTextField1,
javax.swing.GroupLayout.DEFAULT_SIZE, 42, Short.MAX_VALUE)
.addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGap(48, 48, 48)

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE,
48, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE,
48, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(42, 42, 42)
.addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 41,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(104, Short.MAX_VALUE))
);

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

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


// TODO add your handling code here:
String str_1, str_2;
str_1 = jTextField1.getText();
str_2 = str_1.toUpperCase();
jLabel2.setText(str_2);

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


// TODO add your handling code here:
String str_1, str_2;
str_1 = jTextField1.getText();
str_2 = str_1.toLowerCase();
jLabel2.setText(str_2);
}

/**
* @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(NewJFrame1.class.getName()).log(java.util.loggin
g.Level.SEVERE, null, ex);
} catch (InstantiationException ex) {

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

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

java.util.logging.Logger.getLogger(NewJFrame1.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 NewJFrame1().setVisible(true);
}
});
}

// Variables declaration - do not modify


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

Page| 9
RESULT

Page| 10
Testing of Uppercase conversion function

Page| 11
Testing of lower case conversion function

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
PRAGATI DAS
CLASS: XII, A
ROLLNO:20

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 String Change Case 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.

PRAGATI DAS
CLASS-XII, A
ROLLNO: 20

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
methods such as toLowerCase(), toUpperCase().
This simple program serves as a great
beginner project for understanding
fundamental programming concepts regarding
string manipulation , graphical user
interface (GUI) design, and e
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 can handle String
and switches operation using two buttons.
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 can handle String and switches operation
using two buttons.
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 NewJFrame1 extends javax.swing.JFrame {

/**
* Creates new form NewJFrame1
*/
public NewJFrame1() {
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();


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

setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

jLabel1.setText("Enter a String");

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

jButton2.setText("Convert to Lowercase");
jButton2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton2ActionPerformed(evt);
}
});

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.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
.addGroup(layout.createSequentialGroup()
.addGap(59, 59, 59)
.addComponent(jLabel1,
javax.swing.GroupLayout.PREFERRED_SIZE, 118,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(27, 27, 27)
.addComponent(jTextField1,
javax.swing.GroupLayout.PREFERRED_SIZE, 190,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(47, 47, 47))
.addGroup(layout.createSequentialGroup()
.addGap(35, 35, 35)
.addComponent(jButton1,
javax.swing.GroupLayout.PREFERRED_SIZE, 183,
javax.swing.GroupLayout.PREFERRED_SIZE)

.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jButton2,
javax.swing.GroupLayout.PREFERRED_SIZE, 184,
javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGroup(layout.createSequentialGroup()
.addGap(59, 59, 59)
.addComponent(jLabel2,
javax.swing.GroupLayout.PREFERRED_SIZE, 373,
javax.swing.GroupLayout.PREFERRED_SIZE)))
.addContainerGap(111, Short.MAX_VALUE))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(72, 72, 72)

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
Page| 7
.addComponent(jTextField1,
javax.swing.GroupLayout.DEFAULT_SIZE, 42, Short.MAX_VALUE)
.addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGap(48, 48, 48)

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE,
48, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE,
48, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(42, 42, 42)
.addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 41,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(104, Short.MAX_VALUE))
);

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

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


// TODO add your handling code here:
String str_1, str_2;
str_1 = jTextField1.getText();
str_2 = str_1.toUpperCase();
jLabel2.setText(str_2);

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


// TODO add your handling code here:
String str_1, str_2;
str_1 = jTextField1.getText();
str_2 = str_1.toLowerCase();
jLabel2.setText(str_2);
}

/**
* @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(NewJFrame1.class.getName()).log(java.util.loggin
g.Level.SEVERE, null, ex);
} catch (InstantiationException ex) {

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

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

java.util.logging.Logger.getLogger(NewJFrame1.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 NewJFrame1().setVisible(true);
}
});
}

// Variables declaration - do not modify


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

Page| 9
RESULT

Page| 10
Testing of Uppercase conversion function

Page| 11
Testing of lower case conversion function

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
SHREEYA RANI XAXA
CLASS: XII, A
ROLLNO:34

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 String Change Case 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.

SHREEYA RANI XAXA


CLASS-XII, A
ROLLNO: 34

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
methods such as toLowerCase(), toUpperCase().
This simple program serves as a great
beginner project for understanding
fundamental programming concepts regarding
string manipulation , graphical user
interface (GUI) design, and e
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 can handle String
and switches operation using two buttons.
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 can handle String and switches operation
using two buttons.
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 NewJFrame1 extends javax.swing.JFrame {

/**
* Creates new form NewJFrame1
*/
public NewJFrame1() {
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();


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

setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

jLabel1.setText("Enter a String");

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

jButton2.setText("Convert to Lowercase");
jButton2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton2ActionPerformed(evt);
}
});

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.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
.addGroup(layout.createSequentialGroup()
.addGap(59, 59, 59)
.addComponent(jLabel1,
javax.swing.GroupLayout.PREFERRED_SIZE, 118,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(27, 27, 27)
.addComponent(jTextField1,
javax.swing.GroupLayout.PREFERRED_SIZE, 190,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(47, 47, 47))
.addGroup(layout.createSequentialGroup()
.addGap(35, 35, 35)
.addComponent(jButton1,
javax.swing.GroupLayout.PREFERRED_SIZE, 183,
javax.swing.GroupLayout.PREFERRED_SIZE)

.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jButton2,
javax.swing.GroupLayout.PREFERRED_SIZE, 184,
javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGroup(layout.createSequentialGroup()
.addGap(59, 59, 59)
.addComponent(jLabel2,
javax.swing.GroupLayout.PREFERRED_SIZE, 373,
javax.swing.GroupLayout.PREFERRED_SIZE)))
.addContainerGap(111, Short.MAX_VALUE))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(72, 72, 72)

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
Page| 7
.addComponent(jTextField1,
javax.swing.GroupLayout.DEFAULT_SIZE, 42, Short.MAX_VALUE)
.addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGap(48, 48, 48)

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE,
48, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE,
48, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(42, 42, 42)
.addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 41,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(104, Short.MAX_VALUE))
);

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

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


// TODO add your handling code here:
String str_1, str_2;
str_1 = jTextField1.getText();
str_2 = str_1.toUpperCase();
jLabel2.setText(str_2);

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


// TODO add your handling code here:
String str_1, str_2;
str_1 = jTextField1.getText();
str_2 = str_1.toLowerCase();
jLabel2.setText(str_2);
}

/**
* @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(NewJFrame1.class.getName()).log(java.util.loggin
g.Level.SEVERE, null, ex);
} catch (InstantiationException ex) {

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

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

java.util.logging.Logger.getLogger(NewJFrame1.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 NewJFrame1().setVisible(true);
}
});
}

// Variables declaration - do not modify


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

Page| 9
RESULT

Page| 10
Testing of Uppercase conversion function

Page| 11
Testing of lower case conversion function

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
SWAGATIKA MALLICK
CLASS: XII, A
ROLLNO:32

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 String Change Case 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.

SWAGATIKA MALLICK
CLASS-XII, A
ROLLNO: 32

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
methods such as toLowerCase(), toUpperCase().
This simple program serves as a great
beginner project for understanding
fundamental programming concepts regarding
string manipulation , graphical user
interface (GUI) design, and e
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 can handle String
and switches operation using two buttons.
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 can handle String and switches operation
using two buttons.
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 NewJFrame1 extends javax.swing.JFrame {

/**
* Creates new form NewJFrame1
*/
public NewJFrame1() {
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();


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

setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

jLabel1.setText("Enter a String");

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

jButton2.setText("Convert to Lowercase");
jButton2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton2ActionPerformed(evt);
}
});

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.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
.addGroup(layout.createSequentialGroup()
.addGap(59, 59, 59)
.addComponent(jLabel1,
javax.swing.GroupLayout.PREFERRED_SIZE, 118,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(27, 27, 27)
.addComponent(jTextField1,
javax.swing.GroupLayout.PREFERRED_SIZE, 190,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(47, 47, 47))
.addGroup(layout.createSequentialGroup()
.addGap(35, 35, 35)
.addComponent(jButton1,
javax.swing.GroupLayout.PREFERRED_SIZE, 183,
javax.swing.GroupLayout.PREFERRED_SIZE)

.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jButton2,
javax.swing.GroupLayout.PREFERRED_SIZE, 184,
javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGroup(layout.createSequentialGroup()
.addGap(59, 59, 59)
.addComponent(jLabel2,
javax.swing.GroupLayout.PREFERRED_SIZE, 373,
javax.swing.GroupLayout.PREFERRED_SIZE)))
.addContainerGap(111, Short.MAX_VALUE))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(72, 72, 72)

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
Page| 7
.addComponent(jTextField1,
javax.swing.GroupLayout.DEFAULT_SIZE, 42, Short.MAX_VALUE)
.addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGap(48, 48, 48)

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE,
48, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE,
48, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(42, 42, 42)
.addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 41,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(104, Short.MAX_VALUE))
);

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

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


// TODO add your handling code here:
String str_1, str_2;
str_1 = jTextField1.getText();
str_2 = str_1.toUpperCase();
jLabel2.setText(str_2);

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


// TODO add your handling code here:
String str_1, str_2;
str_1 = jTextField1.getText();
str_2 = str_1.toLowerCase();
jLabel2.setText(str_2);
}

/**
* @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(NewJFrame1.class.getName()).log(java.util.loggin
g.Level.SEVERE, null, ex);
} catch (InstantiationException ex) {

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

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

java.util.logging.Logger.getLogger(NewJFrame1.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 NewJFrame1().setVisible(true);
}
});
}

// Variables declaration - do not modify


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

Page| 9
RESULT

Page| 10
Testing of Uppercase conversion function

Page| 11
Testing of lower case conversion function

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
BRINDA SAH
CLASS: XII, A
ROLLNO:22

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 String Change Case 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.

BRINDA SAH
CLASS-XII, A
ROLLNO: 22

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
methods such as toLowerCase(), toUpperCase().
This simple program serves as a great
beginner project for understanding
fundamental programming concepts regarding
string manipulation , graphical user
interface (GUI) design, and e
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 can handle String
and switches operation using two buttons.
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 can handle String and switches operation
using two buttons.
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 NewJFrame1 extends javax.swing.JFrame {

/**
* Creates new form NewJFrame1
*/
public NewJFrame1() {
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();


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

setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

jLabel1.setText("Enter a String");

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

jButton2.setText("Convert to Lowercase");
jButton2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton2ActionPerformed(evt);
}
});

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.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
.addGroup(layout.createSequentialGroup()
.addGap(59, 59, 59)
.addComponent(jLabel1,
javax.swing.GroupLayout.PREFERRED_SIZE, 118,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(27, 27, 27)
.addComponent(jTextField1,
javax.swing.GroupLayout.PREFERRED_SIZE, 190,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(47, 47, 47))
.addGroup(layout.createSequentialGroup()
.addGap(35, 35, 35)
.addComponent(jButton1,
javax.swing.GroupLayout.PREFERRED_SIZE, 183,
javax.swing.GroupLayout.PREFERRED_SIZE)

.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jButton2,
javax.swing.GroupLayout.PREFERRED_SIZE, 184,
javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGroup(layout.createSequentialGroup()
.addGap(59, 59, 59)
.addComponent(jLabel2,
javax.swing.GroupLayout.PREFERRED_SIZE, 373,
javax.swing.GroupLayout.PREFERRED_SIZE)))
.addContainerGap(111, Short.MAX_VALUE))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(72, 72, 72)

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
Page| 7
.addComponent(jTextField1,
javax.swing.GroupLayout.DEFAULT_SIZE, 42, Short.MAX_VALUE)
.addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGap(48, 48, 48)

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE,
48, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE,
48, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(42, 42, 42)
.addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 41,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(104, Short.MAX_VALUE))
);

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

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


// TODO add your handling code here:
String str_1, str_2;
str_1 = jTextField1.getText();
str_2 = str_1.toUpperCase();
jLabel2.setText(str_2);

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


// TODO add your handling code here:
String str_1, str_2;
str_1 = jTextField1.getText();
str_2 = str_1.toLowerCase();
jLabel2.setText(str_2);
}

/**
* @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(NewJFrame1.class.getName()).log(java.util.loggin
g.Level.SEVERE, null, ex);
} catch (InstantiationException ex) {

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

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

java.util.logging.Logger.getLogger(NewJFrame1.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 NewJFrame1().setVisible(true);
}
});
}

// Variables declaration - do not modify


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

Page| 9
RESULT

Page| 10
Testing of Uppercase conversion function

Page| 11
Testing of lower case conversion function

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
ARATI ROUT
CLASS: XII, B
ROLLNO:16

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 String Change Case 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.

ARATI ROUT
CLASS-XII, B
ROLLNO: 16

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
methods such as toLowerCase(), toUpperCase().
This simple program serves as a great
beginner project for understanding
fundamental programming concepts regarding
string manipulation , graphical user
interface (GUI) design, and e
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 can handle String
and switches operation using two buttons.
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 can handle String and switches operation
using two buttons.
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 NewJFrame1 extends javax.swing.JFrame {

/**
* Creates new form NewJFrame1
*/
public NewJFrame1() {
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();


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

setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

jLabel1.setText("Enter a String");

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

jButton2.setText("Convert to Lowercase");
jButton2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton2ActionPerformed(evt);
}
});

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.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
.addGroup(layout.createSequentialGroup()
.addGap(59, 59, 59)
.addComponent(jLabel1,
javax.swing.GroupLayout.PREFERRED_SIZE, 118,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(27, 27, 27)
.addComponent(jTextField1,
javax.swing.GroupLayout.PREFERRED_SIZE, 190,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(47, 47, 47))
.addGroup(layout.createSequentialGroup()
.addGap(35, 35, 35)
.addComponent(jButton1,
javax.swing.GroupLayout.PREFERRED_SIZE, 183,
javax.swing.GroupLayout.PREFERRED_SIZE)

.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jButton2,
javax.swing.GroupLayout.PREFERRED_SIZE, 184,
javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGroup(layout.createSequentialGroup()
.addGap(59, 59, 59)
.addComponent(jLabel2,
javax.swing.GroupLayout.PREFERRED_SIZE, 373,
javax.swing.GroupLayout.PREFERRED_SIZE)))
.addContainerGap(111, Short.MAX_VALUE))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(72, 72, 72)

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
Page| 7
.addComponent(jTextField1,
javax.swing.GroupLayout.DEFAULT_SIZE, 42, Short.MAX_VALUE)
.addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGap(48, 48, 48)

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE,
48, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE,
48, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(42, 42, 42)
.addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 41,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(104, Short.MAX_VALUE))
);

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

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


// TODO add your handling code here:
String str_1, str_2;
str_1 = jTextField1.getText();
str_2 = str_1.toUpperCase();
jLabel2.setText(str_2);

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


// TODO add your handling code here:
String str_1, str_2;
str_1 = jTextField1.getText();
str_2 = str_1.toLowerCase();
jLabel2.setText(str_2);
}

/**
* @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(NewJFrame1.class.getName()).log(java.util.loggin
g.Level.SEVERE, null, ex);
} catch (InstantiationException ex) {

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

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

java.util.logging.Logger.getLogger(NewJFrame1.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 NewJFrame1().setVisible(true);
}
});
}

// Variables declaration - do not modify


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

Page| 9
RESULT

Page| 10
Testing of Uppercase conversion function

Page| 11
Testing of lower case conversion function

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
SNEHA KHATRI
CLASS: XII, A
ROLLNO:14

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 String Change Case 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.

SNEHA KHATRI
CLASS-XII, A
ROLLNO: 14

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
methods such as toLowerCase(), toUpperCase().
This simple program serves as a great
beginner project for understanding
fundamental programming concepts regarding
string manipulation , graphical user
interface (GUI) design, and e
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 can handle String
and switches operation using two buttons.
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 can handle String and switches operation
using two buttons.
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 NewJFrame1 extends javax.swing.JFrame {

/**
* Creates new form NewJFrame1
*/
public NewJFrame1() {
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();


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

setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

jLabel1.setText("Enter a String");

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

jButton2.setText("Convert to Lowercase");
jButton2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton2ActionPerformed(evt);
}
});

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.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
.addGroup(layout.createSequentialGroup()
.addGap(59, 59, 59)
.addComponent(jLabel1,
javax.swing.GroupLayout.PREFERRED_SIZE, 118,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(27, 27, 27)
.addComponent(jTextField1,
javax.swing.GroupLayout.PREFERRED_SIZE, 190,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(47, 47, 47))
.addGroup(layout.createSequentialGroup()
.addGap(35, 35, 35)
.addComponent(jButton1,
javax.swing.GroupLayout.PREFERRED_SIZE, 183,
javax.swing.GroupLayout.PREFERRED_SIZE)

.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jButton2,
javax.swing.GroupLayout.PREFERRED_SIZE, 184,
javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGroup(layout.createSequentialGroup()
.addGap(59, 59, 59)
.addComponent(jLabel2,
javax.swing.GroupLayout.PREFERRED_SIZE, 373,
javax.swing.GroupLayout.PREFERRED_SIZE)))
.addContainerGap(111, Short.MAX_VALUE))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(72, 72, 72)

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
Page| 7
.addComponent(jTextField1,
javax.swing.GroupLayout.DEFAULT_SIZE, 42, Short.MAX_VALUE)
.addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGap(48, 48, 48)

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE,
48, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE,
48, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(42, 42, 42)
.addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 41,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(104, Short.MAX_VALUE))
);

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

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


// TODO add your handling code here:
String str_1, str_2;
str_1 = jTextField1.getText();
str_2 = str_1.toUpperCase();
jLabel2.setText(str_2);

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


// TODO add your handling code here:
String str_1, str_2;
str_1 = jTextField1.getText();
str_2 = str_1.toLowerCase();
jLabel2.setText(str_2);
}

/**
* @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(NewJFrame1.class.getName()).log(java.util.loggin
g.Level.SEVERE, null, ex);
} catch (InstantiationException ex) {

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

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

java.util.logging.Logger.getLogger(NewJFrame1.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 NewJFrame1().setVisible(true);
}
});
}

// Variables declaration - do not modify


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

Page| 9
RESULT

Page| 10
Testing of Uppercase conversion function

Page| 11
Testing of lower case conversion function

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
GULZAR LARANG
CLASS: XII, B
ROLLNO:14

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 String Change Case 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.

GULZAR LARANG
CLASS-XII, B
ROLLNO: 14

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
methods such as toLowerCase(), toUpperCase().
This simple program serves as a great
beginner project for understanding
fundamental programming concepts regarding
string manipulation , graphical user
interface (GUI) design, and e
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 can handle String
and switches operation using two buttons.
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 can handle String and switches operation
using two buttons.
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 NewJFrame1 extends javax.swing.JFrame {

/**
* Creates new form NewJFrame1
*/
public NewJFrame1() {
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();


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

setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

jLabel1.setText("Enter a String");

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

jButton2.setText("Convert to Lowercase");
jButton2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton2ActionPerformed(evt);
}
});

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.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
.addGroup(layout.createSequentialGroup()
.addGap(59, 59, 59)
.addComponent(jLabel1,
javax.swing.GroupLayout.PREFERRED_SIZE, 118,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(27, 27, 27)
.addComponent(jTextField1,
javax.swing.GroupLayout.PREFERRED_SIZE, 190,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(47, 47, 47))
.addGroup(layout.createSequentialGroup()
.addGap(35, 35, 35)
.addComponent(jButton1,
javax.swing.GroupLayout.PREFERRED_SIZE, 183,
javax.swing.GroupLayout.PREFERRED_SIZE)

.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jButton2,
javax.swing.GroupLayout.PREFERRED_SIZE, 184,
javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGroup(layout.createSequentialGroup()
.addGap(59, 59, 59)
.addComponent(jLabel2,
javax.swing.GroupLayout.PREFERRED_SIZE, 373,
javax.swing.GroupLayout.PREFERRED_SIZE)))
.addContainerGap(111, Short.MAX_VALUE))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(72, 72, 72)

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
Page| 7
.addComponent(jTextField1,
javax.swing.GroupLayout.DEFAULT_SIZE, 42, Short.MAX_VALUE)
.addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGap(48, 48, 48)

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE,
48, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE,
48, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(42, 42, 42)
.addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 41,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(104, Short.MAX_VALUE))
);

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

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


// TODO add your handling code here:
String str_1, str_2;
str_1 = jTextField1.getText();
str_2 = str_1.toUpperCase();
jLabel2.setText(str_2);

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


// TODO add your handling code here:
String str_1, str_2;
str_1 = jTextField1.getText();
str_2 = str_1.toLowerCase();
jLabel2.setText(str_2);
}

/**
* @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(NewJFrame1.class.getName()).log(java.util.loggin
g.Level.SEVERE, null, ex);
} catch (InstantiationException ex) {

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

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

java.util.logging.Logger.getLogger(NewJFrame1.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 NewJFrame1().setVisible(true);
}
});
}

// Variables declaration - do not modify


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

Page| 9
RESULT

Page| 10
Testing of Uppercase conversion function

Page| 11
Testing of lower case conversion function

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
TRUPTIMAYEE SATAPATHY
CLASS: XII, A
ROLLNO:4

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 String Change Case 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.

TRUPTIMAYEE SATAPATHY
CLASS-XII, A
ROLLNO: 4

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
methods such as toLowerCase(), toUpperCase().
This simple program serves as a great
beginner project for understanding
fundamental programming concepts regarding
string manipulation , graphical user
interface (GUI) design, and e
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 can handle String
and switches operation using two buttons.
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 can handle String and switches operation
using two buttons.
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 NewJFrame1 extends javax.swing.JFrame {

/**
* Creates new form NewJFrame1
*/
public NewJFrame1() {
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();


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

setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

jLabel1.setText("Enter a String");

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

jButton2.setText("Convert to Lowercase");
jButton2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton2ActionPerformed(evt);
}
});

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.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
.addGroup(layout.createSequentialGroup()
.addGap(59, 59, 59)
.addComponent(jLabel1,
javax.swing.GroupLayout.PREFERRED_SIZE, 118,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(27, 27, 27)
.addComponent(jTextField1,
javax.swing.GroupLayout.PREFERRED_SIZE, 190,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(47, 47, 47))
.addGroup(layout.createSequentialGroup()
.addGap(35, 35, 35)
.addComponent(jButton1,
javax.swing.GroupLayout.PREFERRED_SIZE, 183,
javax.swing.GroupLayout.PREFERRED_SIZE)

.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jButton2,
javax.swing.GroupLayout.PREFERRED_SIZE, 184,
javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGroup(layout.createSequentialGroup()
.addGap(59, 59, 59)
.addComponent(jLabel2,
javax.swing.GroupLayout.PREFERRED_SIZE, 373,
javax.swing.GroupLayout.PREFERRED_SIZE)))
.addContainerGap(111, Short.MAX_VALUE))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(72, 72, 72)

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
Page| 7
.addComponent(jTextField1,
javax.swing.GroupLayout.DEFAULT_SIZE, 42, Short.MAX_VALUE)
.addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGap(48, 48, 48)

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE,
48, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE,
48, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(42, 42, 42)
.addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 41,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(104, Short.MAX_VALUE))
);

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

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


// TODO add your handling code here:
String str_1, str_2;
str_1 = jTextField1.getText();
str_2 = str_1.toUpperCase();
jLabel2.setText(str_2);

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


// TODO add your handling code here:
String str_1, str_2;
str_1 = jTextField1.getText();
str_2 = str_1.toLowerCase();
jLabel2.setText(str_2);
}

/**
* @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(NewJFrame1.class.getName()).log(java.util.loggin
g.Level.SEVERE, null, ex);
} catch (InstantiationException ex) {

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

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

java.util.logging.Logger.getLogger(NewJFrame1.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 NewJFrame1().setVisible(true);
}
});
}

// Variables declaration - do not modify


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

Page| 9
RESULT

Page| 10
Testing of Uppercase conversion function

Page| 11
Testing of lower case conversion function

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
PREETI PRAJAPATI
CLASS: XII, B
ROLLNO:12

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 String Change Case 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.

PREETI PRAJAPATI
CLASS-XII, B
ROLLNO: 12

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
methods such as toLowerCase(), toUpperCase().
This simple program serves as a great
beginner project for understanding
fundamental programming concepts regarding
string manipulation , graphical user
interface (GUI) design, and e
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 can handle String
and switches operation using two buttons.
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 can handle String and switches operation
using two buttons.
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 NewJFrame1 extends javax.swing.JFrame {

/**
* Creates new form NewJFrame1
*/
public NewJFrame1() {
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();


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

setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

jLabel1.setText("Enter a String");

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

jButton2.setText("Convert to Lowercase");
jButton2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton2ActionPerformed(evt);
}
});

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.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
.addGroup(layout.createSequentialGroup()
.addGap(59, 59, 59)
.addComponent(jLabel1,
javax.swing.GroupLayout.PREFERRED_SIZE, 118,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(27, 27, 27)
.addComponent(jTextField1,
javax.swing.GroupLayout.PREFERRED_SIZE, 190,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(47, 47, 47))
.addGroup(layout.createSequentialGroup()
.addGap(35, 35, 35)
.addComponent(jButton1,
javax.swing.GroupLayout.PREFERRED_SIZE, 183,
javax.swing.GroupLayout.PREFERRED_SIZE)

.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jButton2,
javax.swing.GroupLayout.PREFERRED_SIZE, 184,
javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGroup(layout.createSequentialGroup()
.addGap(59, 59, 59)
.addComponent(jLabel2,
javax.swing.GroupLayout.PREFERRED_SIZE, 373,
javax.swing.GroupLayout.PREFERRED_SIZE)))
.addContainerGap(111, Short.MAX_VALUE))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(72, 72, 72)

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
Page| 7
.addComponent(jTextField1,
javax.swing.GroupLayout.DEFAULT_SIZE, 42, Short.MAX_VALUE)
.addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGap(48, 48, 48)

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE,
48, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE,
48, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(42, 42, 42)
.addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 41,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(104, Short.MAX_VALUE))
);

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

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


// TODO add your handling code here:
String str_1, str_2;
str_1 = jTextField1.getText();
str_2 = str_1.toUpperCase();
jLabel2.setText(str_2);

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


// TODO add your handling code here:
String str_1, str_2;
str_1 = jTextField1.getText();
str_2 = str_1.toLowerCase();
jLabel2.setText(str_2);
}

/**
* @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(NewJFrame1.class.getName()).log(java.util.loggin
g.Level.SEVERE, null, ex);
} catch (InstantiationException ex) {

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

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

java.util.logging.Logger.getLogger(NewJFrame1.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 NewJFrame1().setVisible(true);
}
});
}

// Variables declaration - do not modify


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

Page| 9
RESULT

Page| 10
Testing of Uppercase conversion function

Page| 11
Testing of lower case conversion function

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
ARCHITA PANI
CLASS: XII, B
ROLLNO:34

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 String Change Case 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.

ARCHITA PANI
CLASS-XII, B
ROLLNO: 34

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
methods such as toLowerCase(), toUpperCase().
This simple program serves as a great
beginner project for understanding
fundamental programming concepts regarding
string manipulation , graphical user
interface (GUI) design, and e
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 can handle String
and switches operation using two buttons.
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 can handle String and switches operation
using two buttons.
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 NewJFrame1 extends javax.swing.JFrame {

/**
* Creates new form NewJFrame1
*/
public NewJFrame1() {
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();


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

setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

jLabel1.setText("Enter a String");

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

jButton2.setText("Convert to Lowercase");
jButton2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton2ActionPerformed(evt);
}
});

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.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
.addGroup(layout.createSequentialGroup()
.addGap(59, 59, 59)
.addComponent(jLabel1,
javax.swing.GroupLayout.PREFERRED_SIZE, 118,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(27, 27, 27)
.addComponent(jTextField1,
javax.swing.GroupLayout.PREFERRED_SIZE, 190,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(47, 47, 47))
.addGroup(layout.createSequentialGroup()
.addGap(35, 35, 35)
.addComponent(jButton1,
javax.swing.GroupLayout.PREFERRED_SIZE, 183,
javax.swing.GroupLayout.PREFERRED_SIZE)

.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jButton2,
javax.swing.GroupLayout.PREFERRED_SIZE, 184,
javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGroup(layout.createSequentialGroup()
.addGap(59, 59, 59)
.addComponent(jLabel2,
javax.swing.GroupLayout.PREFERRED_SIZE, 373,
javax.swing.GroupLayout.PREFERRED_SIZE)))
.addContainerGap(111, Short.MAX_VALUE))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(72, 72, 72)

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
Page| 7
.addComponent(jTextField1,
javax.swing.GroupLayout.DEFAULT_SIZE, 42, Short.MAX_VALUE)
.addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGap(48, 48, 48)

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE,
48, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE,
48, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(42, 42, 42)
.addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 41,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(104, Short.MAX_VALUE))
);

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

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


// TODO add your handling code here:
String str_1, str_2;
str_1 = jTextField1.getText();
str_2 = str_1.toUpperCase();
jLabel2.setText(str_2);

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


// TODO add your handling code here:
String str_1, str_2;
str_1 = jTextField1.getText();
str_2 = str_1.toLowerCase();
jLabel2.setText(str_2);
}

/**
* @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(NewJFrame1.class.getName()).log(java.util.loggin
g.Level.SEVERE, null, ex);
} catch (InstantiationException ex) {

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

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

java.util.logging.Logger.getLogger(NewJFrame1.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 NewJFrame1().setVisible(true);
}
});
}

// Variables declaration - do not modify


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

Page| 9
RESULT

Page| 10
Testing of Uppercase conversion function

Page| 11
Testing of lower case conversion function

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
SWATI PRAGYAN PANDIT
CLASS: XII, B
ROLLNO:33

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 String Change Case 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.

SWATI PRAGYAN PANDIT


CLASS-XII, B
ROLLNO: 33

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
methods such as toLowerCase(), toUpperCase().
This simple program serves as a great
beginner project for understanding
fundamental programming concepts regarding
string manipulation , graphical user
interface (GUI) design, and e
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 can handle String
and switches operation using two buttons.
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 can handle String and switches operation
using two buttons.
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 NewJFrame1 extends javax.swing.JFrame {

/**
* Creates new form NewJFrame1
*/
public NewJFrame1() {
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();


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

setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

jLabel1.setText("Enter a String");

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

jButton2.setText("Convert to Lowercase");
jButton2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton2ActionPerformed(evt);
}
});

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.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
.addGroup(layout.createSequentialGroup()
.addGap(59, 59, 59)
.addComponent(jLabel1,
javax.swing.GroupLayout.PREFERRED_SIZE, 118,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(27, 27, 27)
.addComponent(jTextField1,
javax.swing.GroupLayout.PREFERRED_SIZE, 190,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(47, 47, 47))
.addGroup(layout.createSequentialGroup()
.addGap(35, 35, 35)
.addComponent(jButton1,
javax.swing.GroupLayout.PREFERRED_SIZE, 183,
javax.swing.GroupLayout.PREFERRED_SIZE)

.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jButton2,
javax.swing.GroupLayout.PREFERRED_SIZE, 184,
javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGroup(layout.createSequentialGroup()
.addGap(59, 59, 59)
.addComponent(jLabel2,
javax.swing.GroupLayout.PREFERRED_SIZE, 373,
javax.swing.GroupLayout.PREFERRED_SIZE)))
.addContainerGap(111, Short.MAX_VALUE))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(72, 72, 72)

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
Page| 7
.addComponent(jTextField1,
javax.swing.GroupLayout.DEFAULT_SIZE, 42, Short.MAX_VALUE)
.addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGap(48, 48, 48)

.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE,
48, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE,
48, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(42, 42, 42)
.addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 41,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(104, Short.MAX_VALUE))
);

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

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


// TODO add your handling code here:
String str_1, str_2;
str_1 = jTextField1.getText();
str_2 = str_1.toUpperCase();
jLabel2.setText(str_2);

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


// TODO add your handling code here:
String str_1, str_2;
str_1 = jTextField1.getText();
str_2 = str_1.toLowerCase();
jLabel2.setText(str_2);
}

/**
* @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(NewJFrame1.class.getName()).log(java.util.loggin
g.Level.SEVERE, null, ex);
} catch (InstantiationException ex) {

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

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

java.util.logging.Logger.getLogger(NewJFrame1.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 NewJFrame1().setVisible(true);
}
});
}

// Variables declaration - do not modify


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

Page| 9
RESULT

Page| 10
Testing of Uppercase conversion function

Page| 11
Testing of lower case conversion function

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