Java Report

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 79

JAVA PROJECT

B.TECH (CSE) – V
SEMESTER BATCH (2020 – 2024)
Project Report
STUDENT INFORMATION SYSTEM

Submitted to Associate Professor


Er.Ajay Sharma Submitted by
Navreet (2000287)
Simranjit Singh (2132018)
MD Akib(2000137)
Dipak Kumar(2000094)

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING


Amritsar College of Engineering and Technology Amritsar

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)

Simranjit Singh (2132018)

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)

Simranjit Singh (2132018)

MD Akib (2000137)

Dipak Kumar (2000094)

3
II
TABLE OF CONTENTS

Sr. No. Topic Page No.

1. Introduction to Project 5

2. Front End 6-9

3. Back End 10-12

4. Tools Used 13-14

5. Hardware & Software 15


Requirements
6. Table Used 16

7. Project Screenshots 17-22

11. Source Code Of Project 23-78

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.

There are mainly 2 modules in this software

 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

Java is a general purpose and the most popular object-oriented programming


language. Java was developed by James Gosling and his colleagues at Sun
Microsystems in the early 1990’s.

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:

Object-oriented Simple Portable

JAVA Compiled and


Distributed
FEATURES Interpreted

Multi Threaded
Robust

Secure Architectural Dynamic &


High Performance
Neutral Extensible

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++.

 Object-oriented: Java is purely object-oriented language because


programming in java is centered on creating objects; manipulating objects
and making objects work together.

 Distributed: Java is a distributed language which means that the programs


can be designed to run on computer networks. Java provides an extensive
library of classes for communicating using TCP/IP protocols such as HTTP
and FTP. This makes creating network connections much easier.

 Robust: Java is designed for writing programs that are highly robust. By
robust, we mean reliable.

 Secure: As java is intended to be used in networked/distributed


environments so it implements several security mechanisms to protect you
against malicious code that might try to invade your file system.

 Architectural Neutral: This means that the programs written on one


platform can run on any other platform without having to rewrite or
recompile them. It follows ‘Write-once-run-anywhere’ approach.

 Portable: In Java, the size of the primitive data types is machine


independent. These consistencies make java program portable among
different platforms such as Windows, UNIX and Mac.

 Interpreted: Java is such a language that is both compiled and interpreted.


The two steps of compilation and interpretation allow extensive code
checking and improved security.

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.

 Multithreaded: Java is also a multithreaded programming language. It


allows you to write a program that can do many tasks simultaneously.

 Dynamic: Java is designed to be dynamic. Classes are stored in separate


files and are loaded into the Java Interpreter only when they are needed.

JAVA DEVELOPMENT KIT (JDK)

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.

Today, Java is used for many applications like:

 Web based applications

 Financial applications

 Gaming applications

 Embedded applications

 Distributed enterprise applications

 Mobile applications

 Image applications

 E-business applications

 Desktop applications and many more.

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.

 Internals and Portability

 Written in C and C++.

 Tested with a broad range of different compilers.

 Works on many different platforms.

 The MySQL code is tested with Purify (a commercial memory leakage detector)
as well as with Valgrind, a GPL tool

 The server is available as a separate program for use in a client/server networked


environment. It is also available as a library that can be embedded (linked) into
standalone applications. Such applications can be used in isolation or in environments
where no network is available.

 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.

 Fixed-length and variable-length records.

 Statements and Functions

 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.

 Support for aliases on tables and columns as required by standard SQL.

 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.

 Scalability and Limits

 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/ODBC (MyODBC) interface provides MySQL support for client


programs that use ODBC (Open Database Connectivity) connections. For example, you
can use MS Access to connect to your MySQL server. Clients can be run on Windows
or Unix. MyODBC source is available. All ODBC 2.5 functions are supported, as are
many others.

 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

 The server can provide error messages to clients in many languages.

 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

Netbeans - integrated development environment

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.

1. Create a new project

2. Mount a directory - specify a location to save project files

3. Add a new class to the project

4. Compile and run a Java program

Minimum Hardware Configurations

 Microsoft Windows XP Professional SP3/Vista SP1/Windows 7 Professional:

o Processor: 800MHz Intel Pentium III or equivalent

13
o Memory: 512 MB

o Disk space: 750 MB of free disk space

 Solaris OS version 10 (SPARC):

o Processor: Ultra SPARC II 450 MHz

o Memory: 512 MB

o Disk space: 650 MB of free disk space

 Solaris OS version 10 (x86/x64 Platform Edition):

o Processor: AMD Opteron 1200 Series 1.8 GHz

o Memory: 512 MB

o Disk space: 650 MB of free disk space

 Macintosh OS X 10.5 Intel:

o Processor: Dual-Core Intel (32 or 64-bit)

o Memory: 512 MB

