Sie sind auf Seite 1von 143

INSTITUTE INFORMATION SYSTEM 201

INSTITUTE INFORMATION SYSTEM

A PROJECT REPORT

SUBMITTED BY

SAURABH KUMAR SINGH

in partial fulfillment for the award of the degree

of

MASTER OF COMPUTER APPLICATION

INTEGRETED ACEDMY OF MANAGEMENT AND TECHNOLOGY


GHAZIABAD (113)

UTTAR PRADESH TECHNICAL UNIVERSITY: LUCKNOW

MONTH & YEAR

MAY-2010

1|Page
INSTITUTE INFORMATION SYSTEM 201
0

Declaration

I hereby declare that the work presented in the project

entitled “INSTITUTE INFORMATION SYSTEM“

through Java 1.5 and MS -Access submitted towards

the project for MCA.The project was done in full

compliance with the requirements and constraints of

the prescribed curriculum.

(SAURABH KUMAR SINGH)

Signature :

Date :->22-04-2010

2|Page
INSTITUTE INFORMATION SYSTEM 201
0

FORWARDING PAGE

1. Project Title : INSTITUTE INFORMATION SYSTEM

2. Developed For : Submission for MCA Project

3. Developed By : SAURABH KUMAR SINGH

5. Guided By : Mrs. BARAKHA

6. Purpose : To Collect the Course and Student


Information

7. System Requirement : 1. Any PC

2. At Least 256 MB of RAM

3. It is compatible with Win 2000 or Higher


version

4. Minimum memory required 3 GB

8. Tools/ Platform used : Advance Java as front End .

Microsoft-Access as Back End.

3|Page
INSTITUTE INFORMATION SYSTEM 201
0

Certificate

This is to certify that the project “INSTIUTE INFORMATION

SYSTEM” is bonafide work done by SAURABH KUMAR SINGH in

partial fullfillment of MCA program has been carried out under my

direct supervision and guidance .

This report or a similar report on the topic has been submitted for

any othe r examination and does not form of any other cources

undergone by the candidate.

Name Of Guide : Mrs. Barkha

Place : Ghaziabad

Designation : Faculty

Date : 22-04-2010

4|Page
INSTITUTE INFORMATION SYSTEM 201
0

Acknowledgement

I thank the Almighty for providing me the opportunity

and giving me the strength to just hang in there and

final the job.I express my gratitude to Mrs.Barakha for

his support of guidance and valuable suggestion at the

making every stage of this project. His broad

knowledge about Java 1.5 and Microsoft Access

leads me to complete this project and also permitted us

to perform this project and organized every thing

including the permission for computer resources.

SAURABH KUMAR SINGH

ROLL NO->07-44

5|Page
INSTITUTE INFORMATION SYSTEM 201
0

INTRODUCTION

INSTITUTE INFORMATION SYSTEM

Today almost all the work is being computerized in

order to provide more reliable and accurate services in

different field. The idea of project came because of the

problem faced by the persons who does it manually.

The aim is to computerize all the process to provide

better services i.e. maintain all the records of the items

update and quotation update.

There are many type of record is compulsory should be

kept and never miss any important file or document

like bill .Every record should be kept in file(in hard

copy) it is not quit possible as well as it is over head

and any record you want to search it, it takes many

time and record is not in safe mode while in your

6|Page
INSTITUTE INFORMATION SYSTEM 201
0

computer record is always save compare than out side

environment .

OBJECTIVE OF THE PROJECT

This project deals with the management criteria of the

School. School is a place where the work is to Add the

New Courses, keep their records, conduct the admition,

prepare the result and manage the fee submition of

student report the management. Also teachers are

assigned classes ,time tables are prepared The aim is

to automate its existing manual system by the help of

computerized equipments and full-fledged computer

software, fulfilling their requirements, so that their

valuable data/information can be stored for a longer

period with easy accessing and manipulation of the

same.

7|Page
INSTITUTE INFORMATION SYSTEM 201
0

Basically the project describes how to manage

available

the

new course ,course_id ,course_name ,semester

,semesterfees,elegebility,new_students,student_id,

student_name, address, phone no. ,email id list of

courses list of students ,list of student per course etc.

For easy and convenient processing we need to

develop software, which works as per our

requirements. While preparing this software we got to

remember few things i.e. this software must have a

friendly environment, in other words it should not be

much complicated to handle, it should have options for

future modifications. For smooth functioning, we had to

prepare a database by which we could enter the

required data in their respective locations. In this

database all the records of students are stored and


8|Page
INSTITUTE INFORMATION SYSTEM 201
0

manipulated in desired fashion, so that we can use

them in future whenever needed. From security point

of view this software has a special login name and

password allotted to its user. Other than that no one

could use this and on entering an illegal password or

login name an error message get displayed.

The main objectives behind the development of this

project are as follows:

To assist the staff in capturing the effort spent on their

respective working areas.

To utilize resource of the institution in an efficient

manner by increasing their productivity through

automation.

The system generates a number of types of reports

that can be then used for various purposes.

Thus, there are a number of objectives behind

developing the “INSTITUTE INFORMATION SYSTEM”


9|Page
INSTITUTE INFORMATION SYSTEM 201
0

and it reduces a lot of burden of the staff by simplifying

the tasks etc.

10 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

PROJECT CATEGORY
Relational Database Management System (RDBMS).

The proposed system comes under RDBMS category, as

there is need to store and manipulate a huge amount

of data related to student, course, and list tables as per

various queries

11 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

Preliminary Investigation

Benefit to Organization: -

The organization will obviously be able to gain benefits

such as savings in operating cost, reduction in

paperwork, better utilization of human resources and

more presentable image increasing goodwill. The other

benefits are improved and faster and better access to

up-to-date information.

The Initial Cost : -

The initial cost of setting up the system will include the

cost of hardware (server/clients, network adapter and

related hardware), software (server OS, add-on

software, utilities) & labor (setup & maintenance). The

same has to bear by the organization.

12 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

Running Cost : -

Besides, the initial cost the long term cost will include

the running cost for the system including, stationary

charges, cost for human resources, cost for

update/renewal of various related software.

Need for Training : -

The users along with the administrator need to be

trained at the time of implementation of the system for

smooth running of the system. The client will provide

the training site.

Depending upon this definition, we analyzed that

presently organization was being maintained manually.

During the analysis process, I had to go through the

entire manual system that was being followed in the

Organization for past few years.

13 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

I talked to the shopkeeper who was managing the

centre, the staff who was keeping the records in lots of

registers and the reporting manager regarding their

existing system, their requirements and their

expectations from the new proposed system. Then, I

did the system study of the entire system based on

their requirements and the additional features they

wanted to incorporate in this system.

The manual railway contractor shop system was very

complex to be managed and searching or updating the

information of banks or item was also very difficult and

tedious job.

There was a lengthy procedure for entering the banks

& raw material information in one register first to add

their records and later on adding details.

The other problem with the manual system was of

report generation. The reports generated about the


14 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

banks & raw material and his required lot of paper work

and calculations etc. Thus, Reporting Manager had to

manually calculate about purchasing and stock. Even a

small calculation mistake was leading to reanalysis and

recreation of whole work.

Reliable, accurate and secure data was also considered

to be a complex task without this proposed system.

The new computerized railway contract system

proposed and then developed by me will easy the task

of the managing elections for the organization in

consideration. It will be helpful in generating the

required reports based on the parameters required by

the management, which will help them to track their

progress and services.

Thus, it will easy the task of works and staff to a great

extent as all the major activities to be performed,

15 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

related to assembling, reporting, are computerized

through this system.

16 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

Feasibility Study

After doing the system study and analyzing all the

existing or required functionalities of the system, the

next task is to do the feasibility study for the project.

All projects are feasible - given unlimited resources and

infinite time.

But it is both prudent and necessary to evaluate the

feasibility of a project at the earliest possible time and

with the limited available resources.

Feasibility study includes consideration of all the

possible ways to provide a solution to the given

problem. The proposed solution should satisfy all the

user requirements and should be flexible enough so

that future changes can be easily done based on the

future upcoming requirements.

17 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

While doing the feasibility study, emphasis is given to

the development technologies and cost factor for the

project.

The feasibility study that was done for this project

included the following considerations

Technical Feasibility : -

A large part of determining resources has to do with

assessing technical feasibility. First I found out

whether current technical resources can be upgraded

or added to in a manner that fulfills the request under

consideration. It was not so. Now, since using my own

experience I was able to answer the question of

technical feasibility. The response to whether a

particular technology is available and capable of

meeting the users' request was “yes," and then the

question becomes an economic one.

18 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

Economicl Feasibility : -

Economic feasibility is the second part of resource

determination. The basic resources to consider are: my

time, the cost of doing a full systems study, cost of the

other employee time, estimated cost of hardware, and

estimated cost of the software and/or software

development. The concerned business must be able to

see the value of the investment it is pondering before

committing to an entire system study. If short-term

costs are not overshadowed by long-term gains or

produce no immediate reduction in operating costs,

then the system is not economically feasible, and the

project should not proceed any further.

Operational Feasibility : -

Suppose for a moment that technical and economic

resources are both judged adequate. The operational

19 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

feasibility of the requested project must be

considered. Operational feasibility is dependent on

human resources available for the project and involves

projecting whether the system will

Operate and be used once it is installed.

If users are virtually wed to the present

system, see no problems with it, and generally are not

involved in requesting a new system, resistance to

implementing the new system will be strong. Chances

for it ever becoming operational are low.

20 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

TOOLS/PLATFORM, LANGUAGE
a) Operating System

The proposed software is targeted to run on Windows

XP, Windows 2000 Server and Windows 2003 Server.

b) Front End

Java 1.5 is being used as front end due to its

productivity and maintainability. A Compiler converts

the java program into intermediate language

representations called Bytecode which is platform

independent. A java file will have the extension .java.

c) Back End (MS ACCESS)

Microsoft Access is a Relational Database

Management System or RDBMS. There are lots of

RDBMS available in the market but this one is most

user’s friendly.

21 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

DATA GATHERING TOOLS

The various data gathering tools used are:

1).Conducting Interviews.

2).Preparing Questioners.

3).Studying the System Documents.

4).On Site Observation.

22 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

THEORATICAL BACKGROUND OF THE PROJECT

SYSTEM is a very popular place in our life. Almost in

SYSTEM records of Students, Courses, list of cources,

Fees, Schedule etc are maintained and manipulated.

There is now some investigations are involved to find

