Beruflich Dokumente
Kultur Dokumente
A PROJECT REPORT
SUBMITTED BY
of
MAY-2010
1|Page
INSTITUTE INFORMATION SYSTEM 201
0
Declaration
Signature :
Date :->22-04-2010
2|Page
INSTITUTE INFORMATION SYSTEM 201
0
FORWARDING PAGE
3|Page
INSTITUTE INFORMATION SYSTEM 201
0
Certificate
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
Place : Ghaziabad
Designation : Faculty
Date : 22-04-2010
4|Page
INSTITUTE INFORMATION SYSTEM 201
0
Acknowledgement
ROLL NO->07-44
5|Page
INSTITUTE INFORMATION SYSTEM 201
0
INTRODUCTION
6|Page
INSTITUTE INFORMATION SYSTEM 201
0
environment .
same.
7|Page
INSTITUTE INFORMATION SYSTEM 201
0
available
the
,semesterfees,elegebility,new_students,student_id,
automation.
10 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0
PROJECT CATEGORY
Relational Database Management System (RDBMS).
various queries
11 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0
Preliminary Investigation
Benefit to Organization: -
up-to-date information.
12 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0
Running Cost : -
Besides, the initial cost the long term cost will include
13 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0
tedious job.
banks & raw material and his required lot of paper work
15 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0
16 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0
Feasibility Study
infinite time.
17 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0
project.
Technical Feasibility : -
18 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0
Economicl Feasibility : -
Operational Feasibility : -
19 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0
20 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0
TOOLS/PLATFORM, LANGUAGE
a) Operating System
b) Front End
user’s friendly.
21 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0
1).Conducting Interviews.
2).Preparing Questioners.
22 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0
Information system.
24 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0
Developme
nt
Java SDK history and concepts
28 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0
29 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0
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
31 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0
32 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0
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.
36 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0
37 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0
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
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).
41 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0
data.
42 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0
LIMITATIONS
FLEXIBILITY
43 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0
MODEL
(SDLC)
analysis.
45 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0
concerned personnel.
IDENTIFICATION OF NEED
The Need
system.
resources.
46 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0
What to do with it
47 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0
SCOPE OF ENHANCEMENT
function.
48 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0
modification in it.
49 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0
ANALYSIS
50 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0
analysis.
current processes.
procedures.
51 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0
which can store and manage this large and complex data. There is
52 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0
METHODOLOGY
53 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0
system.
54 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0
perspective.
modification.
55 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0
whole.
or modules.
operation.
in future work.
57 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0
58 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0
59 | P a g e
1 LEVEL DFD (ADDMISSION)
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
1. COURSE
2. STUDENT
Table 1: COURSE
62 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0
Table 2: STUDENT
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.*;
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
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()
{
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
addWindowListener(new WindowAdapter(){
public void windowClosing(WindowEvent e){
System.exit(0);
}
});
72 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0
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);
}
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
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;
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);
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;
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){}
}
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{
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;
}
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;
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){}
}
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{
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
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;
98 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0
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);
}
}
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{
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
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;
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){}
}
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{
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;
112 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0
c1.close();
setVisible(false);
}
catch(Exception e1)
{System.out.println(e1.getMessage());}
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
}
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
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{
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
as desired or not.
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
135 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0
136 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0
VALIDATION CRITERIA
user inputs are validated because that data is then further used
1) All the screens have a similar look and feel. They all have
137 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0
138 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0
IMPORTANCE OF TESTING
139 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0
time event.
140 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0
141 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0
CONCLUSION
such use where not only their capabilities are fully exploited
much justified, for it is not only useful and helpful but also gives
142 | P a g e
INSTITUTE INFORMATION SYSTEM 201
0
143 | P a g e