o Disk space: 650 MB of free disk space

14
HARDWARE REQUIREMENTS:

Hardware requirements include that hardware which is required for its working. It includes:

 Pentium 4 Computer

 512 MB RAM

 High Speed Internet Connection(DSL/Cable)

SOFTWARE REQUIREMENTS:

The technical specifications of requirements for the software are as follows:

 Any Operating System (Windows, Linux, MAC)

 Java run time environment

 Netbeans (Java IDE)

 Java SDK (Software Development Kit)

 Any web browser(Chrome , Firefox , etc)

15
TABLE USED

Student Registration Table

Teacher Registration Table

Student Login Table

Teacher Login Table

16
Screenshot Of Modules

Screenshot Of Splash Screen:-

17
Screenshot Of Login Screen:

Screenshot Of Student Login Frame:

18
Screenshot Of Teacher Login Frame:-

19
Screenshot Of Calculator Frame:-

20
Screenshot Of Result Table:-

Screenshot Of Main Frame:-

21
Screenshot Of Teacher Registration:-

Screenshot Of About Details Frame:-

22
SOURCE CODE OF PROJECT

SOURCE CODE FOR DATABASE CONNECTIVITY:-

package studentmanagementsystem;

import java.sql.*;

public class DBLoader {

public static ResultSet executeSQL(String sql)

try

Class.forName("com.mysql.jdbc.Driver");

Connection conn =
DriverManager.getConnection("jdbc:mysql://127.0.0.1:3306/studentmanagement",
"root","12081961");

Statement stmt = conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,


ResultSet.CONCUR_UPDATABLE);

ResultSet rs = stmt.executeQuery(sql);

return rs;

23
catch(Exception ex)

ex.printStackTrace();

return null;