out or to correctly done the work.. Generally all

these works are done and managed manually hence

leading to the chances of human errors that may

create some problems. Thus, a secured and reliable

system is required to handle it.

Instiute Information System, as described above, can

lead to error free, secure, reliable and fast

Information system.

It can assist the staff to concentrate on their other

activities rather to concentrate on the record


23 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

keeping. Thus it will help organization in better

utilization of SYSTEM resources.

The organization can maintain computerized records

without redundant entries. That means that one need

not be distracted by information that is not relevant,

while being able to reach the information that is

relevant much more quickly.

24 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

ABOUT ADVANCE BLUE JAVA1.5

Developme
nt
Java SDK history and concepts

As with many breakthroughs in science and


technology, the Java programming language is the
result of a concerted effort from a group of forward
thinkers. Yet what you may find surprising-and perhaps
shocking-about Java is that this truly ingenious
technological development is not the result of a project
that went perfectly from day one.

Amazingly, if the project that began with the code


name Green in the spring of 1991 had proceeded
according to plan, Sun Microsystems would be in the
commercial electronics business and the world would
be without its jolt of Java. To understand the evolution
and the true breakthrough Java represents, you have to
25 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

roll the clock back to 1991. In 1991 Sun Microsystems,


Inc. was just beginning its climb to the position as the
top producer of UNIX workstations.

A key area the company focused on was the


commercial electronics market; the Green project was
born as part of a larger project to develop advanced
software for this market. The goal of the Green group
was to establish Sun Microsystems as a player in the
commercial electronics market. To achieve this goal,
Sun's engineers and developers looked to
microprocessors that would run on a variety of
machines, particularly distributed real-time embedded
systems that were both reliable and portable.

The key to Sun's success in this market would be


the capability to easily port the system to multiple
platforms. The plan was to develop the project in C++,
but the developers ran into many problems as they
tried to extend the C++ compiler. The developers ran
into other problems as they tried to work in the
constrictive framework of C++. Soon the developers
realized that to succeed, they would have to try
something bold and new. It was then that James
Gosling began work on a new language he called Oak.
Later, the new language would be called Java because
in another twist of fate, Oak failed a trademark search.

Eventually, the developers created a PDA-like


device to show off their efforts. Although the device
used an early form of the Java programming language
and a basic operating system and user interface, it was
good enough to dazzle the executives at Sun. Around
26 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

this time, the Green group developers incorporated


under the name FirstPerson, Inc., which would later
become JavaSoft. After that, it was a series of wrong
turns for the Green group. A deal fell through with
Time-Warner to develop set-top boxes that would be
used for interactive television and video-on-demand. A
deal fell through to develop an operating system for
the 3DO. The public launch of the project was canceled,
and much of the team left the Green group. By now it
was early 1994, and the group of developers from Sun
began looking to new areas once again. And as in the
same time bounds Netscape communications like
company emerged. Sun took the initiative and the
Green group developers turned to the Internet and the
Web as the answer to their problems. The Internet's
distributed and multiplatform environment was perfect
as a test bed for their project.

The rest, as they say, is history. Four years after


the project began; those who hung in there got the
gold ring. Java is currently the hottest topic on the
Internet. Thousands of Web publishers and Internet
developers want to learn how they can create high
powered Web documents complete with animation and
multimedia. Millions of Web users want to learn where
they can check out the latest Java-powered Web pages.

Sun Microsystems has done a wonderful job of


keeping pace with this demand. They licensed Java
technology to companies such as IBM, Microsoft, Silicon
Graphics, Adobe, and Netscape. They continue to
diligently update the Java language. And true to the
ideal that made Sun Microsystems who they are today,
27 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

Java and the Java Developer's Kit are provided free of


charge to developers.

No discussion of the genesis of Java is complete


without a look at the Java buzzwords. Although the
fundamental forces that necessitated the invention of
Java are portability and security. Other factors also
played an important role on molding the final form of
the language. The key considerations were summed up
by the Java team in the following list of buzzwords:

(I) Simple (II) Secure (III) Portable


(IV) Object oriented (V) Robust (VI)
Multithreaded
(VII) Architecture-neutral (VIII) Interpreted
(IX) Distributed
(X) High performance (XI) Dynamic.

28 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

The architecture for Java SDK as per latest may be


given as below:

29 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

The JDK (Java Development Kit) includes the JRE


(Java Runtime Environment) plus command-line
development tools such as compilers and debuggers
that are necessary or useful for developing applets and
applications. We are providing the listing for the j2sdk
1.5.0 given below:

The tools as we have used during this project are as


given under:

Javac: The compiler for the Java programming


language.
Java: The launcher for Java applications. In J2SE 5
release, a single launcher is used both for development
and deployment. The old deployment launcher, jre, is
no longer provided.
Jar: Create and manage Java Archive (JAR) files.

30 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

∗ Java/Swing Programming
Introduction
Swing is a rapid GUI development tool that is part
of the standard Java development kit. It was primarily
developed due to the shortcomings of the Abstract
Windows Toolkit (AWT). For example, Swing's JButton
class enhances the AWT Button class to allow not only
text, but images on the button. In addition, all Swing
components support assistive technologies.
Swing Components
I am only going to go over a few basic Swing
components:
• JFrame

• JPanel

• JButton

If you know how to use these basic components,


using the others is simple. Usually, while making a GUI-
based application, you instantiate a JFrame and choose
its layout. Then you put one or more JPanels in the
JFrame if you want to. JPanels also have different layout
options like JFrames do. After that, you add other
components.
The JButton, JPanel, and JFrame actually have a ton
of more options you can set. Check out the Java
documentation for the whole deal. In this simple

31 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

example, clicking the button does nothing, but clicking


the "X" at the top right automatically exits the program
completely.
Event Handlers
Now,to put something behind this simple little GUI
that we have built. Functionality can be added to
clickable GUI components through event handlers. This
is done by adding a listener object to a component.
Whenever any action is done on the component, the
appropriate listeners are triggered and their
appropriate methods (event handlers) are invoked.
Try clicking “the connect” and “disconnect”
buttons and see what happens. This program is a lot
simpler than the actual TCP chat program which you
will see later.
Thread Issues
Going from AWT to Swing results in a little issue
with threads. All AWT classes are thread safe; Swing's
classes are not. A little knowledge about threads is
necessary to completely understand the reason for the
complexity of using threads. Sun's Java Tutorial covers
this topic very well, so you might want to take a peek
there. Consider an object that has been instantiated in
one thread. Now this object needs to be modified by
two or more threads. Data can easily be corrupted if
two threads try to modify the same object at the same
time. Of course, you know there is no such thing as
"the same time" when it comes to threads since the
operating system switches between the various threads
to make them seem like they are running concurrently.
However, if one thread is interrupted while it is

32 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

modifying an object and a second thread is initiated so


that it begins to modify that object, data can get
corrupted.
There are a couple of ways to get around this
problem in Java. Java allows a way to enforce that no
thread modifies the same object that your thread is
modifying through the use of the synchronize keyword.
You can read up about it in Sun's Java tutorial since it is
out of the scope of this tutorial. Synchronizing an
object before modifying it blocks any other threads
attempting to access the synchronized object until your
synchronize block is done. AWT's methods synchronize
on their corresponding object instantiation, which
prevents the objects (e.g. buttons, panels, etc.) on the
screen from being corrupted while they are being
drawn. However, this can block your thread if it is
trying to access the AWT object. This just slows things
down.
Swing and Threads
Swing, as I mentioned above, is not thread-safe.
This means that most of its methods do not
synchronize with the internal state of the Swing object.
Only a few functions that are marked as thread-safe in
the Java documentation are safe to execute from
anywhere. The programmer is now given the
responsibility of making sure that there are no thread
conflicts. This can be done by making sure that all the
modifications to the Swing objects happen in the same
thread. All the events - such as button clicks and others
- are handled on the thread known as the event-
handling thread. This thread is also where all the
component painting onto the screen is done. Hence,
33 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

any modifications to the visible Swing components can


be made in any event handling routine. For example, in
the SimpleGui2 class above, the properties of the
button are modified in the ButtonListener class, whose
method is executed on the event-handling thread every
time the button is clicked.
Now, what if you have to modify an object without
receiving any events? Swing allows you to run a class
that implements the Runnable interface on the event-
handlingthread.This is done using the
SwingUtilities.invokeLater(runnableObj); method. For
example, runnableObj is an instantiation of a class that
implements the Runnable interface.
SwingUtilities.invokeLater(runnableObj); will queue the
runnableObj.run() method on the event-handling
queue, and the method will eventually execute and be
able to modify the Swing components. If you see the
TCPChat code, you will see that that is exactly what I
have done to update the GUI .

34 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

Using package
The package statement must appear the first
statement (i.e., the first text other than comments and
whitespace) in a file of java source code, if it appear
at all. It specifies which package the code in the file is
part of. Java code that is part of a particular
package as access to all classes (public and non-
public) in package and to all non-private methods and
fields all of those classes. When java code is part of a
name package, the compiled class file must be placed
at the appropriate position in the CLASSPATH
directory hierarchy before it can be accessed by the
java interpreter or other utilities.

If the package statement is omitted from a file, the


code in that file is part of unnamed default package.
This convenient for small test programs, or during
development, because it means that the code can be
interpreted from the current directory.

Using Package Members


Only public package members are accessible
outside the package in which they are defined. To use
a public package member from outside its package,
you must do one or more of the following:
• Refer to the member by its long (qualified) name

• Import the package member


35 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

• Import the members entire package

Each is appropriate for different situations, as


explained in the following sections.
Referring to a Package Member by
Name
So far, the examples in this tutorial have referred
to classes and interfaces by their simple names, such
as Rectangle and StockWatcher. You can use a
package members simple name if the code you are
writing is in the same package as that member or if the
members package has been imported.
However, if you are trying to use a member from a
different package and that package has not been
imported, you must use the members qualified name,
which includes the package name.
graphics.Rectangle
You could use this long name to create an instance of
graphics.Rectangle:
graphics.Rectangle myRect = new
graphics.Rectangle();
You'll find that using long names is okay for one-shot
uses. But you'd likely get annoyed if you had to write
graphics.Rectangle again and again. Also, your code
would get very messy and difficult to read. In such
cases, you can just import the member instead.

36 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

The import statements


