Escolar Documentos
Profissional Documentos
Cultura Documentos
Informatics Practices
Practical File
Anurag Kumar
Class: XII Science
School: K V No 1 Bathinda Cantt
Session: 2010 - 2011
Roll No.:
Name Of Field
Variable Name
Font
Items
Search Criteria Application on Database employee
Text
Label 1
title
Tahoma18 bold
Label 2
search
Write Required
Query
Search Field
Label3
critLbl
Criteria
TextField1
critTF
ComboBox 1
srchFldCBX
Tahoma 14
bold
Tahoma 14
bold
Tahoma 14
bold
Tahoma 8
ComboBox2
opCBX
Tahoma 8
Empno,ename,job,
sal,deptno
=,<,>,!=
}
catch(Exception e){
JOptionPane.showMessageDialog(null,"Error in Connectivity");
}
dnameTF.setText("");
depnoTF.setText("");
locTF.setText("");
updBtn.setEnabled(false);
delBTN.setEnabled(false);
}
}
}
private void delBTNActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
int ans = JOptionPane.showConfirmDialog(null,"Surely wanna Update The Record");
if( ans == JOptionPane.YES_OPTION){
try{
stmt = con.createStatement();
String query = "Delete From dept where deptno ="+depnoTF.getText()+";";
stmt.executeUpdate(query);
JOptionPane.showMessageDialog(null,"Record Susscefully Deleted");
}
catch(Exception e){
JOptionPane.showMessageDialog(null,"Error in deletion!");
}
}
dnameTF.setText("");
depnoTF.setText("");
locTF.setText("");
updBtn.setEnabled(false);
delBTN.setEnabled(false);
}
Name Of Field
Variable Name
Label 1
Label 2
depnolbl
Depnamelbl
Label3
Loclbl
TextField1
depnoTF
TextField2
TextField3
Button 1
Button 2
Button 3
dnameTF
locTF
Loadbtn
updBtn
delBtn
Font
Items
Updating/Deleting Table
Tahoma14 bold
Tahoma 14
bold
Tahoma 14
bold
Tahoma 14
bold
Tahoma 8
Tahoma 8
Tahoma 12
Tahoma 12
Tahoma 12
Text
DeptNo
Dep-Name
Location
Load Btn
Update Record
Delete Record
Name Of Field
Label 1
Label 2
Label3
Button 1
Button 2
Label4
Variable Name
Font
Main Form
Border
Text
num1
num2
num4
spinBtn
endBtn
Title
Tahoma 20 bold
Tahoma 20bold
Tahoma 20 bold
Tahoma 20 bold
Tahoma 20 bold
Tahoma 24 Bold
0
0
0
Spin
End
Lucky Seven
Name Of Field
Button1
Button2
Button3
TextArea1
Variable Name
Font
Main Form
Border
Text
cutBtn
copyBtn
pasteBtn
Typearea
Tahoma 20 bold
Tahoma 20bold
Tahoma 20 bold
Tahoma 12
Cut
Copy
Paste
Name Of Field
Label1
Label2
Label3
Label4
Label5
Label6
Label7
Button1
Button2
Button3
Variable Name
Font
Main Form
Border
Text
Score
Football
teamA
teamB
Tagoals
Tbgoals
Resultlbl
Resbtn
tagoalsbtn
tagoalsbtn
Tahoma 20 bold
Tahoma 20bold
Tahoma 12 bold
Tahoma 12 bold
Tahoma 48 bold
Tahoma 48 bold
Tahoma 14 bold
Tahoma 14
Tahoma 14
Tahoma14
Metallic Border
Metallic Border
Metallic Border
-
ScoreBoard
FootBAll Match
Team A
Team B
0
0
Declare Result
Scored Goals
Scored Goals