static Object getConnection() {

throw new UnsupportedOperationException("Not supported yet."); // Generated from


nbfs://nbhost/SystemFileSystem/Templates/Classes/Code/GeneratedMethodBody

SOURCE CODE FOR SPLASH SCREEN:-

/*

* 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

*/

package studentmanagementsystem;

24
//import PROJECT.SplashScreenFrame;

import java.awt.Color;

import java.util.logging.Level;

import java.util.logging.Logger;

/**

* @author navre

*/

public class SplashScreen extends javax.swing.JFrame {

/**

* Creates new form SplashScreen

*/

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);

new Thread(new Runnable() {

@Override

public void run() {

for (int i = 0; i < 100; i++) {

jProgressBar1.setString("Loading....");

try {

Thread.sleep(10);

} catch (Exception ex) {

26
ex.printStackTrace();

lb1.setVisible(true);

try {

Thread.sleep(5000);

} catch (InterruptedException ex) {

Logger.getLogger(SplashScreenFrame.class.getName()).log(Level.SEVERE, null,
ex);

dispose();

Login_Screen obj = new Login_Screen();

}).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

* regenerated by the Form Editor.

*/

27
@SuppressWarnings("unchecked")

// <editor-fold defaultstate="collapsed" desc="Generated Code">

private void initComponents() {

jLabel1 = new javax.swing.JLabel();

lb1 = new javax.swing.JLabel();

jLabel6 = new javax.swing.JLabel();

jLabel3 = new javax.swing.JLabel();

jProgressBar1 = new javax.swing.JProgressBar();

jLabel2 = new javax.swing.JLabel();

setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

getContentPane().setLayout(null);

jLabel1.setBackground(new java.awt.Color(255, 255, 255));

jLabel1.setFont(new java.awt.Font("Arial Black", 1, 36)); // NOI18N

jLabel1.setForeground(new java.awt.Color(255, 255, 255));

jLabel1.setText("STUDENT MANAGEMENT SYSTEM");

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);

lb1.setBounds(330, 370, 200, 200);

jLabel6.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Java/download-
removebg-preview.png"))); // NOI18N

jLabel6.setText("jLabel6");

getContentPane().add(jLabel6);

jLabel6.setBounds(570, 300, 250, 240);

jLabel3.setBackground(new java.awt.Color(51, 255, 153));

jLabel3.setForeground(new java.awt.Color(51, 255, 51));

jLabel3.setText("Loading....");

getContentPane().add(jLabel3);

jLabel3.setBounds(370, 280, 60, 16);

jProgressBar1.setBackground(new java.awt.Color(255, 51, 51));

jProgressBar1.setForeground(new java.awt.Color(0, 0, 0));

29
getContentPane().add(jProgressBar1);

jProgressBar1.setBounds(130, 280, 550, 20);

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);

jLabel2.setBounds(-3, -4, 850, 600);

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

30
*/

try {

for (javax.swing.UIManager.LookAndFeelInfo info :


javax.swing.UIManager.getInstalledLookAndFeels()) {

if ("Nimbus".equals(info.getName())) {

javax.swing.UIManager.setLookAndFeel(info.getClassName());

break;

} catch (ClassNotFoundException ex) {

java.util.logging.Logger.getLogger(SplashScreen.class.getName()).log(java.util.logging.Level.S
EVERE, null, ex);

} catch (InstantiationException ex) {

java.util.logging.Logger.getLogger(SplashScreen.class.getName()).log(java.util.logging.Level.S
EVERE, null, ex);

} catch (IllegalAccessException ex) {

java.util.logging.Logger.getLogger(SplashScreen.class.getName()).log(java.util.logging.Level.S
EVERE, null, ex);

} catch (javax.swing.UnsupportedLookAndFeelException ex) {

31
java.util.logging.Logger.getLogger(SplashScreen.class.getName()).log(java.util.logging.Level.S
EVERE, null, ex);

//</editor-fold>

/* Create and display the form */

java.awt.EventQueue.invokeLater(new Runnable() {

public void run() {

new SplashScreen().setVisible(true);

});

// Variables declaration - do not modify

private javax.swing.JLabel jLabel1;

private javax.swing.JLabel jLabel2;

private javax.swing.JLabel jLabel3;

private javax.swing.JLabel jLabel6;

private javax.swing.JProgressBar jProgressBar1;

private javax.swing.JLabel lb1;

// End of variables declaration

32
}

SOURCE CODE FOR LOGIN SCREEN

package studentmanagementsystem;

/**

* @author navre

*/

public class Login_Screen extends javax.swing.JFrame {

/**

* Creates new form Login_Screen

*/

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

* regenerated by the Form Editor.

*/

@SuppressWarnings("unchecked")

// <editor-fold defaultstate="collapsed" desc="Generated Code">

private void initComponents() {

jButton1 = new javax.swing.JButton();

teacher_login_button = new javax.swing.JButton();

jLabel1 = new javax.swing.JLabel();

jButton2 = new javax.swing.JButton();

jButton3 = new javax.swing.JButton();

jLabel2 = new javax.swing.JLabel();

setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

getContentPane().setLayout(null);

jButton1.setFont(new java.awt.Font("Arial Black", 1, 14)); // NOI18N

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() {

public void actionPerformed(java.awt.event.ActionEvent evt) {

jButton1ActionPerformed(evt);

});

getContentPane().add(jButton1);

jButton1.setBounds(310, 180, 170, 50);

teacher_login_button.setFont(new java.awt.Font("Arial Black", 1, 14)); // NOI18N

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() {

public void actionPerformed(java.awt.event.ActionEvent evt) {

teacher_login_buttonActionPerformed(evt);

});

getContentPane().add(teacher_login_button);

teacher_login_button.setBounds(700, 180, 170, 50);

35
jLabel1.setFont(new java.awt.Font("Arial Black", 1, 48)); // NOI18N

jLabel1.setForeground(new java.awt.Color(255, 255, 255));

jLabel1.setText(" STUDENT MANAGEMENT SYSTEM");

jLabel1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255,
102, 0), 7));

getContentPane().add(jLabel1);

jLabel1.setBounds(300, 20, 980, 82);

jButton2.setFont(new java.awt.Font("Arial Black", 1, 14)); // NOI18N

jButton2.setText("Calculator");

jButton2.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(255, 102, 0), 4,


true));

jButton2.addActionListener(new java.awt.event.ActionListener() {

public void actionPerformed(java.awt.event.ActionEvent evt) {

jButton2ActionPerformed(evt);

});

getContentPane().add(jButton2);

jButton2.setBounds(1100, 180, 170, 50);

jButton3.setFont(new java.awt.Font("Arial Black", 1, 18)); // NOI18N

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() {

public void actionPerformed(java.awt.event.ActionEvent evt) {

jButton3ActionPerformed(evt);

});

getContentPane().add(jButton3);

jButton3.setBounds(700, 320, 170, 50);

jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Java/Back.jpg"))); //
NOI18N

jLabel2.setText("jLabel2");

getContentPane().add(jLabel2);

jLabel2.setBounds(-3, -4, 1510, 760);

pack();

}// </editor-fold>

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

teacher_login obj = new teacher_login();

37
obj.setVisible(true);

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

// TODO add your handling code here:

Calc a = new Calc();

a.setVisible(true);

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

AboutDetail yo = new AboutDetail();

// TODO add your handling code here:

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

// TODO add your handling code here:

studentlogin objj = new studentlogin();

objj.setVisible(true);

/**

38
* @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;

} catch (ClassNotFoundException ex) {

java.util.logging.Logger.getLogger(Login_Screen.class.getName()).log(java.util.logging.Level.S
EVERE, null, ex);

} catch (InstantiationException ex) {

39
java.util.logging.Logger.getLogger(Login_Screen.class.getName()).log(java.util.logging.Level.S
EVERE, null, ex);

} catch (IllegalAccessException ex) {

java.util.logging.Logger.getLogger(Login_Screen.class.getName()).log(java.util.logging.Level.S
EVERE, null, ex);

} catch (javax.swing.UnsupportedLookAndFeelException ex) {

java.util.logging.Logger.getLogger(Login_Screen.class.getName()).log(java.util.logging.Level.S
EVERE, null, ex);

//</editor-fold>

/* Create and display the form */

java.awt.EventQueue.invokeLater(new Runnable() {

public void run() {

new Login_Screen().setVisible(true);

});

// Variables declaration - do not modify

40
private javax.swing.JButton jButton1;

private javax.swing.JButton jButton2;

private javax.swing.JButton jButton3;

private javax.swing.JLabel jLabel1;

private javax.swing.JLabel jLabel2;

private javax.swing.JButton teacher_login_button;

// End of variables declaration

SOURCE CODE FOR STUDENT LOGIN FRAME:-

package studentmanagementsystem;

import javax.swing.JOptionPane;

import java.sql.*;

public class studentlogin extends javax.swing.JFrame {

public studentlogin() {

initComponents();

setVisible(true);

setSize(1800,800);

41
}

@SuppressWarnings("unchecked")

// <editor-fold defaultstate="collapsed" desc="Generated Code">

private void initComponents() {

jLabel1 = new javax.swing.JLabel();

jLabel2 = new javax.swing.JLabel();

jLabel4 = new javax.swing.JLabel();

jLabel5 = new javax.swing.JLabel();

username = new javax.swing.JTextField();

rollnumber = new javax.swing.JTextField();

password = new javax.swing.JPasswordField();

jButton = new javax.swing.JButton();

jLabel3 = new javax.swing.JLabel();

setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

getContentPane().setLayout(null);

jLabel1.setBackground(new java.awt.Color(255, 255, 255));

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);

jLabel1.setBounds(510, 10, 480, 80);

jLabel2.setFont(new java.awt.Font("Arial Black", 1, 18)); // NOI18N

jLabel2.setText(" Username");

jLabel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0,
0), 3));

getContentPane().add(jLabel2);

jLabel2.setBounds(620, 190, 140, 32);

jLabel4.setFont(new java.awt.Font("Arial Black", 1, 18)); // NOI18N

jLabel4.setText("Roll Number");

jLabel4.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0,
0), 3));

