Java Report
Java Report
Java Report
B.TECH (CSE) – V
SEMESTER BATCH (2020 – 2024)
Project Report
STUDENT INFORMATION SYSTEM
1
ACKNOWLEDGEMENT
I am highly grateful to Er.Ajay Sharma for providing this opportunity to carry out the java
project on STUDENT INFORMATION SYSTEM. It was purely on the basis of his/her
experience and knowledge that I am able to clear all the theoretical and technical hurdles during
the development phases of this project work.
I want to express gratitude to other faculty members of Department of Computer science and
Technology for their intellectual support throughout the training Course.
Submitted by
Navreet (2000287)
MD Akib(2000137)
Dipak Kumar(2000094)
2
DECLARATION
I the undersigned solemnly declare that the project STUDENT INFORMATION SYSTEM is
based my own work carried out during the course of our study. I assert the statements made and
conclusions drawn are an outcome of my research work. I further certify That: 1. The work
contained in the project report is original and has been done by me. 2. The work has not been
submitted to any other Institution for any other degree /diploma/certificate 3. in this college or
any other of India OR Abroad. 4. I have followed the guidelines provided by the college in
writing the project report. Whenever to them in the text of the project report and giving their
details in the refernces.
Navreet(2000287)
MD Akib (2000137)
3
II
TABLE OF CONTENTS
1. Introduction to Project 5
12. Bibliography 79
4
INTRODUCTION TO PROJECT
Student Information System is software which is helpful for students as well as the school au-
thorities. In the current system all the activities are done manually. It is very time consuming and
costly. Our Student Information System deals with the various activities related to the students.
Administrator Module
Student Module.
In the Software we can register as a faculty as well as a student for every student the authentica-
tion code and the roll no is provided by the head of the department faculty and for the registra-
tion of a faculty the Registration ID and the authentication code is provided by the administrator
the institute.
In this project an admin can manage the faculty and take decision about the students like deletion
of any student admin is authorized to create the token for the registration of the faculty as same
as a faculty is authorized for creating token for the registration of a student.
5
FRONT END
Due to its simplicity and easy to learn and advanced features, we opted this
language for our six months industrial training. This language supports many
interesting features that make it an ideal language for software development. In
addition to the object oriented features, it also provides features such as platform
independence, security, multithreading, portability; etc which makes it well suited
for the web and networked services, applications, platform-independent desktops,
robotics and any other embedded devices.
Features of Java:
Multi Threaded
Robust
6
Simple: Java is a compact and simple language. Programs are easy to write
and debug as it omits many clumsy, poorly understood and confusing
features of other programming languages such as C++.
Robust: Java is designed for writing programs that are highly robust. By
robust, we mean reliable.
7
High performance: Java programs are complied with portable intermediate
form known as byte codes, rather than to native machine level instructions
and JVM executes java byte codes on any machine on which it is installed.
This architecture means that java programs are faster.
The Java Development Kit (JDK) is a software package that sun has made available to public. It
includes all the basic components that makeup the java environment. These include the Java
compiler, Java Interpreter, an applet viewer that lets you see applets without opening a Java-
compatible web browser.
8
APPLICATIONS OF JAVA
Java has evolved from a simple language providing interactive dynamic content for webpage’s to
a predominant enterprise-enables programming language suitable for developing significant and
critical applications.
Financial applications
Gaming applications
Embedded applications
Mobile applications
Image applications
E-business applications
9
BACK END
MySQL
MySQL is a open source Relational Database Management System. MySQL is very fast reliable
and flexible Database Management System. It provides a very high performance and it is multi
threaded and multi user Relational Database management system.
MySQL is one of the most popular relational database Management System on the web. The
MySQL Database has become the world's most popular open source Database, because it is free
and available on almost all the platforms. The MySQL can run on Unix , window, and Mac OS. .
MySQL source code is available that's why now you can recompile the source code.
Features:
The following list describes some of the important Features of MySQL Database Software.
The MySQL code is tested with Purify (a commercial memory leakage detector)
as well as with Valgrind, a GPL tool
Column Types
10
Many column types: signed/unsigned integers 1, 2, 3, 4, and 8 bytes long,
FLOAT, DOUBLE, CHAR, VARCHAR, TEXT, BLOB, DATE, TIME, DATETIME,
TIMESTAMP, YEAR, SET, ENUM, and OpenGIS spatial types.
Full operator and function support in the SELECT and WHERE clauses of
queries.
Full support for SQL GROUP BY and ORDER BY clauses. Support for group
functions (COUNT(), COUNT(DISTINCT ...), AVG(), STD(), SUM(), MAX(), MIN(),
and GROUP_CONCAT()).
Support for LEFT OUTER JOIN and RIGHT OUTER JOIN with both standard
SQL and ODBC syntax.
DELETE, INSERT, REPLACE, and UPDATE return the number of rows that
were changed (affected). It is possible to return the number of rows matched instead by
setting a flag when connecting to the server.
Security
A privilege and password system that is very flexible and secure, and that allows
host-based verification. Passwords are secure because all password traffic is encrypted
when you connect to a server.
Handles large databases. We use MySQL Server with databases that contain 50
million records. We also know of users who use MySQL Server with 60,000 tables and
about 5,000,000,000 rows.
Up to 64 indexes per table are allowed (32 before MySQL 4.1.2). Each index
may consist of 1 to 16 columns or parts of columns. The maximum index width is 1000
bytes (500 before MySQL 4.1.2). An index may use a prefix of a column for CHAR,
VARCHAR, BLOB, or TEXT column types.
11
Connectivity
Clients can connect to the MySQL server using TCP/IP sockets on any platform.
On Windows systems in the NT family (NT, 2000, XP, or 2003), clients can connect
using named pipes. On Unix systems, clients can connect using Unix domain socket
files.
In MySQL versions 4.1 and higher, Windows servers also support shared-
memory connections if started with the --shared-memory option. Clients can connect
through shared memory by using the --protocol=memory option.
The Connector/J interface provides MySQL support for Java client programs that
use JDBC connections. Clients can be run on Windows or Unix. Connector/J source is
available.
Localization
Full support for several different character sets, including latin1 (ISO-8859-1), german,
big5, ujis, and more. For example, the Scandinavian characters 'â', 'ä' and 'ö' are allowed in
table and column names. Unicode support is available as of MySQL 4.1.
All data is saved in the chosen character set. All comparisons for normal string columns
are case-insensitive.
12
TOOLS USED
Net Beans IDE is a free, open source, popular integrated development environment used by
many developers. Out of the box, it provides built-in support for developing in Java, C, C++,
XML, and HTML. And this author especially likes the support for editing JSPs, including syntax
highlighting, HTML tag completion, JSP tag completion, and Java code completion.
The basic steps for making a new project in java are as follows.
13
o Memory: 512 MB
o Memory: 512 MB
o Memory: 512 MB
o Memory: 512 MB
14
HARDWARE REQUIREMENTS:
Hardware requirements include that hardware which is required for its working. It includes:
Pentium 4 Computer
512 MB RAM
SOFTWARE REQUIREMENTS:
15
TABLE USED
16
Screenshot Of Modules
17
Screenshot Of Login Screen:
18
Screenshot Of Teacher Login Frame:-
19
Screenshot Of Calculator Frame:-
20
Screenshot Of Result Table:-
21
Screenshot Of Teacher Registration:-
22
SOURCE CODE OF PROJECT
package studentmanagementsystem;
import java.sql.*;
try
Class.forName("com.mysql.jdbc.Driver");
Connection conn =
DriverManager.getConnection("jdbc:mysql://127.0.0.1:3306/studentmanagement",
"root","12081961");
ResultSet rs = stmt.executeQuery(sql);
return rs;
23
catch(Exception ex)
ex.printStackTrace();
return null;
/*
*/
package studentmanagementsystem;
24
//import PROJECT.SplashScreenFrame;
import java.awt.Color;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
* @author navre
*/
/**
*/
public SplashScreen() {
initComponents();
initComponents();
setVisible(true);
dispose();
25
lb1.setVisible(false);
setSize(830, 600);
jProgressBar1.setStringPainted(true);
jProgressBar1.setBackground(Color.red);
jProgressBar1.setForeground(Color.red);
@Override
jProgressBar1.setString("Loading....");
try {
Thread.sleep(10);
26
ex.printStackTrace();
lb1.setVisible(true);
try {
Thread.sleep(5000);
Logger.getLogger(SplashScreenFrame.class.getName()).log(Level.SEVERE, null,
ex);
dispose();
}).start();
/**
* 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
*/
27
@SuppressWarnings("unchecked")
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
getContentPane().setLayout(null);
jLabel1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255,
255, 255)));
getContentPane().add(jLabel1);
28
jLabel1.setBounds(60, 60, 710, 52);
lb1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Java/Spin-1s-
200px.gif"))); // NOI18N
lb1.setText("jLabel4");
getContentPane().add(lb1);
jLabel6.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Java/download-
removebg-preview.png"))); // NOI18N
jLabel6.setText("jLabel6");
getContentPane().add(jLabel6);
jLabel3.setText("Loading....");
getContentPane().add(jLabel3);
29
getContentPane().add(jProgressBar1);
jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Java/Uill4Z4.jpg")));
// NOI18N
jLabel2.setText("jLabel2");
jLabel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255,
255, 255), 4));
getContentPane().add(jLabel2);
pack();
}// </editor-fold>
/**
*/
//<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.
30
*/
try {
if ("Nimbus".equals(info.getName())) {
javax.swing.UIManager.setLookAndFeel(info.getClassName());
break;
java.util.logging.Logger.getLogger(SplashScreen.class.getName()).log(java.util.logging.Level.S
EVERE, null, ex);
java.util.logging.Logger.getLogger(SplashScreen.class.getName()).log(java.util.logging.Level.S
EVERE, null, ex);
java.util.logging.Logger.getLogger(SplashScreen.class.getName()).log(java.util.logging.Level.S
EVERE, null, ex);
31
java.util.logging.Logger.getLogger(SplashScreen.class.getName()).log(java.util.logging.Level.S
EVERE, null, ex);
//</editor-fold>
java.awt.EventQueue.invokeLater(new Runnable() {
new SplashScreen().setVisible(true);
});
32
}
package studentmanagementsystem;
/**
* @author navre
*/
/**
*/
public Login_Screen() {
initComponents();
setSize(1900,800);
setVisible(true);
/**
33
* 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
*/
@SuppressWarnings("unchecked")
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
getContentPane().setLayout(null);
jButton1.setText("STUDENT LOGIN");
34
jButton1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255,
102, 0), 4));
jButton1.addActionListener(new java.awt.event.ActionListener() {
jButton1ActionPerformed(evt);
});
getContentPane().add(jButton1);
teacher_login_button.setText("TEACHER LOGIN");
teacher_login_button.setBorder(new javax.swing.border.LineBorder(new
java.awt.Color(255, 102, 0), 4, true));
teacher_login_button.addActionListener(new java.awt.event.ActionListener() {
teacher_login_buttonActionPerformed(evt);
});
getContentPane().add(teacher_login_button);
35
jLabel1.setFont(new java.awt.Font("Arial Black", 1, 48)); // NOI18N
jLabel1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255,
102, 0), 7));
getContentPane().add(jLabel1);
jButton2.setText("Calculator");
jButton2.addActionListener(new java.awt.event.ActionListener() {
jButton2ActionPerformed(evt);
});
getContentPane().add(jButton2);
jButton3.setText("About");
36
jButton3.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(255, 102, 0), 4,
true));
jButton3.addActionListener(new java.awt.event.ActionListener() {
jButton3ActionPerformed(evt);
});
getContentPane().add(jButton3);
jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Java/Back.jpg"))); //
NOI18N
jLabel2.setText("jLabel2");
getContentPane().add(jLabel2);
pack();
}// </editor-fold>
37
obj.setVisible(true);
a.setVisible(true);
objj.setVisible(true);
/**
38
* @param args the command line arguments
*/
//<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.
*/
try {
if ("Nimbus".equals(info.getName())) {
javax.swing.UIManager.setLookAndFeel(info.getClassName());
break;
java.util.logging.Logger.getLogger(Login_Screen.class.getName()).log(java.util.logging.Level.S
EVERE, null, ex);
39
java.util.logging.Logger.getLogger(Login_Screen.class.getName()).log(java.util.logging.Level.S
EVERE, null, ex);
java.util.logging.Logger.getLogger(Login_Screen.class.getName()).log(java.util.logging.Level.S
EVERE, null, ex);
java.util.logging.Logger.getLogger(Login_Screen.class.getName()).log(java.util.logging.Level.S
EVERE, null, ex);
//</editor-fold>
java.awt.EventQueue.invokeLater(new Runnable() {
new Login_Screen().setVisible(true);
});
40
private javax.swing.JButton jButton1;
package studentmanagementsystem;
import javax.swing.JOptionPane;
import java.sql.*;
public studentlogin() {
initComponents();
setVisible(true);
setSize(1800,800);
41
}
@SuppressWarnings("unchecked")
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
getContentPane().setLayout(null);
42
jLabel1.setFont(new java.awt.Font("Arial Black", 1, 48)); // NOI18N
jLabel1.setText("STUDENT LOGIN");
jLabel1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0,
0), 6));
getContentPane().add(jLabel1);
jLabel2.setText(" Username");
jLabel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0,
0), 3));
getContentPane().add(jLabel2);
jLabel4.setText("Roll Number");
jLabel4.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0,
0), 3));
getContentPane().add(jLabel4);
43
jLabel5.setText(" Password");
jLabel5.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0,
0), 3));
getContentPane().add(jLabel5);
getContentPane().add(username);
getContentPane().add(rollnumber);
getContentPane().add(password);
jButton.setText("LOGIN");
jButton.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0,
0), 7));
jButton.addActionListener(new java.awt.event.ActionListener() {
jButtonActionPerformed(evt);
});
getContentPane().add(jButton);
44
jButton.setBounds(700, 400, 140, 42);
jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Java/iStock-
1182604339.jpg"))); // NOI18N
jLabel3.setText("jLabel3");
getContentPane().add(jLabel3);
pack();
}// </editor-fold>
try
45
ResultSet rs = DBLoader.executeSQL("Select * from student_table where
student_name='"+uname+"' and student_roll='"+roll+"' and student_password='"+pass+"'");
if(rs.next())
dispose();
hey.setVisible(true);
else
JOptionPane.showMessageDialog(this,"LOGIN FAILED");
catch(Exception ex)
ex.printStackTrace();
46
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
new studentlogin().setVisible(true);
});
47
}
package studentmanagementsystem;
import java.awt.Color;
import java.awt.Font;
import java.awt.Frame;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JOptionPane;
import javax.swing.table.DefaultTableModel;
PreparedStatement ps;
ResultSet rs;
48
public ResultTable() {
initComponents();
jTable1.getTableHeader().setOpaque(false);
jTable1.getTableHeader().setBackground(Color.BLACK);
jTable1.getTableHeader().setForeground(new Color(0,0,0));
@SuppressWarnings("unchecked")
java.awt.GridBagConstraints gridBagConstraints;
49
setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
addWindowListener(new java.awt.event.WindowAdapter() {
formWindowOpened(evt);
});
getContentPane().setLayout(new java.awt.GridBagLayout());
jPanel1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0,
0), 4));
jPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
jTable1.setAutoCreateRowSorter(true);
jTable1.setModel(new javax.swing.table.DefaultTableModel(
},
new String [] {
50
}
));
jTable1.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
jTable1.setFocusable(false);
jTable1.setName(""); // NOI18N
jTable1.setOpaque(false);
jTable1.setRowHeight(22);
jScrollPane1.setViewportView(jTable1);
jTable1.getColumnModel().getSelectionModel().setSelectionMode(javax.swing.ListSelectionMo
del.SINGLE_INTERVAL_SELECTION);
jPanel2.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
jTextFieldSearch.setText("Search");
51
jTextFieldSearch.addFocusListener(new java.awt.event.FocusAdapter() {
jTextFieldSearchFocusGained(evt);
jTextFieldSearchFocusLost(evt);
});
jButton1.setText("Delete");
jButton1.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
jButton1.addActionListener(new java.awt.event.ActionListener() {
jButton1ActionPerformed(evt);
});
52
jPanel2.add(jButton1, new org.netbeans.lib.awtextra.AbsoluteConstraints(714, 12, 101,
42));
jButton2.setText("GoTo Edit");
jButton2.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
jButton2.addActionListener(new java.awt.event.ActionListener() {
jButton2ActionPerformed(evt);
});
jButton5.setText("Search");
jButton5.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
53
jPanel2.add(jButton5, new org.netbeans.lib.awtextra.AbsoluteConstraints(595, 12, 101,
42));
gridBagConstraints.gridx = 0;
gridBagConstraints.gridy = 0;
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
getContentPane().add(jPanel1, gridBagConstraints);
pack();
}// </editor-fold>
f.setVisible(true);
f.pack();
f.setLocationRelativeTo(null);
this.dispose();
54
}
try {
ps = MyConnection.getConnection().prepareStatement(registerQuery);
rs = ps.executeQuery();
while(rs.next()){
,rs.getString("Average"), rs.getString("Ranking")};
if(jTable1.getRowCount()!= getRowNumber())
modele.addRow(o);
55
catch(SQLException ex){
PreparedStatement psa;
ResultSet rsa;
try{
rsa = psa.executeQuery();
rsa.next();
if(studentlogin.SeeUser.equals(rsa.getString("loginAs"))){
jButton1.setEnabled(false);
jButton2.setEnabled(false);
}catch(Exception e){
56
}
if(jTextFieldSearch.getText().trim().equals("Search")){
jTextFieldSearch.setText("");
jTextFieldSearch.setForeground(Color.black);
if(jTextFieldSearch.getText().trim().equals("")||
jTextFieldSearch.getText().trim().equals("Search")){
jTextFieldSearch.setText("Search");
jTextFieldSearch.setForeground(new Color(153,153,153,153));
57
DefaultTableModel model = (DefaultTableModel) jTable1.getModel();
if(jTable1.getSelectedRow()==-1){
if(jTable1.getRowCount()==0){
"Alert!", JOptionPane.OK_OPTION);
}else
else{
try{
ps.executeUpdate();
}catch(Exception e){
model.removeRow(jTable1.getSelectedRow());
58
}
int numberRow = 0;
PreparedStatement ps;
ResultSet rs;
try{
ps = (PreparedStatement) DBLoader.executeSQL(query);
rs = ps.executeQuery();
while(rs.next()){
numberRow = rs.getInt("count(*)");
JOptionPane.showMessageDialog(null,"Error ");
return numberRow;
59
java.awt.EventQueue.invokeLater(new Runnable() {
new ResultTable().setVisible(true);
});
package studentmanagementsystem;
60
import javax.swing.JOptionPane;
import java.sql.*;
/**
*/
public teacher_login() {
initComponents();
setVisible(true);
setSize(1900,800);
@SuppressWarnings("unchecked")
61
jLabel3 = new javax.swing.JLabel();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
getContentPane().setLayout(null);
jLabel1.setText("Username");
getContentPane().add(jLabel1);
getContentPane().add(t_name);
jLabel2.setText("User ID");
getContentPane().add(jLabel2);
getContentPane().add(t_id);
62
t_id.setBounds(760, 210, 180, 22);
jLabel3.setText("Password");
getContentPane().add(jLabel3);
getContentPane().add(t_password);
jButton1.setText("LOGIN");
jButton1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0,
0), 5));
jButton1.addActionListener(new java.awt.event.ActionListener() {
jButton1ActionPerformed(evt);
});
getContentPane().add(jButton1);
63
jLabel4.setFont(new java.awt.Font("Arial Black", 1, 48)); // NOI18N
jLabel4.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0,
0), 5));
getContentPane().add(jLabel4);
getContentPane().add(jPanel1);
pack();
}// </editor-fold>
try
64
{
if(rs.next())
dispose();
obj.setVisible(true);
else
JOptionPane.showMessageDialog(this,"LOGIN FAILED");
catch(Exception ex)
ex.printStackTrace();
65
}
//<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.
*/
try {
if ("Nimbus".equals(info.getName())) {
javax.swing.UIManager.setLookAndFeel(info.getClassName());
break;
int numberRow = 0;
PreparedStatement ps;
66
ResultSet rs;
try{
ps = DBLoader.getConnection().prepareStatement(query);
rs = ps.executeQuery();
while(rs.next()){
numberRow = rs.getInt("count(*)");
JOptionPane.showMessageDialog(null,"Error ");
return numberRow;
}//===========================end================================
java.awt.EventQueue.invokeLater(new Runnable() {
new TeacherRegistrations().setVisible(true);
67
});
68
private javax.swing.JRadioButton jRadioButtonM;
package studentmanagementsystem;
import java.awt.Color;
69
import javax.swing.BorderFactory;
import javax.swing.border.Border;
int num,ans;
int Calculation;
public Calc() {
initComponents();
setVisible(true);
switch(Calculation){
case 1:
jTextField1.setText(Integer.toString(ans));
break;
case 2:
70
jTextField1.setText(Integer.toString(ans));
break;
case 3:
jTextField1.setText(Integer.toString(ans));
break;
case 4:
jTextField1.setText(Integer.toString(ansd));
break;
default:
break;
jButton4.setEnabled(false);
jButton5.setEnabled(false);
71
jButton6.setEnabled(false);
jButton7.setEnabled(false);
jButton8.setEnabled(false);
jButton9.setEnabled(false);
jButton10.setEnabled(false);
jButton11.setEnabled(false);
jButton12.setEnabled(false);
jButton13.setEnabled(false);
jButton14.setEnabled(false);
jButton15.setEnabled(false);
jButton16.setEnabled(false);
jButton17.setEnabled(false);
jButton18.setEnabled(false);
jButton19.setEnabled(false);
jButton20.setEnabled(false);
jButton21.setEnabled(false);
jButton22.setEnabled(false);
jButton4.setEnabled(true);
jButton5.setEnabled(true);
72
jButton6.setEnabled(true);
jButton7.setEnabled(true);
jButton8.setEnabled(true);
jButton9.setEnabled(true);
jButton10.setEnabled(true);
jButton11.setEnabled(true);
jButton12.setEnabled(true);
jButton13.setEnabled(true);
jButton14.setEnabled(true);
jButton15.setEnabled(true);
jButton16.setEnabled(true);
jButton17.setEnabled(true);
jButton18.setEnabled(true);
jButton19.setEnabled(true);
jButton20.setEnabled(true);
jButton21.setEnabled(true);
jButton22.setEnabled(true);
@SuppressWarnings("unchecked")
73
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-
BEGIN:initComponents
74
jButton18 = new javax.swing.JButton();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setUndecorated(true);
jTextField1.addActionListener(new java.awt.event.ActionListener() {
75
public void actionPerformed(java.awt.event.ActionEvent evt) {
jTextField1ActionPerformed(evt);
});
jTextField1.addKeyListener(new java.awt.event.KeyAdapter() {
jTextField1KeyTyped(evt);
});
jButton4.setText("CLS");
jButton4.addActionListener(new java.awt.event.ActionListener() {
jButton4ActionPerformed(evt);
});
76
jButton5.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N
jButton5.setText("=");
jButton5.addActionListener(new java.awt.event.ActionListener() {
jButton5ActionPerformed(evt);
});
jButton6.setText("4");
jButton6.addActionListener(new java.awt.event.ActionListener() {
jButton6ActionPerformed(evt);
});
77
jButton7.setForeground(new java.awt.Color(255, 255, 255));
jButton7.setText("1");
jButton7.addActionListener(new java.awt.event.ActionListener() {
jButton7ActionPerformed(evt);
});
jButton8.setText("5");
BIBLIOGRAPHY
• www.stackoverflow.com
• www.javatpoint.com
78
79