Project 9
Project 9
RAJGANGPUR, SUNDARGARH
SESSION 2024-25
APROJECTON
____
Submitted By
MUSKAN ANSARI
CLASS: XII, A
ROLLNO:27
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.
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() {
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);
}
});
.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>
/**
* @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>
Page| 9
RESULT
Page| 10
Testing of Uppercase conversion function
Page| 11
Testing of lower case conversion function
Page| 12
6. User Manual
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
Page| 16
ODISHA ADARSHA VIDYALAYA
RAJGANGPUR, SUNDARGARH
SESSION 2024-25
APROJECTON
____
Submitted By
SIWANGI THAKUR
CLASS: XII, B
ROLLNO:10
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.
Page| 2
ACKNOWLEDGEMENT
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.
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() {
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);
}
});
.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>
/**
* @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>
Page| 9
RESULT
Page| 10
Testing of Uppercase conversion function
Page| 11
Testing of lower case conversion function
Page| 12
6. User Manual
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
Page| 16
ODISHA ADARSHA VIDYALAYA
RAJGANGPUR, SUNDARGARH
SESSION 2024-25
APROJECTON
____
Submitted By
PRAGATI DAS
CLASS: XII, A
ROLLNO:20
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.
Page| 2
ACKNOWLEDGEMENT
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.
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() {
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);
}
});
.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>
/**
* @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>
Page| 9
RESULT
Page| 10
Testing of Uppercase conversion function
Page| 11
Testing of lower case conversion function
Page| 12
6. User Manual
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
Page| 16
ODISHA ADARSHA VIDYALAYA
RAJGANGPUR, SUNDARGARH
SESSION 2024-25
APROJECTON
____
Submitted By
SHREEYA RANI XAXA
CLASS: XII, A
ROLLNO:34
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.
Page| 2
ACKNOWLEDGEMENT
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.
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() {
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);
}
});
.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>
/**
* @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>
Page| 9
RESULT
Page| 10
Testing of Uppercase conversion function
Page| 11
Testing of lower case conversion function
Page| 12
6. User Manual
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
Page| 16
ODISHA ADARSHA VIDYALAYA
RAJGANGPUR, SUNDARGARH
SESSION 2024-25
APROJECTON
____
Submitted By
SWAGATIKA MALLICK
CLASS: XII, A
ROLLNO:32
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.
Page| 2
ACKNOWLEDGEMENT
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.
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() {
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);
}
});
.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>
/**
* @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>
Page| 9
RESULT
Page| 10
Testing of Uppercase conversion function
Page| 11
Testing of lower case conversion function
Page| 12
6. User Manual
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
Page| 16
ODISHA ADARSHA VIDYALAYA
RAJGANGPUR, SUNDARGARH
SESSION 2024-25
APROJECTON
____
Submitted By
BRINDA SAH
CLASS: XII, A
ROLLNO:22
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.
Page| 2
ACKNOWLEDGEMENT
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.
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() {
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);
}
});
.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>
/**
* @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>
Page| 9
RESULT
Page| 10
Testing of Uppercase conversion function
Page| 11
Testing of lower case conversion function
Page| 12
6. User Manual
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
Page| 16
ODISHA ADARSHA VIDYALAYA
RAJGANGPUR, SUNDARGARH
SESSION 2024-25
APROJECTON
____
Submitted By
ARATI ROUT
CLASS: XII, B
ROLLNO:16
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.
Page| 2
ACKNOWLEDGEMENT
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.
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() {
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);
}
});
.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>
/**
* @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>
Page| 9
RESULT
Page| 10
Testing of Uppercase conversion function
Page| 11
Testing of lower case conversion function
Page| 12
6. User Manual
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
Page| 16
ODISHA ADARSHA VIDYALAYA
RAJGANGPUR, SUNDARGARH
SESSION 2024-25
APROJECTON
____
Submitted By
SNEHA KHATRI
CLASS: XII, A
ROLLNO:14
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.
Page| 2
ACKNOWLEDGEMENT
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.
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() {
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);
}
});
.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>
/**
* @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>
Page| 9
RESULT
Page| 10
Testing of Uppercase conversion function
Page| 11
Testing of lower case conversion function
Page| 12
6. User Manual
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
Page| 16
ODISHA ADARSHA VIDYALAYA
RAJGANGPUR, SUNDARGARH
SESSION 2024-25
APROJECTON
____
Submitted By
GULZAR LARANG
CLASS: XII, B
ROLLNO:14
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.
Page| 2
ACKNOWLEDGEMENT
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.
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() {
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);
}
});
.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>
/**
* @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>
Page| 9
RESULT
Page| 10
Testing of Uppercase conversion function
Page| 11
Testing of lower case conversion function
Page| 12
6. User Manual
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
Page| 16
ODISHA ADARSHA VIDYALAYA
RAJGANGPUR, SUNDARGARH
SESSION 2024-25
APROJECTON
____
Submitted By
TRUPTIMAYEE SATAPATHY
CLASS: XII, A
ROLLNO:4
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.
Page| 2
ACKNOWLEDGEMENT
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.
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() {
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);
}
});
.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>
/**
* @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>
Page| 9
RESULT
Page| 10
Testing of Uppercase conversion function
Page| 11
Testing of lower case conversion function
Page| 12
6. User Manual
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
Page| 16
ODISHA ADARSHA VIDYALAYA
RAJGANGPUR, SUNDARGARH
SESSION 2024-25
APROJECTON
____
Submitted By
PREETI PRAJAPATI
CLASS: XII, B
ROLLNO:12
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.
Page| 2
ACKNOWLEDGEMENT
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.
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() {
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);
}
});
.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>
/**
* @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>
Page| 9
RESULT
Page| 10
Testing of Uppercase conversion function
Page| 11
Testing of lower case conversion function
Page| 12
6. User Manual
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
Page| 16
ODISHA ADARSHA VIDYALAYA
RAJGANGPUR, SUNDARGARH
SESSION 2024-25
APROJECTON
____
Submitted By
ARCHITA PANI
CLASS: XII, B
ROLLNO:34
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.
Page| 2
ACKNOWLEDGEMENT
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.
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() {
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);
}
});
.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>
/**
* @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>
Page| 9
RESULT
Page| 10
Testing of Uppercase conversion function
Page| 11
Testing of lower case conversion function
Page| 12
6. User Manual
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
Page| 16
ODISHA ADARSHA VIDYALAYA
RAJGANGPUR, SUNDARGARH
SESSION 2024-25
APROJECTON
____
Submitted By
SWATI PRAGYAN PANDIT
CLASS: XII, B
ROLLNO:33
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.
Page| 2
ACKNOWLEDGEMENT
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.
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() {
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);
}
});
.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>
/**
* @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>
Page| 9
RESULT
Page| 10
Testing of Uppercase conversion function
Page| 11
Testing of lower case conversion function
Page| 12
6. User Manual
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
Page| 16