getContentPane().add(jLabel4);

jLabel4.setBounds(620, 240, 140, 32);

jLabel5.setFont(new java.awt.Font("Arial Black", 1, 18)); // NOI18N

43
jLabel5.setText(" Password");

jLabel5.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0,
0), 3));

getContentPane().add(jLabel5);

jLabel5.setBounds(620, 290, 140, 32);

getContentPane().add(username);

username.setBounds(790, 190, 210, 30);

getContentPane().add(rollnumber);

rollnumber.setBounds(790, 240, 210, 30);

getContentPane().add(password);

password.setBounds(790, 290, 210, 30);

jButton.setFont(new java.awt.Font("Arial Black", 1, 24)); // NOI18N

jButton.setText("LOGIN");

jButton.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0,
0), 7));

jButton.addActionListener(new java.awt.event.ActionListener() {

public void actionPerformed(java.awt.event.ActionEvent evt) {

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);

jLabel3.setBounds(-2400, -330, 3970, 1340);

pack();

}// </editor-fold>

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

// TODO add your handling code here:

try

String uname = username.getText();

String roll = rollnumber.getText();

String pass = password.getText();

if(!uname.isEmpty() && !roll.isEmpty() && !pass.isEmpty())

45
ResultSet rs = DBLoader.executeSQL("Select * from student_table where
student_name='"+uname+"' and student_roll='"+roll+"' and student_password='"+pass+"'");

if(rs.next())

JOptionPane.showMessageDialog(this, "LOGIN SUCCESSFULL");

dispose();

ResultTable hey = new ResultTable();

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() {

public void run() {

new studentlogin().setVisible(true);

});

// Variables declaration - do not modify

private javax.swing.JButton jButton;

private javax.swing.JLabel jLabel1;

private javax.swing.JLabel jLabel2;

private javax.swing.JLabel jLabel3;

private javax.swing.JLabel jLabel4;

private javax.swing.JLabel jLabel5;

private javax.swing.JPasswordField password;

private javax.swing.JTextField rollnumber;

private javax.swing.JTextField username;

// End of variables declaration

47
}

SOURCE CODE FOR RESULT TABLE:-

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;

public class ResultTable extends javax.swing.JFrame {

PreparedStatement ps;

ResultSet rs;

public static String Id;

48
public ResultTable() {

initComponents();

jTable1.getTableHeader().setOpaque(false);

jTable1.getTableHeader().setBackground(Color.BLACK);

jTable1.getTableHeader().setForeground(new Color(0,0,0));

jTable1.getTableHeader().setFont(new Font("Segoe UI", Font.BOLD, 14));

@SuppressWarnings("unchecked")

// <editor-fold defaultstate="collapsed" desc="Generated Code">

private void initComponents() {

java.awt.GridBagConstraints gridBagConstraints;

jPanel1 = new javax.swing.JPanel();

jScrollPane1 = new javax.swing.JScrollPane();

jTable1 = new javax.swing.JTable();

jPanel2 = new javax.swing.JPanel();

jTextFieldSearch = new javax.swing.JTextField();

jButton1 = new javax.swing.JButton();

jButton2 = new javax.swing.JButton();

jButton5 = new javax.swing.JButton();

49
setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);

addWindowListener(new java.awt.event.WindowAdapter() {

public void windowOpened(java.awt.event.WindowEvent evt) {

formWindowOpened(evt);

});

getContentPane().setLayout(new java.awt.GridBagLayout());

jPanel1.setBackground(new java.awt.Color(0, 0, 51));

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.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N

jTable1.setModel(new javax.swing.table.DefaultTableModel(

new Object [][] {

},

new String [] {

"Std_Id", "Name", "Course", "DSA-LAB", "MP-LAB", "MATH", "FLAC",


"SYSTEM-P", "DSA", "MP", "DBMS", "Total", "Average", "Ranking"

50
}

));

jTable1.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));

jTable1.setFocusable(false);

jTable1.setName(""); // NOI18N

jTable1.setOpaque(false);

jTable1.setRowHeight(22);

jTable1.setSelectionBackground(new java.awt.Color(0, 0, 0));

jScrollPane1.setViewportView(jTable1);

jTable1.getColumnModel().getSelectionModel().setSelectionMode(javax.swing.ListSelectionMo
del.SINGLE_INTERVAL_SELECTION);

jPanel1.add(jScrollPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(4, 73, 1086,


546));

jPanel2.setBackground(new java.awt.Color(51, 0, 51));

jPanel2.setForeground(new java.awt.Color(0, 51, 51));

jPanel2.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

jTextFieldSearch.setFont(new java.awt.Font("Tahoma", 0, 20)); // NOI18N

jTextFieldSearch.setText("Search");

51
jTextFieldSearch.addFocusListener(new java.awt.event.FocusAdapter() {

public void focusGained(java.awt.event.FocusEvent evt) {

jTextFieldSearchFocusGained(evt);

public void focusLost(java.awt.event.FocusEvent evt) {

jTextFieldSearchFocusLost(evt);

});

jPanel2.add(jTextFieldSearch, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 12,


583, 42));

jButton1.setBackground(new java.awt.Color(0, 51, 51));

jButton1.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N

jButton1.setForeground(new java.awt.Color(255, 255, 255));

jButton1.setText("Delete");

jButton1.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));

jButton1.addActionListener(new java.awt.event.ActionListener() {

public void actionPerformed(java.awt.event.ActionEvent evt) {

jButton1ActionPerformed(evt);

});

52
jPanel2.add(jButton1, new org.netbeans.lib.awtextra.AbsoluteConstraints(714, 12, 101,
42));

jButton2.setBackground(new java.awt.Color(0, 51, 51));

jButton2.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N

jButton2.setForeground(new java.awt.Color(255, 255, 255));

jButton2.setText("GoTo Edit");

jButton2.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));

