Professional Documents
Culture Documents
INTRODUCTION
system, the questions are strict and set with care. Although the
discussed.
school or college
LITERATURE REVIEW
2.0 Introduction
examination
Employee Recruitment
Recruitment
2.1 The Need for Employee Recruitment Using Online
Examination
1. Cost Savings
shaking the hand. From this description, one can notice that
the e-element is absent. In this way, Cappelli (2001) highlights
very crucial.
takers can check the test solutions immediately after the test,
thus letting candidates know their mistakes and work to correct
them.
that people are familiar with (London, Sherry and London, Dan
and student area are the primary areas. These two primary
2005).
“To ensure successful application management for the applicant
Employee Recruitment
applicants.
3.0 Introduction
computed.
3.1.1 Method of operation
computing.
Characteristics
examination
Advantages
1. Exams could be monitored properly
2. Cost Savings
Disadvantages
examination
- Planning
- Analysis
- Evaluation
- Development
system.
does who where successful and does who were not form the
sample population.
proposed system
3.4.1 Java
Java is an object oriented programming language that
candidates.
a user name and password which they can use to log into the
information.
Last Name
First Name
Other Name
Qualification
Date Of Birth
State Of Origin
L.G.A Of Origin
Phone No.
Email Address
Cancel Save
3.8 Functionality of the system (use case diagram)
1. Software
2. Hardware
3. Data
4. Procedures
5. People
3.10 Findings
the need may also arise due to some highly placed persons
4.0 Introduction
environment.
MENU
requirements are;
- 512 MB RAM
- Keyboard
- Mouse
USED
The programming language chosen for the development
TEST RUN
with the new system. There are four different ways of replacing
the old system with the new system. The reasons for choosing
prevent data loss? What will the cost of the changeover be?
Problems with the new system can cause major problems for
implementation but the risks to the business are less than for
working parts e.g. sales, marketing, payroll etc. part of the old
system is replaced with the new one until the replaced part is
old system are used with extra staffs recruited to run the new
until the new system is working properly then the old one is
discarded.
sites then this is an option. One single site is chosen and the
old system is replaced with the new system in the same way as
direct changeover but only on one site, the rest of the business
continue to use the old system. Once the new system is shown
to work well in that one ‘pilot’ site then the new system can
5.0 Introduction
Time: The time given for the completion of the research work
was too short hence the researcher had speed up the research
research area and this limited the bulk of the literature review.
Finance: The high cost of textbooks, internet browsing and
5.2 Summary
5.3 Conclusion
5.4 Recommendations
employed.
for guidelines.
Kulik, T., & Perry, L. (2008). When less is more: The effect of
devolution on HR’s strategic Role and Donstrued Image,
Human Resource Management, 47(3), pp.541–558.
PROGRAM FLOWCHART
APPENDIX A
START
START
Main menu options:
Is option YES
RG
Registration?
NO
YES EX
Is option Exam?
NO
Is option YES
AD
Admin?
NO
NO RG
Is option Exit?
YES
Stop
YES Save record
Is option
to database
Submit?
NO
YES Cancel out existing
Is option entries
Cancel?
YES NO
Is option Close? EX
START
YES
Is password and
Start exams
exam Id correct?
YES
NO
Save scores to
database
Is option Close?
Stop
APPENDIX B
OBJECT CODE
APPENDIX C
SOURCE CODE
HTML CODE
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>Untitled 1</title>
<style type="text/css">
.auto-style1 {
background-color: #FFFFFF;
}
.auto-style2 {
background-color: #090908;
}
.auto-style3 {
background-color: #BEBEB9;
}
.auto-style4 {
margin-right: 0px;
background-color: #B79A8E;
}
.auto-style5 {
text-decoration: none;
}
.auto-style6 {
font-size: large;
}
.auto-style7 {
color: #FFFFFF;
}
.auto-style8 {
color: #FFFFFF;
font-size: xx-large;
}
.auto-style9 {
margin-top: 0px;
}
</style>
</head>
<body>
<p> </p>
<div id="layer1" class="auto-style1" style="position: absolute; width: 1345px;
height: 116px; z-index: 1; left: 0px; top: -7px">
</div>
<div id="layer2" class="auto-style2" style="position: absolute; width: 1344px;
height: 48px; z-index: 2; left: 0px; top: 105px">
</div>
<div id="layer3" class="auto-style3" style="position: absolute; width: 1346px;
height: 334px; z-index: 3; left: -2px; top: 149px">
</div>
</body>
</html>
JAVA CODE
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* qdb.java
*
* Created on 16-Aug-2014, 09:25:31
*/
package dbase;
import java.awt.Window;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.sql.Statement;
import java.sql.ResultSet;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.table.DefaultTableModel;
import javax.swing.table.TableRowSorter;
/**
*
* @author Ukana
*/
public class qdb extends javax.swing.JFrame {
Connection con;
Statement stmt;
ResultSetrs;
intcurRow = 0;
a1.setText(ea1);
a2.setText(ea2);
a3.setText(ea3);
a4.setText(ea4);
a5.setText(ea5);
a6.setText(ea6);
a7.setText(ea7);
a8.setText(ea8);
a9.setText(ea9);
a10.setText(ea10);
//rs.insertRow( );
stmt.close( );
rs.close( );
con.close();
} catch (SQLException ex) {
System.out.println("Connect failed ! ");
}
////option b ==========================================
try {
Connection con = DriverManager.getConnection(connectionURL);
stmt = con.createStatement( ResultSet.TYPE_SCROLL_INSENSITIVE,
ResultSet.CONCUR_UPDATABLE );
String SQL = "SELECT b1, b2, b3, b4, b5, b6, b7, b8, b9, b10 FROM optionb";
rs = stmt.executeQuery( SQL );
//rs.next( );
rs.first( );
String eb1 = rs.getString("b1");
String eb2 = rs.getString("b2");
String eb3 = rs.getString("b3");
String eb4 = rs.getString("b4");
String eb5 = rs.getString("b5");
String eb6 = rs.getString("b6");
String eb7 = rs.getString("b7");
String eb8 = rs.getString("b8");
String eb9 = rs.getString("b9");
String eb10 = rs.getString("b10");
b1.setText(eb1);
b2.setText(eb2);
b3.setText(eb3);
b4.setText(eb4);
b5.setText(eb5);
b6.setText(eb6);
b7.setText(eb7);
b8.setText(eb8);
b9.setText(eb9);
b10.setText(eb10);
//rs.insertRow( );
stmt.close( );
rs.close( );
con.close();
} catch (SQLException ex) {
System.out.println("Connect failed ! ");
}
//////option c
====================================================
try {
Connection con = DriverManager.getConnection(connectionURL);
stmt = con.createStatement( ResultSet.TYPE_SCROLL_INSENSITIVE,
ResultSet.CONCUR_UPDATABLE );
String SQL = "SELECT c1, c2, c3, c4, c5, c6, c7, c8, c9, c10 FROM optionc";
rs = stmt.executeQuery( SQL );
//rs.next( );
rs.first( );
c1.setText(ec1);
c2.setText(ec2);
c3.setText(ec3);
c4.setText(ec4);
c5.setText(ec5);
c6.setText(ec6);
c7.setText(ec7);
c8.setText(ec8);
c9.setText(ec9);
c10.setText(ec10);
//rs.insertRow( );
stmt.close( );
rs.close( );
con.close();
} catch (SQLException ex) {
System.out.println("Connect failed ! ");
}
}
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
addWindowListener(new java.awt.event.WindowAdapter() {
public void windowActivated(java.awt.event.WindowEventevt) {
formWindowActivated(evt);
}
});
jPanel1.setBorder(javax.swing.BorderFactory.createLineBorder(new
java.awt.Color(-16777216,true), 6));
jLabel18.setText("b.");
jLabel19.setText("a.");
jLabel20.setText("c.");
jLabel21.setText("b.");
jLabel22.setText("a.");
jLabel23.setText("c.");
jLabel24.setText("b.");
jLabel25.setText("a.");
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADI
NG)
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(15, 15, 15)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignm
ent.TRAILING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignm
ent.LEADING)
.addComponent(jLabel1)
.addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 26,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 26,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 26,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 26,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18))
.addGroup(jPanel1Layout.createSequentialGroup()
.addComponent(jLabel13, javax.swing.GroupLayout.PREFERRED_SIZE, 19,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(8, 8, 8))
.addGroup(jPanel1Layout.createSequentialGroup()
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignm
ent.TRAILING)
.addComponent(jLabel19, javax.swing.GroupLayout.PREFERRED_SIZE, 18,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel14, javax.swing.GroupLayout.PREFERRED_SIZE, 18,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel22, javax.swing.GroupLayout.PREFERRED_SIZE, 18,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel25, javax.swing.GroupLayout.PREFERRED_SIZE, 18,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)))
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignm
ent.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addComponent(a1, javax.swing.GroupLayout.PREFERRED_SIZE, 113,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(26, 26, 26)
.addComponent(jLabel11)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED
)
.addComponent(b1, javax.swing.GroupLayout.PREFERRED_SIZE, 127,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 33,
Short.MAX_VALUE)
.addComponent(jLabel12)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED
)
.addComponent(c1, javax.swing.GroupLayout.PREFERRED_SIZE, 130,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addComponent(q1, javax.swing.GroupLayout.DEFAULT_SIZE, 468,
Short.MAX_VALUE)
.addComponent(q2, javax.swing.GroupLayout.Alignment.TRAILING,
javax.swing.GroupLayout.DEFAULT_SIZE, 468, Short.MAX_VALUE)
.addComponent(q3, javax.swing.GroupLayout.Alignment.TRAILING,
javax.swing.GroupLayout.DEFAULT_SIZE, 468, Short.MAX_VALUE)
.addComponent(q4, javax.swing.GroupLayout.Alignment.TRAILING,
javax.swing.GroupLayout.DEFAULT_SIZE, 468, Short.MAX_VALUE)
.addComponent(q5, javax.swing.GroupLayout.Alignment.TRAILING,
javax.swing.GroupLayout.DEFAULT_SIZE, 468, Short.MAX_VALUE)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
jPanel1Layout.createSequentialGroup()
.addGap(33, 33, 33)
.addComponent(jLabel17)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED
)
,
);
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADI
NG)
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(20, 20, 20)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignm
ent.BASELINE)
.addComponent(q1, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel1))
.addGap(26, 26, 26)
SIZE)
.addComponent(jLabel13)
.addComponent(jLabel11)
.addComponent(jLabel12))
.addGap(32, 32, 32)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignm
ent.BASELINE)
.addComponent(q2, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel3))
.addGap(28, 28, 28)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignm
ent.BASELINE)
.addComponent(c2, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(a2, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(b2, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel16)
.addComponent(jLabel14)
.addComponent(jLabel15))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 32,
Short.MAX_VALUE)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignm
ent.BASELINE)
.addComponent(q3, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel2))
.addGap(35, 35, 35)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignm
ent.BASELINE)
.addComponent(c3, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(a3, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(b3, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel17)
.addComponent(jLabel18)
.addComponent(jLabel19))
.addGap(30, 30, 30)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignm
ent.BASELINE)
.addComponent(q4, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel4))
.addGap(38, 38, 38)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignm
ent.BASELINE)
.addComponent(c4, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(a4, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(b4, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel20)
.addComponent(jLabel21)
.addComponent(jLabel22))
.addGap(38, 38, 38)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignm
ent.BASELINE)
.addComponent(q5, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel5))
.addGap(32, 32, 32)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignm
ent.BASELINE)
.addComponent(c5, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(a5, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(b5, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel23)
.addComponent(jLabel24)
.addComponent(jLabel25))
.addGap(45, 45, 45))
);
jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new
java.awt.Color(-16777216,true), 6));
jLabel6.setText("6. ");
jLabel7.setText("7.");
jLabel8.setText("8.");
jLabel9.setText("9.");
jLabel10.setText("10.");
jLabel26.setText("a.");
jLabel27.setText("c.");
jLabel28.setText("b.");
jLabel29.setText("b.");
jLabel30.setText("b.");
jLabel31.setText("b.");
jLabel32.setText("b.");
jLabel33.setText("c.");
jLabel34.setText("c.");
jLabel35.setText("c.");
jLabel36.setText("c.");
jLabel37.setText("a.");
jLabel38.setText("a.");
jLabel39.setText("a.");
jLabel40.setText("a.");
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADI
NG)
.addGroup(jPanel2Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignm
ent.TRAILING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 26,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(12, 12, 12))
.addGroup(jPanel2Layout.createSequentialGroup()
.addComponent(jLabel6)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED))
.addGroup(jPanel2Layout.createSequentialGroup()
.addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 26,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED
))
.addGroup(jPanel2Layout.createSequentialGroup()
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignm
ent.TRAILING)
.addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 26,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 26,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel38)
.addComponent(jLabel39)
.addComponent(jLabel40))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED
))
.addGroup(jPanel2Layout.createSequentialGroup()
.addComponent(jLabel26)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED
))
.addGroup(jPanel2Layout.createSequentialGroup()
.addComponent(jLabel37)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED
)))
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignm
ent.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addComponent(a10, javax.swing.GroupLayout.PREFERRED_SIZE, 113,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(28, 28, 28)
.addComponent(jLabel32)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED
)
.addComponent(b10, javax.swing.GroupLayout.PREFERRED_SIZE, 127,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(32, 32, 32)
.addComponent(jLabel33)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED
)
.addComponent(c10, javax.swing.GroupLayout.DEFAULT_SIZE, 148,
Short.MAX_VALUE))
.addGroup(jPanel2Layout.createSequentialGroup()
.addComponent(a6, javax.swing.GroupLayout.PREFERRED_SIZE, 113,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(29, 29, 29)
.addComponent(jLabel28)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED
)
.addComponent(b6, javax.swing.GroupLayout.PREFERRED_SIZE, 127,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(33, 33, 33)
.addComponent(jLabel27)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED
)
.addComponent(c6, javax.swing.GroupLayout.DEFAULT_SIZE, 146,
Short.MAX_VALUE))
.addComponent(q6, javax.swing.GroupLayout.Alignment.TRAILING,
javax.swing.GroupLayout.DEFAULT_SIZE, 487, Short.MAX_VALUE)
.addComponent(q7, javax.swing.GroupLayout.Alignment.TRAILING,
javax.swing.GroupLayout.DEFAULT_SIZE, 487, Short.MAX_VALUE)
.addComponent(q8, javax.swing.GroupLayout.Alignment.TRAILING,
javax.swing.GroupLayout.DEFAULT_SIZE, 487, Short.MAX_VALUE)
.addComponent(q9, javax.swing.GroupLayout.Alignment.TRAILING,
javax.swing.GroupLayout.DEFAULT_SIZE, 487, Short.MAX_VALUE)
.addComponent(q10, javax.swing.GroupLayout.Alignment.TRAILING,
javax.swing.GroupLayout.DEFAULT_SIZE, 487, Short.MAX_VALUE)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
jPanel2Layout.createSequentialGroup()
.addComponent(a9, javax.swing.GroupLayout.PREFERRED_SIZE, 113,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(28, 28, 28)
.addComponent(jLabel31)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED
)
.addComponent(b9, javax.swing.GroupLayout.PREFERRED_SIZE, 127,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(33, 33, 33)
.addComponent(jLabel34)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED
)
.addComponent(c9, javax.swing.GroupLayout.DEFAULT_SIZE, 147,
Short.MAX_VALUE))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
jPanel2Layout.createSequentialGroup()
.addComponent(a8, javax.swing.GroupLayout.PREFERRED_SIZE, 113,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(30, 30, 30)
.addComponent(jLabel30)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED
)
.addComponent(b8, javax.swing.GroupLayout.PREFERRED_SIZE, 125,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(33, 33, 33)
.addComponent(jLabel35)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED
)
.addComponent(c8, javax.swing.GroupLayout.DEFAULT_SIZE, 147,
Short.MAX_VALUE))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
jPanel2Layout.createSequentialGroup()
.addComponent(a7, javax.swing.GroupLayout.PREFERRED_SIZE, 113,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(28, 28, 28)
.addComponent(jLabel29)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED
)
.addComponent(b7, javax.swing.GroupLayout.PREFERRED_SIZE, 127,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(33, 33, 33)
.addComponent(jLabel36)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED
)
.addComponent(c7, javax.swing.GroupLayout.DEFAULT_SIZE, 147,
Short.MAX_VALUE)))
.addContainerGap())
);
jPanel2Layout.setVerticalGroup(
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADI
NG)
.addGroup(jPanel2Layout.createSequentialGroup()
.addGap(20, 20, 20)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignm
ent.BASELINE)
.addComponent(q6, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel6))
.addGap(26, 26, 26)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignm
ent.BASELINE)
.addComponent(c6, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(a6, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(b6, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel26, javax.swing.GroupLayout.PREFERRED_SIZE, 19,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel27)
.addComponent(jLabel28))
.addGap(32, 32, 32)
.addComponent(q7, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(27, 27, 27)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignm
ent.BASELINE)
.addComponent(c7, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(a7, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(b7, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel29)
.addComponent(jLabel36)
.addComponent(jLabel37, javax.swing.GroupLayout.PREFERRED_SIZE, 19,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 33,
Short.MAX_VALUE)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignm
ent.BASELINE)
.addComponent(q8, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel8))
.addGap(33, 33, 33)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignm
ent.BASELINE)
.addComponent(c8, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(a8, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(b8, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel30)
.addComponent(jLabel35)
.addComponent(jLabel38, javax.swing.GroupLayout.PREFERRED_SIZE, 19,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(32, 32, 32)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignm
ent.BASELINE)
.addComponent(q9, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel9))
.addGap(34, 34, 34)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignm
ent.BASELINE)
.addComponent(c9, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(a9, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(b9, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel31)
.addComponent(jLabel34)
.addComponent(jLabel39, javax.swing.GroupLayout.PREFERRED_SIZE, 19,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addComponent(jButton8)))
.addContainerGap(16, Short.MAX_VALUE))
);
java.awt.DimensionscreenSize =
java.awt.Toolkit.getDefaultToolkit().getScreenSize();
setBounds((screenSize.width-1225)/2, (screenSize.height-663)/2, 1225, 663);
}// </editor-fold>
new resultdb().setVisible(true);
private void jButton1ActionPerformed(java.awt.event.ActionEventevt) {
JOptionPane.showMessageDialog(qdb.this, "Saved");
}
catch (SQLException err) {
System.out.println(err.getMessage() );
}
//queations
================================================
try {
Connection con = DriverManager.getConnection(connectionURL);
stmt = con.createStatement( ResultSet.TYPE_SCROLL_INSENSITIVE,
ResultSet.CONCUR_UPDATABLE );
String SQL = "SELECT q1, q2, q3, q4, q5, q6, q7, q8, q9, q10 FROM questions";
rs = stmt.executeQuery( SQL );
//rs.next( );
rs.updateString("q1", qq1);
rs.updateString("q2", qq2);
rs.updateString("q3", qq3);
rs.updateString("q4", qq4);
rs.updateString("q5", qq5);
rs.updateString("q6", qq6);
rs.updateString("q7", qq7);
rs.updateString("q8", qq8);
rs.updateString("q9", qq9);
rs.updateString("q10", qq10);
rs.updateRow( );
stmt.close();
rs.close();
//con.close();
//JOptionPane.showMessageDialog(qdb.this, "Updated");
}
catch (SQLException err) {
System.out.println(err.getMessage() );
}
// OPTION A
================================================
try {
Connection con = DriverManager.getConnection(connectionURL);
stmt = con.createStatement( ResultSet.TYPE_SCROLL_INSENSITIVE,
ResultSet.CONCUR_UPDATABLE );
String SQL = "SELECT a1, a2, a3, a4, a5, a6, a7, a8, a9, a10 FROM optiona";
rs = stmt.executeQuery( SQL );
//rs.next( );
//OPTION C
=========================================
try {
Connection con = DriverManager.getConnection(connectionURL);
stmt = con.createStatement( ResultSet.TYPE_SCROLL_INSENSITIVE,
ResultSet.CONCUR_UPDATABLE );
String SQL = "SELECT c1, c2, c3, c4, c5, c6, c7, c8, c9, c10 FROM optionc";
rs = stmt.executeQuery( SQL );
//rs.next( );
rs.updateString("c1", cc1);
rs.updateString("c2", cc2);
rs.updateString("c3", cc3);
rs.updateString("c4", cc4);
rs.updateString("c5", cc5);
rs.updateString("c6", cc6);
rs.updateString("c7", cc7);
rs.updateString("c8", cc8);
rs.updateString("c9", cc9);
rs.updateString("c10", cc10);
rs.updateRow( );
stmt.close();
rs.close();
//con.close();
JOptionPane.showMessageDialog(qdb.this, "Updated");
}
catch (SQLException err) {
System.out.println(err.getMessage() );
}
try {
//stmt.close();
//rs.close();
Connection con = DriverManager.getConnection(connectionURL);
stmt = con.createStatement( ResultSet.TYPE_SCROLL_INSENSITIVE,
ResultSet.CONCUR_UPDATABLE );
String SQL = "SELECT name, address, phone_no, email, quali, gender,
dob, password, exam_id FROM rct1";
rs = stmt.executeQuery( SQL );
DefaultTableModel model = new DefaultTableModel();
model.addColumn("NAME");
model.addColumn("ADDRESS");
model.addColumn("PHONE_NO");
model.addColumn("EMAIL");
model.addColumn("QUALIFICATION");
model.addColumn("GENDER");
model.addColumn("DOB");
model.addColumn("PASSWORD");
model.addColumn("EXAM_ID");
while ( rs.next( ) ) {
model.addRow(new Object[] { ename, eaddress, ephone, eemail, equali, egender,
edob, epword, eexam });
}
JFrame f = new JFrame();
f.setSize(1200, 300);
f.add(new JScrollPane(table));
f.setVisible(true);
//Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();
f.setLocationRelativeTo(null);
//f.setLocation(dim.width/2 - f.getSize().width/2, dim.height/2 -
f.getSize().height);
try {
if (! table.print()) {
System.err.println("User cancelled printing");
}
} catch (java.awt.print.PrinterException e) {
System.err.format("Cannot print %s%n", e.getMessage());
}
//else {
//rs.previous( );
//JOptionPane.showMessageDialog(dbform.this, "End of File");
//}
}
catch (SQLException err) {
JOptionPane.showMessageDialog(qdb.this, err.getMessage());
}
}