The import statements makes Java classes
available to the current class under an abbreviated
name. Public Java classes are always available by
their fully qualified name, assuming that the
appropriate class file can be found ( and is
readable ) relative to the CLASSPATH environment
variable. Import does not actually make the class
available or “read it in ” ; it simply saves you type
and makes your codes more legible.
There are two form of the import statements:
import . pakege . class ;
import . pakege . * ;
Importing a Package Member
To import a specific member into the current file,
put an import statement at the beginning of your file
before any class or interface definitions but after the
package statement, if there is one. Here's how you
would import the Circle class from the graphics
package created in the previous section:
import graphics.Circle;
Now you can refer to the Circle class by its simple
name:
Circle myCircle = new Circle();
This approach works well if you use just a few members
from the graphics package. But if you use many classes
and interfaces from a package, you can import the
entire package.

37 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

Importing an Entire Package


To import all the classes and interfaces contained in a
particular package, use the import statement with the
asterisk (*) wildcard character:
import graphics.*;
Now you can refer to any class or interface in the
graphics package by its short name:
Circle myCircle = new Circle();
Rectangle myRectangle = new Rectangle();
The asterisk in the import statement can be used only
to specify all the classes within a package, as shown
here. It cannot be used to match a subset of the
classes in a package. For example, the following does
not match all the classes in the graphics package that
begin with A:
import graphics.A*;// does not work
Instead, it generates a compiler error. With the import
statement, you can import only a single package
member or an entire package.
For your convenience, the Java runtime system
automatically imports two entire packages:
• The java.lang package

• The current package by default

Disambiguating a Name
If by some chance a member in one package
shares the same name with a member in another
package and both packages are imported, you must

38 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

refer to each member by its qualified name. For


example, the previous example defined a class named
Rectangle in the graphics package. The java.awt
package also contains a Rectangle class. If both
graphics and java.awt have been imported, the
following is ambiguous:
Rectangle rect;
In such a situation, you have to be more specific and
use the members qualified name to indicate exactly
which Rectangle class you want:
}
Write the Main Method
The HelloWorld class, because it is an application,
also includes a main method to instantiate the class
and call the native method. The main method
instantiates HelloWorld and calls the displayHelloWorld
native method.
public static void main(String[] args) {
new HelloWorld().displayHelloWorld();
}
You can see from the code sample that you call a
native method in the same manner as you call a
regular method: just append the name of the method
to the end of the object name, separated with a period
('.'). A matched set of parentheses, (), follow the
method name and enclose any arguments to pass into
the method. The displayHelloWorld method doesn't
take any arguments.
Attaching Native Threads
The Invocation API also allows you to attach native
39 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

threads to a running Java Virtual Machine and have the


threads bootstrap themselves into Java threads. This
requires that the Java Virtual Machine internally uses
native threads. In JDK 1.1, this feature only works on
Microsoft Windows. The Solaris version of the Java
Virtual Machine uses user-level thread support and is
therefore incapable of attaching native threads. In the
future, the JDK on Solaris will support native threads.
Our example program, attach.c, therefore, will only
work on Microsoft Windows. This example program is a
variation of invoke.c. Instead of calling Prog.main in the
main thread, the native code spawns five threads and
then waits for them to finish before it destroys the Java
Virtual Machine. Each thread attaches itself to the Java
Virtual Machine, invokes the Prog.main method, and
finally detaches itself from the Virtual Machine before it
terminates. Note that the third argument to
AttachCurrentThread is reserved and should be set to
NULL.
When you call DetachCurrentThread, you free all
local references belonging to the current thread.
Importing Classes and Packages
The first two lines of the following listing import
two classes used in the applet: Applet and Graphics.
import java.applet.Applet;
import java.awt.Graphics;

public class HelloWorld extends Applet {


public void paint(Graphics g) {
g.drawString("Hello world!", 40, 20);
}

40 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

}
If you removed the first two lines, the applet could
still compile and run, but only if you changed the rest
of the code like this:
Public classHelloWorld extends java.applet.Applet
{
public void paint(java.awt.Graphics g) {
g.drawString("Hello world!", 40, 20);
}
}
As you can see, importing the Applet and Graphics
classes lets the program refer to them later without
any prefixes. The java.applet. and java.awt. prefixes
tell the compiler which packages it should search for
the Applet and Graphics classes. Both the java.applet
and java.awt packages are part of the core Java API --
API that every Java program can count on being in the
Java environment. The java.applet package contains
classes that are essential to Java applets. The java.awt
package contains the most frequently used classes in
the Abstract Window Toolkit (AWT), which provides the
Java graphical user interface (GUI).

BACK END USED IN THE PROJECT

MS ACCESS – A brief note about the Back End

41 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

MS ACCESS, a Relational Database Management System

(RDBMS), works to efficiently manage its resource.

1) Supports all major operating systems for both clients

and servers, including MS-DOS, WINDOWS, NT etc

It maintains database security using a system of access

controls. This simply means that at an administrator's

discretion, the administrator creates registered

database user and then grants them the privileges to

perform specific database operation and use specific

data.

So the overall system will prove to reliable, secure and

efficient for the organization.

42 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

LIMITATIONS

Although I have put my best efforts to make the

software flexible, easy to operate but limitations cannot

be ruled out even by me. Though the software presents

a broad range of options to its users some intricate

options could not be covered into it; partly because of

logistic and partly due to lack of sophistication. Paucity

of time was also major constraint, thus it was not

possible to make the software fulproof and dynamic.

Lack of time also compelled me to ignore some part

such as storing old result of the candidate etc.

FLEXIBILITY

Considerable efforts have made the software easy to

operate even for the people not related to the field of

computers but it is acknowledged that a layman may

find it a bit problematic at the first instance. The user is

43 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

provided help at each step for his convenience in

working with the software.

SOFTWARE DEVLOPMENT PROCCESS

MODEL

(SDLC)

Building computer based information system needs a

careful analysis and design before implementation.

Detailed study to understand the information

requirement forms the major component of the analysis.

Providing a system that would meet the information

requirement in an efficient manner is the subjects of

information system design. With the increased

availability of new products and services ever-improving

price performance ratio, such analysis and design

become far more challenging. The newer products and

services provide new ways of daring business as well.

While the conventional analysis of information system


44 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

requirement may indicate some possible alternatives, an

alert analyst who is abreast of current and emerging

developments in information technology may propose

entirely new systems. The analysis model is a concise,

precise abstraction of what the desired system must do,

and not how it will be done after the study of the

existing system is completed. This basically includes

system study and the requirement analysis. Interacting

with the clients regarding their requirements and

expectations from the system does requirement

analysis.

The steps, which are essential for system analysis, are:

 Research and define essential components.

 Analyze current processes and identify gaps.

 Interview users, managers and other concerned personnel regarding

essential components and current processes.

 Write requirements document.

 Define standards for standards, policies, and procedures.

45 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

 Review draft requirements document with users, managers and other

concerned personnel.

 Update and expand project plan.

IDENTIFICATION OF NEED

The existing manual system becomes so complex

due to large amount of data. The need is identified

during the difficulties that encountered due to large

amount of data handling manually.

The Need

Automation of Systems described above, can lead to

error free, secure, reliable and fast management

system.

It can assist the staff to concentrate on their other

activities rather to concentrate on the record keeping.

Thus it will help organization in better utilization of

resources.

46 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

What to do with it

The organization can maintain computerized records

without redundant entries. That means that one need

not be distracted by information that is not relevant,

while being able to reach the information that is relevant

much more quickly.

47 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

SCOPE OF ENHANCEMENT

The scope of this project, INSTITUTE INFORMATION

SYSTEM is very wide. There are many additional

features, which are planned to be incorporated during

the future enhancements of this project.

To develop this project I had used two very convenient,

reliable and technical languages. These are Blue Java

and MS Access. These languages are such developed

so that they could be used for a long time. This allows

my software a long time event.

Usually in INSTITUTE INFORMATION SYSTEM we

had a long list of students, Courses etc which are

difficult to maintained and update on papers therefore

we require software which help us to perform these

function.

With the help of this software all the problems are

sorted out. This INSTITUTE INFORMATION SYSTEM

48 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

project could be used for any Convent SYSTEM where a

long and complicated list is required with a slight

modification in it.

Thus, this project is developed with the maximum

flexibility provided for future prospects and

enhancements. The future enhancements in this project

will be done in other phase.

49 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

ANALYSIS

Building computer based information system needs a

careful analysis and design before implementation.

Detailed study to understand the information

requirement forms the major component of the analysis.

Providing a system that would meet the information

requirement in an efficient manner is the subjects of

information system design. With the increased

availability of new products and services ever-improving

price performance ratio, such analysis and design

become far more challenging. The newer products and

services provide new ways of daring business as well.

While the conventional analysis of information system

requirement may indicate some possible alternatives, an

alert analyst who is abreast of current and emerging

developments in information technology may propose

entirely new systems. The analysis model is a concise,

50 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

precise abstraction of what the desired system must do,

and not how it will be done after the study of the

existing system is completed. This basically includes

system study and the requirement analysis. Interacting

with the clients regarding their requirements and

expectations from the system does requirement

analysis.

The steps, which are essential for system analysis, are:

1Research and define essential components.

2Analyze current processes and identify gaps.

3Interview users, managers and other concerned

personnel regarding essential components and

current processes.

4Write requirements document.

5Define standards for standards, policies, and

procedures.

51 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

6Review draft requirements document with users,

managers and other concerned personnel.

Update and expand project plan.