jButton2.addActionListener(new java.awt.event.ActionListener() {

public void actionPerformed(java.awt.event.ActionEvent evt) {

jButton2ActionPerformed(evt);

});

jPanel2.add(jButton2, new org.netbeans.lib.awtextra.AbsoluteConstraints(833, 12, 241,


42));

jButton5.setBackground(new java.awt.Color(0, 51, 51));

jButton5.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N

jButton5.setForeground(new java.awt.Color(255, 255, 255));

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));

jPanel1.add(jPanel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(4, 4, 1090, 70));

gridBagConstraints = new java.awt.GridBagConstraints();

gridBagConstraints.gridx = 0;

gridBagConstraints.gridy = 0;

gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;

gridBagConstraints.insets = new java.awt.Insets(0, 0, 4, 0);

getContentPane().add(jPanel1, gridBagConstraints);

pack();

}// </editor-fold>

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

Frame f = new Frame();

f.setVisible(true);

f.pack();

f.setLocationRelativeTo(null);

this.dispose();

54
}

private void formWindowOpened(java.awt.event.WindowEvent evt) {

try {

String registerQuery ="SELECT * From resulttable";

DefaultTableModel modele = (DefaultTableModel) jTable1.getModel();

ps = MyConnection.getConnection().prepareStatement(registerQuery);

rs = ps.executeQuery();

while(rs.next()){

Object o[]= {rs.getString("id"), rs.getString("stdName"), rs.getString("Course")

,rs.getString("DSALAB"), rs.getString("MPLAB"), rs.getString("MATH")

,rs.getString("FLAC"), rs.getString("SystemP"), rs.getString("DSA")

,rs.getString("MP"), rs.getString("DBMS"), rs.getString("Total")

,rs.getString("Average"), rs.getString("Ranking")};

if(jTable1.getRowCount()!= getRowNumber())

modele.addRow(o);

55
catch(SQLException ex){

Logger.getLogger(Frame.class.getName()).log(Level.SEVERE, null, ex);

// ======================When YOu Login As Student


=============================

String Query = "SELECT loginAs FROM login WHERE loginAs ='Student'";

PreparedStatement psa;

ResultSet rsa;

try{

psa = (PreparedStatement) DBLoader.executeSQL(Query);

rsa = psa.executeQuery();

rsa.next();

if(studentlogin.SeeUser.equals(rsa.getString("loginAs"))){

jButton1.setEnabled(false);

jButton2.setEnabled(false);

}catch(Exception e){

56
}

private void jTextFieldSearchFocusGained(java.awt.event.FocusEvent evt) {

if(jTextFieldSearch.getText().trim().equals("Search")){

jTextFieldSearch.setText("");

jTextFieldSearch.setForeground(Color.black);

private void jTextFieldSearchFocusLost(java.awt.event.FocusEvent evt) {

if(jTextFieldSearch.getText().trim().equals("")||

jTextFieldSearch.getText().trim().equals("Search")){

jTextFieldSearch.setText("Search");

jTextFieldSearch.setForeground(new Color(153,153,153,153));

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

57
DefaultTableModel model = (DefaultTableModel) jTable1.getModel();

if(jTable1.getSelectedRow()==-1){

if(jTable1.getRowCount()==0){

JOptionPane.showMessageDialog(null, "No Row has been Selected",

"Alert!", JOptionPane.OK_OPTION);

}else

JOptionPane.showMessageDialog(null, "Select a Row to be Deleted",

"Student Records System", JOptionPane.OK_OPTION);

else{

String id = jTable1.getValueAt(jTable1.getSelectedRow(), 0).toString();

try{

ps = DBLoader.getConnection().executeSQL("DELETE FROM resulttable


WHERE(id ="+'"'+id+'"'+")");

ps.executeUpdate();

}catch(Exception e){

JOptionPane.showMessageDialog(null,"Can Not Delete At this Moment! Try


Later"+e.getMessage());

model.removeRow(jTable1.getSelectedRow());

58
}

//========================Funtion GetNumber of Rows ====================

public int getRowNumber(){

int numberRow = 0;

PreparedStatement ps;

ResultSet rs;

String query = "select count(*) from resulttable";

try{

ps = (PreparedStatement) DBLoader.executeSQL(query);

rs = ps.executeQuery();

while(rs.next()){

numberRow = rs.getInt("count(*)");

catch (SQLException ex){

JOptionPane.showMessageDialog(null,"Error ");

return numberRow;

public static void main(String args[]) {

59
java.awt.EventQueue.invokeLater(new Runnable() {

public void run() {

new ResultTable().setVisible(true);

});

// Variables declaration - do not modify

private javax.swing.JButton jButton1;

private javax.swing.JButton jButton2;

private javax.swing.JButton jButton5;

private javax.swing.JPanel jPanel1;

private javax.swing.JPanel jPanel2;

private javax.swing.JScrollPane jScrollPane1;

private javax.swing.JTable jTable1;

private javax.swing.JTextField jTextFieldSearch;

// End of variables declaration

SOURCE CODE FOR TEACHER LOGIN:-

package studentmanagementsystem;

60
import javax.swing.JOptionPane;

import java.sql.*;

public class teacher_login extends javax.swing.JFrame {

/**

* Creates new form teacher_login

*/

public teacher_login() {

initComponents();

setVisible(true);

setSize(1900,800);

@SuppressWarnings("unchecked")

// <editor-fold defaultstate="collapsed" desc="Generated Code">

private void initComponents() {

jLabel1 = new javax.swing.JLabel();

t_name = new javax.swing.JTextField();

jLabel2 = new javax.swing.JLabel();

t_id = new javax.swing.JTextField();

61
jLabel3 = new javax.swing.JLabel();

t_password = new javax.swing.JPasswordField();

jButton1 = new javax.swing.JButton();

jLabel4 = new javax.swing.JLabel();

jPanel1 = new javax.swing.JPanel();

setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

getContentPane().setLayout(null);

jLabel1.setFont(new java.awt.Font("Arial Black", 1, 18)); // NOI18N

jLabel1.setText("Username");

getContentPane().add(jLabel1);

jLabel1.setBounds(620, 160, 130, 26);

getContentPane().add(t_name);

t_name.setBounds(760, 160, 180, 22);

jLabel2.setFont(new java.awt.Font("Arial Black", 1, 18)); // NOI18N

jLabel2.setText("User ID");

getContentPane().add(jLabel2);

jLabel2.setBounds(620, 210, 100, 26);

getContentPane().add(t_id);

62
t_id.setBounds(760, 210, 180, 22);

jLabel3.setFont(new java.awt.Font("Arial Black", 1, 18)); // NOI18N

jLabel3.setText("Password");

getContentPane().add(jLabel3);

jLabel3.setBounds(620, 260, 120, 26);

getContentPane().add(t_password);

t_password.setBounds(760, 260, 180, 22);

jButton1.setFont(new java.awt.Font("Arial Black", 1, 24)); // NOI18N

jButton1.setText("LOGIN");

jButton1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0,
0), 5));

jButton1.addActionListener(new java.awt.event.ActionListener() {

public void actionPerformed(java.awt.event.ActionEvent evt) {

jButton1ActionPerformed(evt);

});

getContentPane().add(jButton1);

jButton1.setBounds(720, 340, 110, 45);

63
jLabel4.setFont(new java.awt.Font("Arial Black", 1, 48)); // NOI18N

jLabel4.setText(" TEACHER LOGIN");

jLabel4.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0,
0), 5));

getContentPane().add(jLabel4);

jLabel4.setBounds(520, 10, 510, 78);

jPanel1.setBackground(new java.awt.Color(0, 0, 0));

getContentPane().add(jPanel1);

jPanel1.setBounds(0, 10, 350, 780);

pack();

}// </editor-fold>

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

try

String tname = t_name.getText();

String tid = t_id.getText();

String t_pass = t_password.getText();

if(!tname.isEmpty() && !tid.isEmpty() && !t_pass.isEmpty())

64
{

ResultSet rs = DBLoader.executeSQL("Select * from teacher_table where


teacher_name='"+tname+"' and teacher_id='"+tid+"' and password='"+t_pass+"'");

if(rs.next())

JOptionPane.showMessageDialog(this, "LOGIN SUCCESSFULL");

dispose();

// StudentRegistration obj = new StudentRegistration();

MainFrame2 obj = new MainFrame2();

obj.setVisible(true);

else

JOptionPane.showMessageDialog(this,"LOGIN FAILED");

catch(Exception ex)

ex.printStackTrace();

65
}

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;

} catch (ClassNotFoundException ex) {

public int getRowNumber(){//============start===============

int numberRow = 0;

PreparedStatement ps;

66
ResultSet rs;

String query = "select count(*) from teacher";

try{

ps = DBLoader.getConnection().prepareStatement(query);

rs = ps.executeQuery();

while(rs.next()){

numberRow = rs.getInt("count(*)");

catch (SQLException ex){

JOptionPane.showMessageDialog(null,"Error ");

return numberRow;

}//===========================end================================

public static void main(String args[]) {

java.awt.EventQueue.invokeLater(new Runnable() {

public void run() {

new TeacherRegistrations().setVisible(true);

67
});

// Variables declaration - do not modify

private javax.swing.ButtonGroup buttonGroup1;

private javax.swing.JButton jButtonAdd;

private javax.swing.JButton jButtonAdd1;

private javax.swing.JButton jButtonCancel;

private javax.swing.JButton jButtonDelete;

private javax.swing.JLabel jLabel1;

private javax.swing.JLabel jLabel12;

private javax.swing.JLabel jLabel2;

private javax.swing.JLabel jLabel3;

private javax.swing.JLabel jLabel4;

private javax.swing.JLabel jLabel5;

private javax.swing.JLabel jLabel6;

private javax.swing.JLabel jLabel7;

private javax.swing.JLabel jLabel8;

private javax.swing.JLabel jLabel9;

private javax.swing.JPanel jPanel1;

private javax.swing.JRadioButton jRadioButtonF;

68
private javax.swing.JRadioButton jRadioButtonM;

private javax.swing.JScrollPane jScrollPane1;

private javax.swing.JScrollPane jScrollPane2;

private javax.swing.JSeparator jSeparator1;

private javax.swing.JTable jTableTeacher;

private javax.swing.JTextArea jTextAreaAddress;

private javax.swing.JTextField jTextBirth;

private javax.swing.JTextField jTextFName;

private javax.swing.JTextField jTextFieldSearch;

private javax.swing.JTextField jTextId;

private javax.swing.JTextField jTextLName;

private javax.swing.JTextField jTextPhone;

private javax.swing.JTextField jTextSalary;

private javax.swing.JTextField jTextSubject;

// End of variables declaration

SOURCE CODE FOR CALCULATOR FRAME:-

package studentmanagementsystem;

import java.awt.Color;

69
import javax.swing.BorderFactory;

import javax.swing.border.Border;

public class Calc extends javax.swing.JFrame {

int num,ans;

int Calculation;

int divide, ansd;

public Calc() {

initComponents();

setVisible(true);

public void Arithmatic_Operation(){

switch(Calculation){

case 1:

ans = num + Integer.parseInt(jTextField1.getText());

jTextField1.setText(Integer.toString(ans));

break;

case 2:

ans = num - Integer.parseInt(jTextField1.getText());

70
jTextField1.setText(Integer.toString(ans));

break;

case 3:

ans = num * Integer.parseInt(jTextField1.getText());

jTextField1.setText(Integer.toString(ans));

break;

case 4:

ansd = divide / Integer.parseInt(jTextField1.getText());

jTextField1.setText(Integer.toString(ansd));

break;

default:

break;

public void disableCalc(){

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);

public void EnableCalc(){

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

private void initComponents() {

buttonGroup1 = new javax.swing.ButtonGroup();

jPanel1 = new javax.swing.JPanel();

jTextField1 = new javax.swing.JTextField();

jButton4 = new javax.swing.JButton();

jButton5 = new javax.swing.JButton();

jButton6 = new javax.swing.JButton();

jButton7 = new javax.swing.JButton();

jButton8 = new javax.swing.JButton();

jButton9 = new javax.swing.JButton();

jButton10 = new javax.swing.JButton();

jButton11 = new javax.swing.JButton();

jButton12 = new javax.swing.JButton();

jButton13 = new javax.swing.JButton();

jButton14 = new javax.swing.JButton();

jButton15 = new javax.swing.JButton();

jButton16 = new javax.swing.JButton();

jButton17 = new javax.swing.JButton();

74
jButton18 = new javax.swing.JButton();

jButton19 = new javax.swing.JButton();

jButton20 = new javax.swing.JButton();

jButton21 = new javax.swing.JButton();

jRadioButtonOn = new javax.swing.JRadioButton();

jRadioButtonOff = new javax.swing.JRadioButton();

jButton22 = new javax.swing.JButton();

jLabel1 = new javax.swing.JLabel();

jLabelclose = new javax.swing.JLabel();

jLabelmini = new javax.swing.JLabel();

setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

setUndecorated(true);

jPanel1.setBackground(new java.awt.Color(0, 51, 51));

jPanel1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(51, 51,


51), 10));

jTextField1.setBackground(new java.awt.Color(153, 255, 204));

jTextField1.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N

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() {

public void keyTyped(java.awt.event.KeyEvent evt) {

jTextField1KeyTyped(evt);

});

jButton4.setBackground(new java.awt.Color(51, 51, 51));

jButton4.setFont(new java.awt.Font("Tahoma", 1, 10)); // NOI18N

jButton4.setForeground(new java.awt.Color(255, 255, 255));

jButton4.setText("CLS");

jButton4.addActionListener(new java.awt.event.ActionListener() {

public void actionPerformed(java.awt.event.ActionEvent evt) {

jButton4ActionPerformed(evt);

});

jButton5.setBackground(new java.awt.Color(0, 204, 102));

76
jButton5.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N

jButton5.setForeground(new java.awt.Color(255, 255, 255));

jButton5.setText("=");

jButton5.addActionListener(new java.awt.event.ActionListener() {

public void actionPerformed(java.awt.event.ActionEvent evt) {

jButton5ActionPerformed(evt);

});

jButton6.setBackground(new java.awt.Color(0, 0, 0));

jButton6.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N

jButton6.setForeground(new java.awt.Color(255, 255, 255));

jButton6.setText("4");

jButton6.addActionListener(new java.awt.event.ActionListener() {

public void actionPerformed(java.awt.event.ActionEvent evt) {

jButton6ActionPerformed(evt);

});

jButton7.setBackground(new java.awt.Color(0, 0, 0));

jButton7.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N

77
jButton7.setForeground(new java.awt.Color(255, 255, 255));

jButton7.setText("1");

jButton7.addActionListener(new java.awt.event.ActionListener() {

public void actionPerformed(java.awt.event.ActionEvent evt) {

jButton7ActionPerformed(evt);

});

jButton8.setBackground(new java.awt.Color(0, 0, 0));

jButton8.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N

jButton8.setForeground(new java.awt.Color(255, 255, 255));

jButton8.setText("5");

BIBLIOGRAPHY

• Java Study Notes

• Sun Certified Java Programming by Kathy Sierra

• Code With Harry YouTube Channel

• www.stackoverflow.com

• www.javatpoint.com

78
79

You might also like