`PROBLEM IN THE EXISTING SYSTEM

The existing manual system of SYSTEM becomes complex

when the amount of data increases, so there is a need of such a system

which can store and manage this large and complex data. There is

lack of coordination among various related processes of the SYSTEM

that should be checked out. Besides, there exist various problems in

data handling such as a large number of registers to be maintained

separately, loss oe data due to inefficient entry, data redundancy and

complex manipulation of data in searching particulars entry.

52 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

METHODOLOGY

The System Development Life Cycle (SDLC), which has been

applied in development of this system, is an organized, structured,

methodology for developing, implementing, and installing a new or

revised Computer Information System (CIS). Standard phases include

investigation, analysis and general design, detailed design and

implementation, installation, and review.

1. Investigation Phase - This phase is at the inception of the systems

development life cycle to determine whether a full systems

development effort or another course of action is appropriate.

1.1. Initial Investigation - This activity handles and evaluates

requests for new or improved automated Systems (CIS)

services. The end result is an understanding of the request

at a level sufficient to make a preliminary

recommendation as to the course of action to be followed.

1.2. Feasibility Study - A study that when completed, will

53 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

have evaluated initially the relevant factors involved in a

problem on need, considered preliminary alternative

solutions, recommended a definite course of action, and

projected estimated costs an benefits to be derived from

the recommended solution.

2. Analysis and General Design Phase - This is a major segment

(phase) of the systems development life cycle.

It includes: establishing definitions and descriptions of existing

systems, defining requirements for and designing features of a

proposed replacement system, and doing a cost/benefit analysis.

The report to management at the conclusion of this phase

provides the basis taking decision on implementation of a new

system.

2.1. Existing System Review - The beginning of the analysis

and general design phase, intended to elicit an

understanding of the scope of a project.

54 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

2.2. New System Requirements - A definition of the

necessary capabilities of a new system from the user’s

perspective.

2.3. New System Design - A comprehensive proposal for a

new Computer Information System (CIS), encompassing

both user specification and all updated and/or additional

detailing of hardware, software, procedures, and

documentation needed for actual implementation.

2.4. Implementation and Installation Planning - The

objective of this activity is to create a project plan that

covers the next phases.

3. Detailed Design and Implementation Phase - This phase of the

systems development life cycle refines hardware and software

specifications, establishes programming plans, trains users and

implements extensive testing procedures, to evaluate design and

operating specifications and/or provide the basis for further

modification.

55 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

3.1. Technical Design - This activity builds upon

specifications produced during new system design, adding

detailed technical specifications and documentation.

3.2. Test Specifications and Planning - This activity prepares

detailed test specifications for individual modules and

programs, job streams, subsystems, and for the system as a

whole.

3.3. Programming and Testing - This activity encompasses

actual development, writing, and testing of program units

or modules.

3.4. User Training - This activity encompasses writing user

procedure manuals, preparation of user training materials,

conducting training programs, and testing procedures.

3.5. Acceptance Test - A final procedural review to

demonstrate a system and secure user approval before a

system becomes operational.


56 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

4. Installation Phase - In this phase the new Computerized

Transystem is installed, the conversion to new procedures is fully

implemented, and the potential of the new system is explored.

4.1. System Installation: The process of starting the

actual use of a system and training user personnel in its

operation.

5. Review Phase - This phase evaluates the successes and failures

during a systems development project, and to measure the results

of a new Computerized Transystem in terms of benefits and

savings projected at the start of the project.

5.1. Development Recap - A review of a project immediately

after completion to find successes and potential problems

in future work.

5.2. Post-Implementation Review - A review, conducted after

a new system has been in operation for some time, to

evaluate actual system performance against original

57 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

expectations and projections for cost-benefit

improvements. Also identifies maintenance projects to

enhance or improve the system.

58 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

DATA FLOW DIAGRAMS

59 | P a g e
1 LEVEL DFD (ADDMISSION)

INSTITUTE INFORMATION SYSTEM 201


0
DB
Req.
COURSE
Request
Addmission
Std
Request
Access
New Info.
For
Courses
Admission
Check
Check New
for
DBInformation
AdmissionCourses
DBof0’ LEVEL
Report
Registered
Detail DFD
STD DB
Student
Courses
Institute
Information system

Admition Report

ADM_REPORT
ADMITION
STUDENT
COURSE
REPORT
Std_per_C
Stude
Cour
C_I
NACOU_REP
E_mail
STD_REP
Per_Cou
Seme
Issue_Ne
STD_
STD_PH
STD_N
STD_A
COUR
ADM_REPORT
ourse
ME
ses
nts
D
ONE
AME
DD
SEID
ORT
_Std
w_Std
ster
ID
ORT

Elegibility

60 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

Sem_Fees

61 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

Data Structure

This Software includes the following Tables…

1. COURSE

2. STUDENT

Table 1: COURSE

Field Name Data type Description


Course_ID Text Primary Key
Course_Name Text Name of COURSE
Semester Text Call Duration
Sem_Fees Currency
Eligibility Text

62 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

Table 2: STUDENT

Field Name Data type


Std_id Number
Std_name Text
Course Text
Address Text
Phone_No Number
E_mail Text

63 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

64 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

import javax.swing.*;
import java.awt.*;

class F extends JFrame


{
private JFrame f;
private JLabel l1,l2,l3,l4,l5,l6,l7,l8,l9,l10,l;
private JPanel p1,p2,p3,p4,p5,p6,p7,p8,p9,p;
private JPasswordField j;
private T t;
private Container c;

public F()
{
l=new JLabel("Enter Project Password",JLabel.CENTER);
l1=new JLabel("INTEGRETED ACADEMY OF
MANAGEMENT AND TECHNOLOGY",JLabel.CENTER);
l1.setFont(new Font("Arial Black",Font.BOLD,20));
l1.setForeground(new Color(100,100,255));
l2=new JLabel(new ImageIcon("logo.jpg"));
l3=new JLabel("INSTITUTE INFORMATION
SYSTEM",JLabel.CENTER);
l3.setFont(new Font("Times New
Roman",Font.BOLD+Font.ITALIC,40));
l3.setForeground(new Color(255,100,100));
l4=new JLabel("Session : 2009-2010",JLabel.CENTER);
l4.setFont(new Font("Times New
Roman",Font.BOLD+Font.ITALIC,20));
l4.setForeground(new Color(000,000,000));

65 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

l5=new JLabel("Submitted By",JLabel.LEFT);


l5.setFont(new Font("Times New
Roman",Font.BOLD+Font.ITALIC,25));
l5.setForeground(new Color(000,000,255));
l6=new JLabel("Roll: 07-44",JLabel.LEFT);
l6.setFont(new Font("Times New
Roman",Font.BOLD+Font.ITALIC,20));
l6.setForeground(new Color(200,110,110));
l7=new JLabel("Name: SAURABH KUMAR SINGH
",JLabel.LEFT);
l7.setFont(new Font("Times New
Roman",Font.BOLD+Font.ITALIC,20));
l7.setForeground(new Color(200,100,110));
l8=new JLabel("Course: MCA (IV)",JLabel.LEFT);
l8.setFont(new Font("Times New
Roman",Font.BOLD+Font.ITALIC,20));
l8.setForeground(new Color(200,110,110));
l9=new JLabel("Project Guide",JLabel.CENTER);
l9.setFont(new Font("Times New
Roman",Font.BOLD+Font.ITALIC,25));
l9.setForeground(new Color(000,000,255));
l10=new JLabel("Mrs.BARKHA",JLabel.LEFT);
l10.setFont(new Font("Times New
Roman",Font.BOLD+Font.ITALIC,20));
l10.setForeground(new Color(200,110,110));

p=new JPanel();
p1=new JPanel();
p2=new JPanel();
p3=new JPanel();
p4=new JPanel();
p5=new JPanel();
p6=new JPanel();
p7=new JPanel();

66 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

p8=new JPanel();
p9=new JPanel();

j=new JPasswordField();

c=getContentPane();
t=new T();
t.start();
f=this;

}
public void addComponents()
{
p1.setLayout(new FlowLayout(FlowLayout.CENTER));
p2.setLayout(new FlowLayout(FlowLayout.RIGHT));
p3.setLayout(new BorderLayout());

p1.add(l1);
p2.add(l2);
p3.add(p1,BorderLayout.CENTER);
p3.add(p2,BorderLayout.EAST);
p4.setLayout(new FlowLayout(FlowLayout.CENTER));
p4.add(l3);

p5.setLayout(new FlowLayout(FlowLayout.CENTER));
p5.add(l4);

p6.setLayout(new GridLayout(4,1,5,5));
p6.add(l5);
p6.add(l6);
p6.add(l7);
p6.add(l8);

67 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

p7.setLayout(new GridLayout(2,1,5,5));
p7.add(l9);
p7.add(l10);

p8.setLayout(new BorderLayout());
p8.add(p6,BorderLayout.WEST);
p8.add(p7,BorderLayout.EAST);

p9.setLayout(new GridLayout(4,1));
p9.add(p3);
p9.add(p4);
p9.add(p5);
p9.add(p8);

c.setLayout(new BorderLayout());
c.add(p9,BorderLayout.CENTER);

}
public void display()
{

setTitle(" *** WELCOME TO MY


PROJECT *** ");

setLocation(200,200);
setSize(800,400);
setVisible(true);

}
class T extends Thread
{
public void run()

68 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

{
int x,y=0;
try{
sleep(5000);
}
catch(Exception e){}
p.setLayout(new GridLayout(2,1));
p.add(l);
p.add(j);
loop: while(y<3)
{

x=JOptionPane.showConfirmDialog(f,p,"Security",JOptionPane.OK_
CANCEL_OPTION,JOptionPane.QUESTION_MESSAGE);
if(x==JOptionPane.OK_OPTION)
{

if(String.valueOf(j.getPassword()).equals("saurabhsingh"))
{
mainmenu a=new mainmenu();
a.addMenu();
a.display();
break loop;
}
else
{

JOptionPane.showMessageDialog(f,"Wrong
Password","Error",JOptionPane.ERROR_MESSAGE);
}
}
else

69 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

{
System.exit(0);
}
y++;
j.setText("");
}
if(y==3)
System.exit(0);
else
setVisible(false);

}
}

}
class frontframe
{
public static void main(String []args)
{
F a=new F();
a.addComponents();
a.display();
}
}

70 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
class mainmenu extends JFrame implements ActionListener
{
private JMenuBar m;
private JMenu Course_Details,Student_Details,Report;
private JMenuItem c_n,c_m,c_d,c_e,s_a,s_d,r_ls,r_lc,r_lpc;
private JPanel p;
private JLabel l;

private Container c;

public mainmenu()
{
c=getContentPane();
m=new JMenuBar();

Course_Details=new JMenu("Course_Details");
Course_Details.setFont(new Font("Times New
Roman",Font.BOLD+Font.ITALIC,15));
Course_Details.setForeground(new Color(000,000,000));
Student_Details=new JMenu("Student_Details");
Student_Details.setFont(new Font("Times New
Roman",Font.BOLD+Font.ITALIC,15));
Student_Details.setForeground(new Color(000,000,000));
Report=new JMenu("Report");
71 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

Report.setFont(new Font("Times New


Roman",Font.BOLD+Font.ITALIC,15));
Report.setForeground(new Color(000,000,000));
p=new JPanel();
l=new JLabel(new ImageIcon("inmantech.jpg"));

c_n=new JMenuItem("New Course");


c_n.addActionListener(this);
c_m=new JMenuItem("Modify");
c_m.addActionListener(this);
c_d=new JMenuItem("Delete");
c_d.addActionListener(this);
c_e=new JMenuItem("Exit");
c_e.addActionListener(this);
s_a=new JMenuItem("New Admition");
s_a.addActionListener(this);
s_d=new JMenuItem("Delete");
s_d.addActionListener(this);
r_ls=new JMenuItem("List of Students");
r_ls.addActionListener(this);
r_lc=new JMenuItem("List of Courses");
r_lc.addActionListener(this);
r_lpc=new JMenuItem("List of Students per course");
r_lpc.addActionListener(this);
addComponents();

addWindowListener(new WindowAdapter(){
public void windowClosing(WindowEvent e){
System.exit(0);
}
});

72 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

public void addComponents()


{
p.setLayout(new FlowLayout(FlowLayout.CENTER));
p.add(l);
c.setLayout(new BorderLayout());
c.add(p,BorderLayout.CENTER);
}

public void addMenu()


{

Course_Details.add(c_n);
Course_Details.add(c_m);
Course_Details.add(c_d);
Course_Details.addSeparator();
Course_Details.add(c_e);

Student_Details.add(s_a);
Student_Details.add(s_d);

Report.add(r_ls);
Report.add(r_lc);
Report.add(r_lpc);

m.add(Course_Details);
m.add(Student_Details);
m.add(Report);

setJMenuBar(m);
}

public void display()

73 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

{
setTitle("MAIN MENU");
setLocation(150,150);
setSize(600,400);
setVisible(true);
}
public void actionPerformed(ActionEvent e)
{
if(e.getSource()==c_n)
{
courseform a=new courseform();
a.f=this;
a.addComponents();
a.Display();
setVisible(false);
}
else if(e.getSource()==c_m)
{
modifyform a=new modifyform();
a.f=this;
a.addComponents();
a.Display();
setVisible(false);
}
else if(e.getSource()==c_d)
{
deletedorm a=new deletedorm();
a.f=this;
a.addComponents();
a.Display();
setVisible(false);
}
else if(e.getSource()==s_a)
{

74 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

admitionform a=new admitionform();


a.f=this;
a.addComponents();
a.Display();
setVisible(false);
}
else if(e.getSource()==s_d)
{
addeleteform a=new addeleteform();
a.f=this;
a.addComponents();
a.Display();
setVisible(false);
}

else if(e.getSource()==r_lc)
{
reportlistcourse a=new reportlistcourse();
a.f=this;
a.addComponents();
a.Display();
setVisible(false);
}

else if(e.getSource()==r_ls)
{
reportliststudent a=new reportliststudent();
a.f=this;
a.addComponents();
a.Display();
setVisible(false);
}

else if(e.getSource()==r_lpc)

75 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

{
reportlistpercourse a=new reportlistpercourse();
a.f=this;
a.addComponents();
a.Display();
setVisible(false);
}

else if(e.getSource()==c_e)
{
System.exit(0);
}
}
}
class mymenu
{
public static void main(String []args)
{
mainmenu a=new mainmenu();
a.addMenu();
a.addComponents();
a.display();
}
}

76 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
import java.sql.*;
class courseform extends JFrame implements ActionListener
{
private Container c;

private Connection c1;


private ResultSet r,r1;
private Statement s;

private JLabel l1,l2,l3,l4,l5,l6;


private JTextField t1,t2,t3,t4,t5;
public JFrame f;
private JPanel
p1,p2,p3,p4,p5,p6,p7,p8,p9,p10,p11,p12,p13,p14,p15;
private JButton b1;

public courseform()
{
c=getContentPane();
c1=null;
l1=new
JLabel("NEW_COURSE_RECORDS",JLabel.CENTER);
l1.setFont(new Font("Arial Black",Font.BOLD,20));
l1.setForeground(new Color(000,100,100));

77 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

l2=new JLabel("Course_ID",JLabel.CENTER);
l2.setFont(new Font("Arial Black",Font.BOLD,15));
l2.setForeground(new Color(255,100,100));
l3=new JLabel("Course_Name",JLabel.CENTER);
l3.setFont(new Font("Arial Black",Font.BOLD,15));
l3.setForeground(new Color(255,100,100));
l4=new JLabel("Semester",JLabel.CENTER);
l4.setFont(new Font("Arial Black",Font.BOLD,15));
l4.setForeground(new Color(255,100,100));
l5=new JLabel("Sem_fees",JLabel.CENTER);
l5.setFont(new Font("Arial Black",Font.BOLD,15));
l5.setForeground(new Color(255,100,100));
l6=new JLabel("Elegibility",JLabel.CENTER);
l6.setFont(new Font("Arial Black",Font.BOLD,15));
l6.setForeground(new Color(255,100,100));

t1=new JTextField(10);
t2=new JTextField(20);
t3=new JTextField(10);
t4=new JTextField(10);
t5=new JTextField(20);

b1=new JButton("Submit");
b1.addActionListener(this);
p1=new JPanel();
p2=new JPanel();
p3=new JPanel();
p4=new JPanel();
p5=new JPanel();
p6=new JPanel();
p7=new JPanel();
p8=new JPanel();
p9=new JPanel();
p10=new JPanel();

78 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

p11=new JPanel();
p12=new JPanel();
p13=new JPanel();
p14=new JPanel();
p15=new JPanel();
addWindowListener(new WindowAdapter(){
public void windowClosing(WindowEvent e){
f.setVisible(true);
try{
c1.close();
}
catch(Exception e1){}
setVisible(false);
}
});
connect();
}
private void connect()
{
try{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");

c1=DriverManager.getConnection("jdbc:odbc:saurabh");
s=c1.createStatement();
}
catch(Exception e){
JOptionPane.showMessageDialog(null,"DataBase Error
\n"+e.getMessage(),"Error",JOptionPane.ERROR_MESSAGE);
}
}
public void addComponents()
{
p1.setLayout(new
FlowLayout(FlowLayout.CENTER));

79 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

p11.setLayout(new
FlowLayout(FlowLayout.CENTER));
p12.setLayout(new
FlowLayout(FlowLayout.CENTER));
p13.setLayout(new
FlowLayout(FlowLayout.CENTER));
p14.setLayout(new
FlowLayout(FlowLayout.CENTER));
p15.setLayout(new
FlowLayout(FlowLayout.CENTER));
p2.setLayout(new GridLayout(5,1));
p3.setLayout(new
FlowLayout(FlowLayout.LEFT));
p4.setLayout(new
FlowLayout(FlowLayout.LEFT));
p5.setLayout(new
FlowLayout(FlowLayout.LEFT));
p6.setLayout(new
FlowLayout(FlowLayout.LEFT));
p7.setLayout(new
FlowLayout(FlowLayout.LEFT));

p8.setLayout(new GridLayout(5,1));

p9.setLayout(new FlowLayout(FlowLayout.CENTER));

p1.add(l1);

p11.add(l2);

p12.add(l3);

p13.add(l4);

80 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

p14.add(l5);

p15.add(l6);

p2.add(p11);

p2.add(p12);

p2.add(p13);

p2.add(p14);

p2.add(p15);

p3.add(t1);

p4.add(t2);

p5.add(t3);

p6.add(t4);

p7.add(t5);

p8.add(p3);

p8.add(p4);

p8.add(p5);

p8.add(p6);

p8.add(p7);

81 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

p9.add(b1);

c.setLayout(new BorderLayout());
c.add(p1,BorderLayout.NORTH);
c.add(p2,BorderLayout.WEST);
c.add(p8,BorderLayout.CENTER);
c.add(p9,BorderLayout.SOUTH);

public void Display()


{
setTitle("COURSE_DETAILS");
setLocation(150,150);
setSize(600,400);
setVisible(true);
}
public void actionPerformed(ActionEvent e)
{
try{
s.executeUpdate("insert into Course
values('"+t1.getText()+"','"+t2.getText()+"','"+t3.getText()
+"',"+t4.getText()+",'"+t5.getText()+"')");
c1.commit();
f.setVisible(true);

c1.close();

setVisible(false);
}
catch(Exception e1){

82 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

JOptionPane.showMessageDialog(null,"Query Error
\n"+e1.getMessage(),"Error",JOptionPane.ERROR_MESSAGE);
}
}
}

import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
import java.sql.*;
class modifyform extends JFrame implements
ActionListener,ItemListener
{
private Container c;

private Connection c1;


private ResultSet r,r1;
private Statement s;

private JLabel l1,l2,l3,l4,l5,l6;


private JTextField t2,t3,t4,t5;
private JComboBox c2;
public JFrame f;
private JPanel

83 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

p1,p2,p3,p4,p5,p6,p7,p8,p9,p10,p11,p12,p13,p14,p15;
private JButton b1;
private boolean b;

public modifyform()
{
c=getContentPane();
l1=new
JLabel("MODIFY_COURSE_RECORDS",JLabel.CENTER);
l1.setFont(new Font("Arial Black",Font.BOLD,20));
l1.setForeground(new Color(000,100,100));
l2=new JLabel("Course_ID",JLabel.CENTER);
l2.setFont(new Font("Arial Black",Font.BOLD,15));
l2.setForeground(new Color(255,100,100));
l3=new JLabel("Course_Name",JLabel.CENTER);
l3.setFont(new Font("Arial Black",Font.BOLD,15));
l3.setForeground(new Color(255,100,100));
l4=new JLabel("Semester",JLabel.CENTER);
l4.setFont(new Font("Arial Black",Font.BOLD,15));
l4.setForeground(new Color(255,100,100));
l5=new JLabel("Sem_fees",JLabel.CENTER);
l5.setFont(new Font("Arial Black",Font.BOLD,15));
l5.setForeground(new Color(255,100,100));
l6=new JLabel("Elegibility",JLabel.CENTER);
l6.setFont(new Font("Arial Black",Font.BOLD,15));
l6.setForeground(new Color(255,100,100));

c2=new JComboBox();
c2.addItemListener(this);
t2=new JTextField(20);
t3=new JTextField(10);
t4=new JTextField(10);
t5=new JTextField(20);

84 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

b1=new JButton("Modify");
b1.addActionListener(this);

p1=new JPanel();
p2=new JPanel();
p3=new JPanel();
p4=new JPanel();
p5=new JPanel();
p6=new JPanel();
p7=new JPanel();
p8=new JPanel();
p9=new JPanel();
p10=new JPanel();
p11=new JPanel();
p12=new JPanel();
p13=new JPanel();
p14=new JPanel();
p15=new JPanel();
addWindowListener(new WindowAdapter(){
public void windowClosing(WindowEvent e){
f.setVisible(true);
try{
c1.close();
}
catch(Exception e1){}
setVisible(false);
}
});
connect();
b=false;
}
private void connect()
{
try{

85 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");

c1=DriverManager.getConnection("jdbc:odbc:saurabh");
s=c1.createStatement();
}
catch(Exception e){}
}

public void addComponents()


{
p1.setLayout(new
FlowLayout(FlowLayout.CENTER));
p11.setLayout(new
FlowLayout(FlowLayout.CENTER));
p12.setLayout(new
FlowLayout(FlowLayout.CENTER));
p13.setLayout(new
FlowLayout(FlowLayout.CENTER));
p14.setLayout(new
FlowLayout(FlowLayout.CENTER));
p15.setLayout(new
FlowLayout(FlowLayout.CENTER));
p2.setLayout(new GridLayout(5,1));
p3.setLayout(new
FlowLayout(FlowLayout.LEFT));
p4.setLayout(new
FlowLayout(FlowLayout.LEFT));
p5.setLayout(new
FlowLayout(FlowLayout.LEFT));
p6.setLayout(new
FlowLayout(FlowLayout.LEFT));
p7.setLayout(new
FlowLayout(FlowLayout.LEFT));

86 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

p8.setLayout(new GridLayout(5,1));

p9.setLayout(new FlowLayout(FlowLayout.CENTER));

p1.add(l1);

p11.add(l2);

p12.add(l3);

p13.add(l4);

p14.add(l5);

p15.add(l6);

p2.add(p11);

p2.add(p12);

p2.add(p13);

p2.add(p14);

p2.add(p15);
try{

r=s.executeQuery("select * from Course");

while(r.next())
{

87 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

c2.addItem(r.getString(1));
}

r.close();
}

catch(Exception e1){

JOptionPane.showMessageDialog(null,"Query Error
\n"+e1.getMessage(),"Error",JOptionPane.ERROR_MESSAGE);

p3.add(c2);

p4.add(t2);

p5.add(t3);

p6.add(t4);

p7.add(t5);

p8.add(p3);

p8.add(p4);

p8.add(p5);

p8.add(p6);

p8.add(p7);

88 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

p9.add(b1);

c.setLayout(new BorderLayout());
c.add(p1,BorderLayout.NORTH);
c.add(p2,BorderLayout.WEST);
c.add(p8,BorderLayout.CENTER);
c.add(p9,BorderLayout.SOUTH);

b=true;
}

public void Display()


{
setTitle("MODIFY_DETAILS");
setLocation(150,150);
setSize(600,400);
setVisible(true);
}
public void actionPerformed(ActionEvent e)
{
try{
s.executeUpdate("update Course set
Course_name='"+t2.getText()+"',semester='"+t3.getText()
+"',sem_fees="+t4.getText()+",eligibility='"+t5.getText()+"' where
Course_id='"+String.valueOf(c2.getSelectedItem()+"'"));
c1.commit();
f.setVisible(true);

c1.close();

setVisible(false);
}

89 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

catch(Exception e1)
{System.out.println(e1.getMessage());}
}
public void itemStateChanged(ItemEvent e)
{
if(b)
{

try{
r1=s.executeQuery("select * from Course where
Course_id='"+String.valueOf(c2.getSelectedItem())+"'");
r1.next();
t2.setText(r1.getString(2));
t3.setText(r1.getString(3));
t4.setText(r1.getString(4));
t5.setText(r1.getString(5));
r1.close();
}
catch(Exception e1){}
}
}

90 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
import java.sql.*;
class deletedorm extends JFrame implements
ActionListener,ItemListener
{
private Container c;

private Connection c1;


private ResultSet r,r1;
private Statement s;

private JLabel l1,l2,l3,l4,l5,l6;


private JTextField t2,t3,t4,t5;
private JComboBox c2;
public JFrame f;
private JPanel
p1,p2,p3,p4,p5,p6,p7,p8,p9,p10,p11,p12,p13,p14,p15;
private JButton b1;
private boolean b;

public deletedorm()
{
c=getContentPane();
l1=new
JLabel("DELETE_COURSE_RECORDS",JLabel.CENTER);
l1.setFont(new Font("Arial Black",Font.BOLD,20));

91 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

l1.setForeground(new Color(000,100,100));
l2=new JLabel("Course_ID",JLabel.CENTER);
l2.setFont(new Font("Arial Black",Font.BOLD,15));
l2.setForeground(new Color(255,100,100));
l3=new JLabel("Course_Name",JLabel.CENTER);
l3.setFont(new Font("Arial Black",Font.BOLD,15));
l3.setForeground(new Color(255,100,100));
l4=new JLabel("Semester",JLabel.CENTER);
l4.setFont(new Font("Arial Black",Font.BOLD,15));
l4.setForeground(new Color(255,100,100));
l5=new JLabel("Sem_fees",JLabel.CENTER);
l5.setFont(new Font("Arial Black",Font.BOLD,15));
l5.setForeground(new Color(255,100,100));
l6=new JLabel("Elegibility",JLabel.CENTER);
l6.setFont(new Font("Arial Black",Font.BOLD,15));
l6.setForeground(new Color(255,100,100));

c2=new JComboBox();
c2.addItemListener(this);
t2=new JTextField(20);
t3=new JTextField(10);
t4=new JTextField(10);
t5=new JTextField(20);

b1=new JButton("Delete");
b1.addActionListener(this);

p1=new JPanel();
p2=new JPanel();
p3=new JPanel();
p4=new JPanel();
p5=new JPanel();
p6=new JPanel();
p7=new JPanel();

92 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

p8=new JPanel();
p9=new JPanel();
p10=new JPanel();
p11=new JPanel();
p12=new JPanel();
p13=new JPanel();
p14=new JPanel();
p15=new JPanel();
addWindowListener(new WindowAdapter(){
public void windowClosing(WindowEvent e){
f.setVisible(true);
try{
c1.close();
}
catch(Exception e1){}
setVisible(false);
}
});
connect();
b=false;
}
private void connect()
{
try{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");

c1=DriverManager.getConnection("jdbc:odbc:saurabh");
s=c1.createStatement();
}
catch(Exception e){}
}

public void addComponents()

93 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

{
p1.setLayout(new
FlowLayout(FlowLayout.CENTER));
p11.setLayout(new
FlowLayout(FlowLayout.CENTER));
p12.setLayout(new
FlowLayout(FlowLayout.CENTER));
p13.setLayout(new
FlowLayout(FlowLayout.CENTER));
p14.setLayout(new
FlowLayout(FlowLayout.CENTER));
p15.setLayout(new
FlowLayout(FlowLayout.CENTER));
p2.setLayout(new GridLayout(5,1));
p3.setLayout(new
FlowLayout(FlowLayout.LEFT));
p4.setLayout(new
FlowLayout(FlowLayout.LEFT));
p5.setLayout(new
FlowLayout(FlowLayout.LEFT));
p6.setLayout(new
FlowLayout(FlowLayout.LEFT));
p7.setLayout(new
FlowLayout(FlowLayout.LEFT));

p8.setLayout(new GridLayout(5,1));

p9.setLayout(new FlowLayout(FlowLayout.CENTER));

p1.add(l1);

p11.add(l2);

94 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

p12.add(l3);

p13.add(l4);

p14.add(l5);

p15.add(l6);

p2.add(p11);

p2.add(p12);

p2.add(p13);

p2.add(p14);

p2.add(p15);
try{

r=s.executeQuery("select * from Course");

while(r.next())
{

c2.addItem(r.getString(1));
}

r.close();
}

catch(Exception e1){

95 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

JOptionPane.showMessageDialog(null,"Query Error
\n"+e1.getMessage(),"Error",JOptionPane.ERROR_MESSAGE);
}

p3.add(c2);

p4.add(t2);

p5.add(t3);

p6.add(t4);

p7.add(t5);

p8.add(p3);

p8.add(p4);

p8.add(p5);

p8.add(p6);

p8.add(p7);

p9.add(b1);

c.setLayout(new BorderLayout());
c.add(p1,BorderLayout.NORTH);
c.add(p2,BorderLayout.WEST);
c.add(p8,BorderLayout.CENTER);
c.add(p9,BorderLayout.SOUTH);

b=true;

96 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

public void Display()


{
setTitle("MODIFY_DETAILS");
setLocation(150,150);
setSize(600,400);
setVisible(true);
}
public void actionPerformed(ActionEvent e)
{
try{
s.executeUpdate("delete from Course where
Course_id='"+String.valueOf(c2.getSelectedItem()+"'"));
c1.commit();
f.setVisible(true);

c1.close();

setVisible(false);
}
catch(Exception e1)
{System.out.println(e1.getMessage());}
}
public void itemStateChanged(ItemEvent e)
{
if(b)
{

try{
r1=s.executeQuery("select * from Course where
Course_id='"+String.valueOf(c2.getSelectedItem())+"'");
r1.next();

97 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

t2.setText(r1.getString(2));
t3.setText(r1.getString(3));
t4.setText(r1.getString(4));
t5.setText(r1.getString(5));
r1.close();
}
catch(Exception e1){}
}
}

import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
import java.sql.*;
class admitionform extends JFrame implements ActionListener
{
private Container c;

private Connection c1;


private ResultSet r,r1;
private Statement s;

98 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

private JLabel l1,l2,l3,l4,l5,l6,l7;


private JComboBox c3;
private JTextField t1,t2,t4,t5,t6;
public JFrame f;
private JPanel
p1,p2,p3,p4,p5,p6,p7,p8,p9,p10,p11,p12,p13,p14,p15,p16;
private JButton b1;
private boolean b;

public admitionform()
{
c=getContentPane();
l1=new
JLabel("NEW_ADMITION_RECORD",JLabel.CENTER);
l1.setFont(new Font("Arial Black",Font.BOLD,20));
l1.setForeground(new Color(000,100,100));
l2=new JLabel("Stud_ID",JLabel.CENTER);
l2.setFont(new Font("Arial Black",Font.BOLD,15));
l2.setForeground(new Color(255,100,100));
l3=new JLabel("Stud_Name",JLabel.CENTER);
l3.setFont(new Font("Arial Black",Font.BOLD,15));
l3.setForeground(new Color(255,100,100));
l4=new JLabel("Course_ID",JLabel.CENTER);
l4.setFont(new Font("Arial Black",Font.BOLD,15));
l4.setForeground(new Color(255,100,100));
l5=new JLabel("Address",JLabel.CENTER);
l5.setFont(new Font("Arial Black",Font.BOLD,15));
l5.setForeground(new Color(255,100,100));
l6=new JLabel("Phone_No",JLabel.CENTER);
l6.setFont(new Font("Arial Black",Font.BOLD,15));
l6.setForeground(new Color(255,100,100));
l7=new JLabel("Email_ID",JLabel.CENTER);
l7.setFont(new Font("Arial Black",Font.BOLD,15));
l7.setForeground(new Color(255,100,100));

99 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

t1=new JTextField(10);
t2=new JTextField(20);
c3=new JComboBox();

t4=new JTextField(20);
t5=new JTextField(12);
t6=new JTextField(20);

b1=new JButton("Submit");
b1.addActionListener(this);

p1=new JPanel();
p2=new JPanel();
p3=new JPanel();
p4=new JPanel();
p5=new JPanel();
p6=new JPanel();
p7=new JPanel();
p8=new JPanel();
p9=new JPanel();
p10=new JPanel();
p11=new JPanel();
p12=new JPanel();
p13=new JPanel();
p14=new JPanel();
p15=new JPanel();
p16=new JPanel();
addWindowListener(new WindowAdapter(){
public void windowClosing(WindowEvent e){
f.setVisible(true);
try{
c1.close();
}

100 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

catch(Exception e1){}
setVisible(false);
}
});
connect();
b=false;
}
private void connect()
{
try{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");

c1=DriverManager.getConnection("jdbc:odbc:saurabh");
s=c1.createStatement();
}
catch(Exception e){

JOptionPane.showMessageDialog(null,"DataBase Error
\n"+e.getMessage(),"Error",JOptionPane.ERROR_MESSAGE);
}
}

public void addComponents()


{
p1.setLayout(new
FlowLayout(FlowLayout.CENTER));
p11.setLayout(new
FlowLayout(FlowLayout.CENTER));
p12.setLayout(new
FlowLayout(FlowLayout.CENTER));
p13.setLayout(new
FlowLayout(FlowLayout.CENTER));

101 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

p14.setLayout(new
FlowLayout(FlowLayout.CENTER));
p15.setLayout(new
FlowLayout(FlowLayout.CENTER));
p16.setLayout(new
FlowLayout(FlowLayout.CENTER));
p2.setLayout(new GridLayout(6,1));
p3.setLayout(new
FlowLayout(FlowLayout.LEFT));
p4.setLayout(new
FlowLayout(FlowLayout.LEFT));
p5.setLayout(new
FlowLayout(FlowLayout.LEFT));
p6.setLayout(new
FlowLayout(FlowLayout.LEFT));
p7.setLayout(new
FlowLayout(FlowLayout.LEFT));
p10.setLayout(new
FlowLayout(FlowLayout.LEFT));

p8.setLayout(new GridLayout(6,1));

p9.setLayout(new FlowLayout(FlowLayout.CENTER));

p1.add(l1);

p11.add(l2);

p12.add(l3);

p13.add(l4);

p14.add(l5);

102 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

p15.add(l6);

p16.add(l7);

p2.add(p11);

p2.add(p12);

p2.add(p13);

p2.add(p14);

p2.add(p15);

p2.add(p16);

p3.add(t1);

p4.add(t2);
try{

r=s.executeQuery("select * from Course");

while(r.next())
{

c3.addItem(r.getString(1));
}

r.close();
}

catch(Exception e1){

103 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

JOptionPane.showMessageDialog(null,"Query Error
\n"+e1.getMessage(),"Error",JOptionPane.ERROR_MESSAGE);
}

p5.add(c3);

p6.add(t4);

p7.add(t5);

p10.add(t6);

p8.add(p3);

p8.add(p4);

p8.add(p5);

p8.add(p6);

p8.add(p7);

p8.add(p10);

p9.add(b1);

c.setLayout(new BorderLayout());
c.add(p1,BorderLayout.NORTH);
c.add(p2,BorderLayout.WEST);
c.add(p8,BorderLayout.CENTER);
c.add(p9,BorderLayout.SOUTH);
b=true;

104 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

public void Display()


{
setTitle("NEW_STUDENTS_DETAILS");
setLocation(150,150);
setSize(600,400);
setVisible(true);
}

public void actionPerformed(ActionEvent e)


{
try{

s.executeUpdate("insert into Student values("+t1.getText()


+",'"+t2.getText()+"','"+String.valueOf(c3.getSelectedItem())
+"','"+t4.getText()+"','"+t5.getText()+"','"+t6.getText()+"')");
c1.commit();
f.setVisible(true);

c1.close();

setVisible(false);
}
catch(Exception e1){
JOptionPane.showMessageDialog(null,"Query Error
\n"+e1.getMessage(),"Error",JOptionPane.ERROR_MESSAGE);
}

}
}

105 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
import java.sql.*;
class addeleteform extends JFrame implements
ActionListener,ItemListener
{
private Container c;

private Connection c1;


private ResultSet r,r1;
private Statement s;

private JLabel l1,l2,l3,l4,l5,l6,l7;


private JComboBox c2;
private JTextField t2,t3,t4,t5,t6;
public JFrame f;
private JPanel
p1,p2,p3,p4,p5,p6,p7,p8,p9,p10,p11,p12,p13,p14,p15,p16;
private JButton b1;
private boolean b;

public addeleteform()
{
c=getContentPane();
l1=new
JLabel("DELETE_ADMITION_RECORD",JLabel.CENTER);
l1.setFont(new Font("Arial Black",Font.BOLD,20));

106 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

l1.setForeground(new Color(000,100,100));
l2=new JLabel("Stud_ID",JLabel.CENTER);
l2.setFont(new Font("Arial Black",Font.BOLD,15));
l2.setForeground(new Color(255,100,100));
l3=new JLabel("Stud_Name",JLabel.CENTER);
l3.setFont(new Font("Arial Black",Font.BOLD,15));
l3.setForeground(new Color(255,100,100));
l4=new JLabel("Course_ID",JLabel.CENTER);
l4.setFont(new Font("Arial Black",Font.BOLD,15));
l4.setForeground(new Color(255,100,100));
l5=new JLabel("Address",JLabel.CENTER);
l5.setFont(new Font("Arial Black",Font.BOLD,15));
l5.setForeground(new Color(255,100,100));
l6=new JLabel("Phone_No",JLabel.CENTER);
l6.setFont(new Font("Arial Black",Font.BOLD,15));
l6.setForeground(new Color(255,100,100));
l7=new JLabel("Email_ID",JLabel.CENTER);
l7.setFont(new Font("Arial Black",Font.BOLD,15));
l7.setForeground(new Color(255,100,100));

c2=new JComboBox();
c2.addItemListener(this);
t2=new JTextField(20);
t3=new JTextField(20);

t4=new JTextField(12);
t5=new JTextField(12);
t6=new JTextField(20);

b1=new JButton("Delete");
b1.addActionListener(this);

p1=new JPanel();
p2=new JPanel();

107 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

p3=new JPanel();
p4=new JPanel();
p5=new JPanel();
p6=new JPanel();
p7=new JPanel();
p8=new JPanel();
p9=new JPanel();
p10=new JPanel();
p11=new JPanel();
p12=new JPanel();
p13=new JPanel();
p14=new JPanel();
p15=new JPanel();
p16=new JPanel();
addWindowListener(new WindowAdapter(){
public void windowClosing(WindowEvent e){
f.setVisible(true);
try{
c1.close();
}
catch(Exception e1){}
setVisible(false);
}
});
connect();
b=false;
}
private void connect()
{
try{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");

c1=DriverManager.getConnection("jdbc:odbc:saurabh");
s=c1.createStatement();

108 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

}
catch(Exception e){}
}

public void addComponents()


{
p1.setLayout(new
FlowLayout(FlowLayout.CENTER));
p11.setLayout(new
FlowLayout(FlowLayout.CENTER));
p12.setLayout(new
FlowLayout(FlowLayout.CENTER));
p13.setLayout(new
FlowLayout(FlowLayout.CENTER));
p14.setLayout(new
FlowLayout(FlowLayout.CENTER));
p15.setLayout(new
FlowLayout(FlowLayout.CENTER));
p16.setLayout(new
FlowLayout(FlowLayout.CENTER));
p2.setLayout(new GridLayout(6,1));
p3.setLayout(new
FlowLayout(FlowLayout.LEFT));
p4.setLayout(new
FlowLayout(FlowLayout.LEFT));
p5.setLayout(new
FlowLayout(FlowLayout.LEFT));
p6.setLayout(new
FlowLayout(FlowLayout.LEFT));
p7.setLayout(new
FlowLayout(FlowLayout.LEFT));

109 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

p10.setLayout(new
FlowLayout(FlowLayout.LEFT));

p8.setLayout(new GridLayout(6,1));

p9.setLayout(new FlowLayout(FlowLayout.CENTER));

p1.add(l1);

p11.add(l2);

p12.add(l3);

p13.add(l4);

p14.add(l5);

p15.add(l6);

p16.add(l7);

p2.add(p11);

p2.add(p12);

p2.add(p13);

p2.add(p14);

p2.add(p15);

p2.add(p16);

110 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

p3.add(c2);

p4.add(t2);
try{

r=s.executeQuery("select * from student");

while(r.next())
{

c2.addItem(r.getString(1));
}

r.close();
}

catch(Exception e1){

JOptionPane.showMessageDialog(null,"Query Error
\n"+e1.getMessage(),"Error",JOptionPane.ERROR_MESSAGE);

p5.add(t3);

p6.add(t4);

p7.add(t5);

p10.add(t6);

p8.add(p3);

111 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

p8.add(p4);

p8.add(p5);

p8.add(p6);

p8.add(p7);

p8.add(p10);

p9.add(b1);

c.setLayout(new BorderLayout());
c.add(p1,BorderLayout.NORTH);
c.add(p2,BorderLayout.WEST);
c.add(p8,BorderLayout.CENTER);
c.add(p9,BorderLayout.SOUTH);
b=true;

public void Display()


{
setTitle("DELETE_STUDENTS_DETAILS");
setLocation(150,150);
setSize(600,400);
setVisible(true);
}

public void actionPerformed(ActionEvent e)


{
try{

112 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

s.executeUpdate("delete from student where


Stud_id="+String.valueOf(c2.getSelectedItem()));
c1.commit();
f.setVisible(true);

c1.close();

setVisible(false);
}
catch(Exception e1)
{System.out.println(e1.getMessage());}

public void itemStateChanged(ItemEvent e)


{
if(b)
{

try{
r1=s.executeQuery("select * from student where
Stud_id="+String.valueOf(c2.getSelectedItem()));
r1.next();
t2.setText(r1.getString(2));
t3.setText(r1.getString(3));
t4.setText(r1.getString(4));
t5.setText(r1.getString(5));
t6.setText(r1.getString(6));
r1.close();
}
catch(Exception e1){}
}

113 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
import java.sql.*;
class reportliststudent extends JFrame
{
private Connection c1;
private ResultSet r;
private Statement s;

private Container c;
public JFrame f;

private JTable t;
private JScrollPane j;
public reportliststudent()
{
c=getContentPane();
c1=null;
addWindowListener(new WindowAdapter(){
public void windowClosing(WindowEvent e){
f.setVisible(true);
try{
c1.close();

114 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

}
catch(Exception e1){}
setVisible(false);
}
});
connect();
}
private void connect()
{
try{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");

c1=DriverManager.getConnection("jdbc:odbc:Anand");
s=c1.createStatement();

}
catch(Exception e){
JOptionPane.showMessageDialog(null,"DataBase Error
\n"+e.getMessage(),"Error",JOptionPane.ERROR_MESSAGE);
}
}
public void addComponents()
{
String con[][]=null,head[];
int x;
head=new String[6];
head[0]="Student_ID";
head[1]="Student_Name";
head[2]="Course_ID";
head[3]="Address";
head[4]="Phone_no";
head[5]="Email_ID";

try{

115 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

r=s.executeQuery("select count(*) from student");


r.next();
x=Integer.parseInt(r.getString(1));
r.close();
con=new String[x][6];
r=s.executeQuery("select * from student");
x=0;
while(r.next())
{
for(int y=0;y<6;y++)
{
con[x][y]=r.getString(y+1);
}
x++;
}
r.close();
}
catch(Exception e1){
JOptionPane.showMessageDialog(null,"Query Error
\n"+e1.getMessage(),"Error",JOptionPane.ERROR_MESSAGE);}
t=new JTable(con,head);
j=new JScrollPane(t);
c.setLayout(new BorderLayout());
c.add(j,BorderLayout.CENTER);

}
public void Display()
{
setLocation(120,100);
setSize(800,400);
setTitle("List of Students");
setVisible(true);
}

116 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
import java.sql.*;
class reportlistcourse extends JFrame
{
private Connection c1;
private ResultSet r;
private Statement s;

private Container c;
public JFrame f;

private JTable t;
private JScrollPane j;
public reportlistcourse()
{
c=getContentPane();
c1=null;
addWindowListener(new WindowAdapter(){
public void windowClosing(WindowEvent e){
f.setVisible(true);
try{
c1.close();
}

117 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

catch(Exception e1){}
setVisible(false);
}
});
connect();
}
private void connect()
{
try{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");

c1=DriverManager.getConnection("jdbc:odbc:saurabh");
s=c1.createStatement();

}
catch(Exception e){
JOptionPane.showMessageDialog(null,"DataBase Error
\n"+e.getMessage(),"Error",JOptionPane.ERROR_MESSAGE);
}
}
public void addComponents()
{
String con[][]=null,head[];
int x;
head=new String[5];
head[0]="Course ID";
head[1]="Course Name";
head[2]="Semister";
head[3]="Fees";
head[4]="Eligibility";
try{
r=s.executeQuery("select count(*) from Course");
r.next();
x=Integer.parseInt(r.getString(1));

118 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

r.close();
con=new String[x][5];
r=s.executeQuery("select * from Course");
x=0;
while(r.next())
{
for(int y=0;y<5;y++)
{
con[x][y]=r.getString(y+1);
}
x++;
}
r.close();
}
catch(Exception e1){
JOptionPane.showMessageDialog(null,"Query Error
\n"+e1.getMessage(),"Error",JOptionPane.ERROR_MESSAGE);
}
t=new JTable(con,head);
j=new JScrollPane(t);
c.setLayout(new BorderLayout());
c.add(j,BorderLayout.CENTER);

}
public void Display()
{
setLocation(120,100);
setSize(700,400);
setTitle("List of Couse");
setVisible(true);
}

119 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
import java.sql.*;
class reportlistpercourse extends JFrame
{
private Connection c1;
private ResultSet r;
private Statement s;

private Container c;
public JFrame f;

private JPanel p;
private JComboBox c2;
private JLabel l;

private JTable t;
private JScrollPane j;
public reportlistpercourse()
{
c=getContentPane();
c1=null;
p=new JPanel();
l=new JLabel("Select Course : ",JLabel.LEFT);
c2=new JComboBox();

addWindowListener(new WindowAdapter(){

120 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

public void windowClosing(WindowEvent e){


f.setVisible(true);
try{
c1.close();
}
catch(Exception e1){}
setVisible(false);
}
});
connect();
try{
r=s.executeQuery("select * from course");
while(r.next())
{
c2.addItem(r.getString(1));
}
r.close();
}
catch(Exception e){

JOptionPane.showMessageDialog(null,"DataBase Error
\n"+e.getMessage(),"Error",JOptionPane.ERROR_MESSAGE);
}
}
private void connect()
{
try{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");

c1=DriverManager.getConnection("jdbc:odbc:saurabh");
s=c1.createStatement();

}
catch(Exception e){}

121 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

}
public void addComponents()
{
String con[][]=null,head[];
int x;
head=new String[6];
head[0]="Student_ID";
head[1]="Student_Name";
head[2]="Course_ID";
head[3]="Address";
head[4]="Phone_no";
head[5]="Email_ID";
p.setLayout(new FlowLayout(FlowLayout.CENTER));
p.add(l);
p.add(c2);
x=JOptionPane.showConfirmDialog(null,p,"User Input for
List",JOptionPane.OK_CANCEL_OPTION,JOptionPane.QUESTIO
N_MESSAGE);
/*if(x==OK_OPTION)
{
f.setVisible(true);
try{
c1.close();
}
catch(Exception e1){}
setVisible(false);
}*/

try{

r=s.executeQuery("select count(*) from student


where Course_ID='"+String.valueOf(c2.getSelectedItem())+"'");
r.next();
x=Integer.parseInt(r.getString(1));

122 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

r.close();
con=new String[x][6];
r=s.executeQuery("select * from student where
Course_ID='"+String.valueOf(c2.getSelectedItem())+"'");
x=0;
while(r.next())
{
for(int y=0;y<6;y++)
{
con[x][y]=r.getString(y+1);
}
x++;
}
r.close();
}
catch(Exception e1){
JOptionPane.showMessageDialog(null,"Query Error
\n"+e1.getMessage(),"Error",JOptionPane.ERROR_MESSAGE);
}
t=new JTable(con,head);
j=new JScrollPane(t);
c.setLayout(new BorderLayout());
c.add(j,BorderLayout.CENTER);

}
public void Display()
{
setLocation(120,100);
setSize(800,400);
setTitle("List of Students");
setVisible(true);
}

123 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

124 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

125 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

126 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

127 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

128 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

129 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

130 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

131 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

132 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

133 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

134 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

TESTING
Testing is the process in which the system is run on

manually created input so that the system is correctly working

as desired or not.

During systems testing, the system is used experimentally

to ensure that the software does not fail. In other words, we can

say that it will run according to its specifications and in the way

users expect. Special test data are input for processing, and

the results examined.

135 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

A limited number of users may be allowed to use the system

so that analyst can see whether they try to use it in unforeseen

ways. It is desirable to discover any surprises before the

organization implements the system and depends on it.

Testing of a system is generally done in two phases – One is

Unit Testing which is done for each module independently on

its completion and the other one is System Testing which is

done at the end of a project.

136 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

VALIDATION CRITERIA

The validation criteria in this project are as follows...

In the INSTITUTE INFORMATION SYSTEM also, the

user inputs are validated because that data is then further used

for displaying etc.

The main validations that are done in INSTIUTE

INFORMATION SYSTEM are as follows -

1) All the screens have a similar look and feel. They all have

the almost same color combinations in its background.

This provides a better user interface to the users.

2) The primary key values can not be duplicated. Also in the

salary module, if an employee has made payment in a

particular month then payment can’t be made for that

month. Similarily in fee module no student can submit fee

more than once in a particular month.

137 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

3) All the entries in any combo box have been sorted in

alphabetical order. This helps a user while selecting a

value from the combo box.

Thus, we have tried to make this system very secured and

reliable by putting a number of validation checks in it. The

future version of this software is supposed to have more

extended validations checks based on varied client needs.

138 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

IMPORTANCE OF TESTING

During systems testing, the system is used

experimentally to ensure that the software does not fail. In

other words, we can say that it will run according to its

specifications and in the way users expect. Special test data

are input for processing, and the results examined.

The importance of system testing is that the system is

expected to run according to customer’s requirement before

delivering it to the customer.

The System is tested on the basis of specification so that

it does not fail on user site.

139 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

SCOPE OF FUTURE APPLICATION

The scope of this project, INSTIUTE INFORMATION

SYSTEM is very wide. There are many additional features,

which are planned to be incorporated during the future

enhancements of this project.

To develop this project I had used two very convenient, reliable

and technical languages. These are Advance Blue Java and

MS Access. These languages are such developed so that they

could be used for a long time. This allows my software a long

time event.

Usually in INSTIUTE INFORMATION SYSTEM we had a

long list of students, teachers etc which are difficult to

maintained and update on papers therefore we require

software which help us to perform these function. With the help

of this software all the problems are sorted out. This

INSTIUTE INFORMATION SYSTEM project could be

140 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

used for any Convent SYSTEM where a long and complicated

list is required with a slight modification in it.

Thus, this project is developed with the maximum

flexibility provided for future prospects and enhancements.

141 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

CONCLUSION

In the end I wish to say that computers should be put to

such use where not only their capabilities are fully exploited

but, what is more important, serve the society by raising the

standard of living of people, thereby making the world better

place to live and work in.

These two months have taught me a lot. I sincerely feel

that compulsion to do a project as a part of PGDCA is very

much justified, for it is not only useful and helpful but also gives

a feeling of achievement and satisfaction to those who work

with full dedication and concentration on it.

142 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0

143 | P a g e

Das könnte Ihnen auch gefallen