Employee Management System: Project Report ON
Employee Management System: Project Report ON
ON 
EMPLOYEE MANAGEMENT  SYSTEM
In
 JAVA
In partial fulfillment of the prescribed course for
The Award of 
BACHELOR OF TECHNOLOGY
IN
INFORMATION TECHNOLOGY ENGINEERING
Of
Name of university
Submitted by:                                                                          
    
1
NIIT
CERTIFICATE
This to certify that this report titled Eployee Ma!a"ee!t #yste e$odies the 
ori"i!al %or& do!e $y NAME OF #T'(ENT i! partial f)lfille!t of his co)rse 
re*)iree!t At NIIT
Coordi!ator
NAME
 
+
ACKNOWLEDGEMENT
I epress my !ratitude to Ms" Charu Mali# for her help$ %uidance throu%hout the wor# for this 
pro&ect without which I would not have been able to complete this pro&ect to such a success"
I would also li#e to than# my class mates who helped me directly or indirectly in accomplishin% 
this wor#
Finally I would also li#e to than# other faculty members who provided me with Moral support 
durin% the course of this pro&ect"
AN'() !O*A+
,
ABSTRACT
Employee Management Sytem  is a distributed application$ developed to maintain the details
of   employees   wor#in%  in  any  or%ani,ation"   It   maintains   the  information  about   the  personal
details of their employees$ also the details about the payroll system which enable to %enerate the
payslip" The application is actually a suite of applications developed usin% -ava"
It   is  simple  to  understand  and  can  be  used  by  anyone  who  is  not   even  familiar  with  simple
employees system" It is user friendly and &ust as#s the user to follow step by step operations by
%ivin% him few options" It is fast and can perform many operations of a company"
This software pac#a%e has been developed usin% the powerful codin% tools of -A.A at Front End
and Microsoft '/l 'erver at 0ac# End"The software is very user friendly"  The pac#a%e contains
different modules li#e Employee details" This version of the software has multi1user approach"
For further enhancement or development of the pac#a%e$ user2s feedbac# will be considered"
-
List of Symbol
 Emp 3 Employee
 EM' 3 Employee Mana%ement 'ystem
 !)I1 !raphical )ser Interface
 -d# 3 -ava 4evelopment 5it
 'R'1 'oftware Re/uirement Analysis
.
CONTENTS                                            
6"INTRO4)CTION
7"O0-ECTI.E'  AN4 'CO8E
9"'*'TEM '8ECIFICATION
a" Re/uirement Analysis
b" 'R'
c" (ardware and 'oftware Re/uirements
:"TOO+' $ 8+ATFORM AN4 +AN!)A!E )'E4
;"'*'TEM 4E'I!N 
a" 4ata Flow 4ia%rams
b" 4esi%n 8hase
c" Form +ayouts
<"  CO4IN!
="  TE'TIN!
>" IM8+EMENTATION$ E.A+)ATION AN4 MAINTENANCE
?" CONC+)'ION
6@" 0I0+IO!RA8(*
/
INTRODUCTION TO THE PROJECT
Employee Mana%ement system is an application that enables users to create and store Employee 
Records" The application also provides facilities of a payroll system which enables user to 
%enerate 8ay slips too" This application is helpful to department of the or%ani,ation which 
maintains data of employees related to an or%ani,ation "
-ava is a platform independent lan%ua%e" Its created applications can be used on a standalone 
machine as well as on distributed networ#" More over applications developed in &ava can be 
etended to Internet based applications"
Thus &ava was chosen as bac#%round to desi%n this application0
1
OBJECTIVE OF THE PROJECT
In this world of %rowin% technolo%ies everythin% has been computeri,ed" Aith lar%e number of 
wor# opportunities the (uman wor#force has increased" Thus there is a need of a system which 
can handle the data of such a lar%e number of Employees in an or%ani,ation" This pro&ect 
simplifies the tas# of maintain records because of its user friendly nature"
2
SYSTEM SPECIFICATIONS
'oftware  En%ineers   have  been  tryin%  various   tools$   methods   and  procedures   to  control   the
process of software development in order to build hi%h /uality software with hi%h productivity"
This method provides Bhow it isC for buildin% the software while the tools provide automated or
semi automated support for the methods" They are used in all sta%es of software development
process$   namely$   plannin%$   analysis$   desi%n$   development   and   maintenance"   The   software
development procedure inte%rates the methods and tools to%ether and enables rational and timely
development of the software system"
T!ey p"o#ide t!e guideline a !o$ to apply t!ee met!od and tool% !o$ to 
p"odu&e t!e deli#e"able at ea&! tage% $!at &ont"ol to apply% and $!at 
miletone to ue to ae t!e pe"'o"man&e o' t!e p"og"am( T!e"e e)it a 
numbe" o' o't$a"e de#elopment pa"adigm ea&! uing a di''e"ent et o' 
met!od and tool( T!e ele&tion o' a pa"ti&ula" pa"adigm depend on t!e 
natu"e o' appli&ation o' t!e p"og"amming language ued 'o" t!e &ont"ol and 
t!e deli#e"able "e*ui"ed( T!e de#elopment o' u&! u&&e'ul ytem 
depend not only on t!e ue o' app"op"iate met!od and te&!ni*ue but alo 
t!e de#elope"+ &ommitment to t!e ob,e&ti#e o' t!e ytem(
3
So't$a"e De#elopment
-"o&edu"e
Met!od
Tool
A successful system mustD 1
6" 'atisfy the user re/uirements
7" 0e easy to understand by user and operator
9" 0e easy to operate
:" (ave a %ood user interface
;" 0e easy to modify
<" 0e epandable
=" (ave ade/uate security control a%ainst the misuse of data
>" (andle the errors and eceptions satisfactorily
?" 0e delivered on schedule within the bud%et
14
SOFTARE LIFE CYCLE MODEL
            The series of sta%es depictin% the various tas#s involved in development process is called
'oftware +ife Cycle Model" The model implemented by us is  Aaterfall Model$ which is most
widely used in procedure1oriented development" This model attempts to brea# up the identifiable
activities into series of actions$ each of which must be completed before the net be%ins" The
activities include problem definition$ re/uirement analysis$ desi%n$ codin%$ testin%$ maintenance"
Further refinements to this model include iteration bac# to previous sta%es in order to incorporate
any chan%es or missin% lin#s"
           The phases and the outputs of the waterfall model at each phase are summari,ed below in
tabular format"
-.ASE
O/T-/T
8roblem 4escription Feasibility Report
Analysis 'R'
4esi%n 4etailed 4esi%n Report
Codin% Complete 'ource Code
Testin% Test plan$ report and manual
Installation Installation Report
11
0TE1AT0VE WATE12ALL MODEL
'oftware development life cycle process specifies a method of developin% the software" Each
software development pro&ects starts with some needs and ends with some software that satisfies
those  needs"  A software  development   life  cycle  specifies  the  set   of  activities  that   should  be
preformed to %o from user needs to final products" There are different models of '4+C process
and  each  model   specifies   the  activities   and  the  order   in  which  they  should  be  preformed"
4ependin% on the nature of pro&ect$ a suitable model is chosen and the entire process of software
re/uirement analysis$ desi%n$ codin%$ testin% and maintenance is preformed accordin%ly"
.arious   life   cycle   models   are   present$   but   our   system  is   based  on  AATER  FA++
MO4E+$ which is most widely used in procedure oriented development" This model attempts to
brea# up the identifiable activities into series of action$ each of which must be completed before
the   net   be%ins"   The   activities   include   8roblem  definition$   Re/uirement   Analysis$   4esi%n$
Codin%$ Testin% and maintenance"
An  initial   investi%ation  culminates  in  a  proposal   that   determines  whether  a  system  is
feasible  or not"  It determines  its  wor#ability$  impact  on the or%ani,ation$  ability to meet  user
needs$ and effective user resources" The ob&ective of feasibility study is not solve the problem but
to  ac/uire  a  sense  of  its  scope"   4urin%  the  study$   the  problem  definition  is  crystalli,ed  and
aspects  of  the  problem  to  be  included  in  the  system  are  determined"   Conse/uently$  cost   and
benefits are estimated with %reater accuracy at this sta%e" This is a brid%e in between the )ser
Re/uirements   and  the  output   that   he  can  avail   under   a  set   of   %iven  constraints$   inputs   and
outputs" 
The main steps are D
" 'tatement of constraints
1+
-"oblem
De'inition
Analyi
Maintenan&e
Teting
Coding
Deign
  " Identification of specific system ob&ectives 
  " 4escription of outputs
SOFTARE RE!UIREMENT SPECIFICATION "SRS#
The aim of the system is to develope 3EM-LO4EE MANAGEMENT S4STEM5 software$ 
which should automate the process to create and store employee details " The system is supposed 
to be used as a subsystem in a lar%e office system$ which could be manual system or a 
computeri,ed one" Therefore$ the proposed system must be able to function under both 
circumstances"
T!e p"opoed ytem is not a freeware and due to the usa%e of swin%s$ becomes user 
interactive"
 The pro&ect demand a pa%e of employee details that includeD
 Employees  personel detail"
 Employees  salary$ allowances$ deductions"
1,
HARDARE AND SOFTARE RE!UIREMENTS
.a"d$a"e 1e*ui"ement
 MEMO14 S-ACE:
Minimum 1 97 M0
Recommended1 1 <: M0
 (44 1 To install the software at least 7 !0 and the data stora%e is
dependin% upon the or%ani,ational setup"
 8ROCE''OR 6 Intel 8entium I.$ 6!(E or above
 RAM 6 7;<M0 or above
 .I4EO 6 6@7:=<>$ 7:1bit colors
 5E*0OAR4 6 'tandard 6@: 5eysFGAERT*H
0lan# writable C4 to #eep the bac#up of the 8ac#a%e"
1-
So't$a"e 1e*ui"ement
 O8ERATIN!  '*'TEM             1 AindowsI8 8rofessional
 4E.E+O8IN! +AN!)A!E  1 -A.AF&d#1;H
 
 4ATA0A'E  1 MICRO'OFT 'G+ 'ER.ER 7@@;
1.
TOOLS$ PLATFORM AND LANGUAGE USED
21ONT END:
The  pro%rammin%  has  been  done  usin%  the  lan%ua%e  -ava"   It   is  'un  Microsystem2s  strate%ic
lan%ua%e for platform independent pro%rammin%" It is easy to use$ efficient and fleible" This
lan%ua%e is preferred because one can build a  pro%ram usin% this ob&ect oriented  and platform
independent pro%rammin%   with less effort   than with any other pro%rammin% lan%ua%e" It2s a
natural lan%ua%e for buildin% database applications$ owin% to the level and sophistication of the
tools included with the lan%ua%e" 
7ACK END:
Microsoft '/l 'erver is one of the leadin% database mana%ement systems available on the mar#et
today" It is easy to use and administer$ and it comes with tools and wi,ards that ma#e it easy to
develop  applications"  The  database  itself  has  been  redesi%ned  to  automatically  perform  many
tunin% functions$ leavin% you free to focus on most important tas#s"
-LAT2O1M /SED:
The Acconts Automation 'ystem is tar%eted at Microsoft Aindows platforms"  
WINDOWS XP PROFESSIONAL
Windo$ 8Ope"ating Sytem9
aH Aindow  derived  from  its  name  from  the  on1screen  BAIN4OA'C  that   it   used  to
display information2s"
bH Aindows I8 8rofessional is a multi1user operatin% system" It has been desi%ned and
developed by Microsoft Co1operation"
cH Ahen a computer is switch on for wor#in%$ it needs the operatin% system because all
the activities of a system are supervised by the operatin% system"
The features of the operatin% system areD1
1/
6" 8rovides an interactive environment"
7" !raphical user interfaces"
i" The Commands are displayed on the screen and we don2t have to remember
all commands"
ii" !)I ma#es it easy to wor# with dis#s and directories" It can display tree
li#e dia%ram of directories$ directories sub1@ directories on hard dis#"
9"  8oint and Clic#"
:"  )ser friendly"
11
LANGUAGE USED % JAVA:
Ja#a is a %eneral computer pro%rammin% lan%ua%e developed by 'un Microsystems" Ori%inally
called JOa#J$ by its inventor -ames !oslin%$ Ja#a was desi%ned with several innovative features"
These include a lan%ua%e that is entirely ob&ect oriented$ and the ability to write an application
once and move it to virtually any platform" 
0NNOVAT0ONS
The benefits of ob&ect1oriented pro%rammin% are not necessarily obvious to non1pro%rammers"
Essentially what this means to mana%ers is that code written in Ja#a  will be easier to maintain
and  reuse  in  the  lon%  run"   The  downside  is  that   ob&ect1oriented  pro%rammin%  re/uires  better
plannin% from the be%innin% of a pro&ect$ and may increase the amount of initial development
time a pro&ect re/uires" For this reason alone$  Ja#a  is rarely a %ood choice for small pro&ects
re/uirin%   a   fast   turnaround   time"
The second innovation that Ja#a provides$ platform neutrality$ is perhaps the %reatest reason for
its wide acceptance" The fact that  Ja#a  was ori%inally intended a lan%ua%e for writin% device
controllers for items such as %ara%e openers and microwave ovens is the #ey reason for this" In
practice$   however$   this   ability   has   been   more   useful   in   writin%   enterprise   class   business
applications$ where mission critical software may be re/uired to run on a variety of platforms
over its lifetime" Theoretically at least$ once compiled$ a Ja#a  binary should be able to run on
any machine that also has a piece of software called a Ja#a .irtual Machine" In reality$ this is not
always the case" (owever$ more often than not Ja#a does succeed in this re%ards$ whereas this is
impossible with an application written in a lan%ua%e such as CKK"
JAVA 0N WE7 DEVELO-MENT
In terms of web development$ Ja#a is fre/uently used in two ways" Most commonly Ja#a is used
to write server1side web applications usin% two technolo%iesD -'8s and servlets" )sin% Ja#a in
this capacity is a %ood choice for comple applications$ that will have lar%e numbers FL6@@@KH of
concurrent users$ and will be developed by a team of pro%rammers" +ess comple pro&ects$ with
fewer   concurrent   users   may  have   better   outcomes  when  developed  in  procedural   scriptin%
lan%ua%es   such   as   8(8   or   8ER+"
The  second  way  in  which  Ja#a  is  used$   is  to  create  special$   browser  embeddable$   pro%rams
called Applets" Ahile applets had a brief period of acceptance$ their use is becomin% increasin%ly
rare$ bein% replaced by a number of technolo%ies such a Flash and -ava'cript$ which are more
effective at providin% desi%n enhancements such as animation and rollovers" )sin% applets for
these purposes is a mista#e fre/uently made by be%innin% developers" 'till$ Applets do have a
place  in  writin%  speciali,ed browser1based applications that  cannot be  accomplished  by these
other technolo%ies" Careful consideration should be made before approvin% any pro&ect that uses
Applets"
12
ORIGIN AND GROTH
+i#e many recently developed computer lan%ua%es$  Ja#a  borrows much of its lan%ua%e desi%n
from CMCKK" For that reason$ many pro%rammers who are proficient in those lan%ua%es have
leaned Ja#a$ and provide a lar%e pool of /ualified developers" Ja#a has %ained additional %round
as   a  first   lan%ua%e$   as  it   is   %enerally  simpler   to  master   than  CKK$   another   commonly  used
pro%rammin% lan%ua%e"
CLASSES AND O7JECTS
CLASSES
In the real world$ youNll often find many individual ob&ects all of the same #ind" There may be
thousands of other bicycles in eistence$ all of the same ma#e and model" Each bicycle was built
from the same set of blueprints and therefore contains the same components" In ob&ect1oriented
terms$ we say that your bicycle is an instance of the class of ob&ects #nown as bicycles" A class is
the blueprint from which individual ob&ects are created" 
O7JECTS
Ob&ects are #ey to understandin% ob&ect1oriented technolo%y" +oo# around ri%ht now and youNll
find many eamples of real1world ob&ectsD your do%$ your des#$ your television set$ your bicycle"
Real1world ob&ects share two characteristicsD They all have state and behavior" 4o%s have state
Fname$ color$ breed$ hun%ryH and behavior Fbar#in%$ fetchin%$ wa%%in% tailH" 0icycles also have
state Fcurrent %ear$ current pedal cadence$ current speedH and behavior Fchan%in% %ear$ chan%in%
pedal cadence$ applyin% bra#esH" Identifyin% the state and behavior for real1world ob&ects is a
%reat way to be%in thin#in% in terms of ob&ect1oriented pro%rammin%" 
Ta#e a minute ri%ht now to observe the real1world ob&ects that are in your immediate area" For
each ob&ect that you see$ as# yourself two /uestionsD JAhat possible states can this ob&ect be inOJ
and   JAhat   possible   behavior   can   this   ob&ect   performOJ"   Ma#e   sure   to   write   down   your
observations" As you do$ youNll notice that real1world ob&ects vary in compleityP your des#top
lamp may have only two possible states Fon and offH and two possible behaviors Fturn on$ turn
offH$ but your des#top radio mi%ht have additional states Fon$ off$ current volume$ current stationH
and behavior Fturn on$ turn off$ increase volume$ decrease volume$ see#$ scan$ and tuneH" *ou
may  also  notice  that   some  ob&ects$   in  turn$   will   also  contain  other  ob&ects"   These  real1world
observations all translate into the world of ob&ect1oriented pro%rammin%"
'oftware  ob&ects  are  conceptually  similar  to  real1world  ob&ectsD   they  too  consist   of  state  and
related behavior" An ob&ect stores its state in fields Fvariables in some pro%rammin% lan%ua%esH
and eposes its behavior throu%h methods Ffunctions in some pro%rammin% lan%ua%esH" Methods
13
operate  on  an  ob&ectNs  internal   state  and  serve  as  the  primary  mechanism  for  ob&ect1to1ob&ect
communication" (idin% internal state and re/uirin% all interaction to be performed throu%h an
ob&ectNs methods is #nown as data encapsulation  Q a fundamental principle of ob&ect1oriented
pro%rammin%" 
0y  attributin%  state  Fcurrent   speed$   current   pedal   cadence$   and  current   %earH   and  providin%
methods   for   chan%in%  that   state$   the  ob&ect   remains   in  control   of   how  the  outside  world  is
allowed to use it" For eample$ if the bicycle only has < %ears$ a method to chan%e %ears could
re&ect any value that is less than 6 or %reater than <" 
0undlin% code into individual software ob&ects provides a number of benefits$ includin%D 
6" Modula"ity: The source code for an ob&ect can be written and maintained independently
of the source code for other ob&ects" Once created$ an ob&ect can be easily passed around
inside the system"
 
7" 0n'o"mation6!iding:  0y  interactin%  only  with  an  ob&ectNs  methods$   the  details   of   its
internal implementation remain hidden from the outside world" 
9" Code "e6ue: If an ob&ect already eists Fperhaps written by another software developerH$
you can use that ob&ect in your pro%ram" This allows specialists to implementMtestMdebu%
comple$ tas#1specific ob&ects$ which you can then trust to run in your own code" 
:" -luggability and debugging eae: If a particular ob&ect turns out to be problematic$ you
can   simply   remove   it   from  your   application   and   plu%   in   a   different   ob&ect   as   its
replacement" This is analo%ous to fiin% mechanical problems in the real world" If a bolt
brea#s$ you replace it$ not the entire machine" 
0N.E10TANCE
4ifferent #inds of ob&ects often have a certain amount in common with each other" Mountain
bi#es$ road bi#es$ and tandem bi#es$ for eample$ all share the characteristics of bicycles Fcurrent
speed$ current pedal cadence$ current %earH" *et each also defines additional features that ma#e
them differentD tandem bicycles have two seats and two sets of handlebarsP road bi#es have drop
handlebarsP some mountain bi#es have an additional chain rin%$ %ivin% them a lower %ear ratio" 
                 
Ob&ect1oriented pro%rammin% allows classes to inherit  commonly used state and behavior from
other classes" For eample$ Bicycle   becomes the superclass of MountainBike$ RoadBike$ and
TandemBike"   In  the  -ava  pro%rammin%  lan%ua%e$   each  class   is   allowed  to  have  one  direct
superclass$ and each superclass has the potential for an unlimited number of subclasses" 
0NTE12ACE
+4
As youNve already learned$ ob&ects define their interaction with the outside world throu%h the
methods that they epose" Methods form the ob&ectNs interface with the outside worldP the buttons
on the front of your television set$ for eample$ are the interface between you and the electrical
wirin% on the other side of its plastic casin%" *ou press the JpowerJ button to turn the television
on and off" 
In  its  most   common  form$   an  interface  is  a  %roup  of  related  methods  with  empty  bodies"  A
bicycleNs behavior$ if specified as an interface$ mi%ht appear as followsD 
interface 0icycle R
 void chan%eCadenceFint new.alueHP
        void chan%e!earFint new.alueHP
void speed)pFint incrementHP
                    void apply0ra#esFint decrementHP
S
To  implement   this   interface$   the   name   of   your   class   would  chan%e   Fto  ACMEBicycle$   for
eampleH$ and youNd use the implements #eyword in the class declarationD 
class ACME0icycle implements 0icycle R
   MM remainder of this class implemented as before
S
Implementin% an interface allows a class to become more formal about the behavior it promises
to provide" Interfaces form a contract between the class and the outside world$ and this contract
is  enforced at build time by  the  compiler"  If your  class  claims to implement  an  interface$   all
methods defined
by that interface must appear in its source code before the class will successfully compile" 
-ACKAGE
A pac#a%e is a namespace that or%ani,es a set of related classes and interfaces" Conceptually you
can thin# of pac#a%es as bein% similar to different folders on your computer" *ou mi%ht #eep
(TM+ pa%es in one folder$ ima%es in another$ and scripts or applications in yet another" 0ecause
software written in the -ava pro%rammin% lan%ua%e can be composed of hundreds or thousands
of  individual   classes$   it   ma#es  sense  to  #eep  thin%s  or%ani,ed  by  placin%  related  classes  and
interfaces into pac#a%es" 
The -ava platform provides an enormous class library Fa set of pac#a%esH suitable for use in your
own applications" This library is #nown as the JApplication 8ro%rammin% InterfaceJ$ or JA8IJ
for   short"   Its   pac#a%es   represent   the  tas#s   most   commonly  associated  with  %eneral1purpose
+1
pro%rammin%" For eample$ a String ob&ect contains state and behavior for character strin%sP a
File ob&ect allows a pro%rammer to easily create$ delete$ inspect$ compare$ or modify a file on
the filesystemP a Socket ob&ect allows for the creation and use of networ# soc#etsP various !)I
ob&ects control buttons and chec#boes and anythin% else related to %raphical user interfaces"
There  are  literally thousands  of classes  to  choose from"  This  allows you$   the  pro%rammer$  to
focus on the desi%n of your particular application$ rather than the infrastructure re/uired to ma#e
it wor#" 
The -ava 8latform A8I 'pecification contains the complete listin% for all pac#a%es$ interfaces$
classes$ fields$ and methods supplied by the -ava 8latform <$ 'tandard Edition" +oad the pa%e in
your browser  and boo#mar#  it"  As a pro%rammer$  it will  become your sin%le  most  important
piece of reference documentation" 
G/0  SW0NG W0DGETS
A G&'()i*'l Us+& I,t+&f'*+ "GUI#  is a visual paradi%m which allows a user to communicate
with a pro%ram in an intuitive way" Its main features are -i./+ts Fa#a controlsH and +0+,t .&i0+,
'*ti0iti+s" Clients epect a %raphical interface in an application"
-ava has two !)I pac#a%es$ the ori%inal Abst&'*t i,.o-s Tool1it "AT# and the newer S-i,/"
AAT  uses   the  native  operatin%  systemNs   window  routines   and  therefore  the  visual   effect   is
dependent on the run1time system platform" 0ut this is contrary to the concept of havin% a virtual
model" S-i,/ allows three modesD a unified N-avaN loo# and feel Tthe defaultU$ the native platform
loo#$ or a specific platformNs loo#" 'win% is built on the ori%inal ob&ects and framewor# of AAT"
'win% components have the prefi J to distin%uish them from the ori%inal AAT ones Fe% -Frame
instead of FrameH" To include 'win% components and methods in your pro&ect you must import
the &ava"awt"V$ &ava"awt"event"V$ and &ava"swin%"V pac#a%es"
CONTA0NE1S% 21AMES AND CONTENT -ANES
Co,t'i,+&s are -i./+ts F!)I controlsH that are used to hold and %roup other wid%ets such as tet
fields and chec#boes" 4isplayable  f&'m+s  are top1level containers such as -Frame$ -Aindow$
-4ialo%$ -Applet and -InternalFrame which interface to the operatin% systemNs window mana%er"
Non1displayin%  *o,t+,t   (',+s  are   intermediate   containers   such   as   -8anel$   -Option8ane$
-'croll8ane$   -+ayered8ane$  -'plit8ane  and  -Tabbed8ane  which  or%ani,e  the  layout   structure
when m2lti(l+ controls are bein% used"
Ji,.o-  is  an  unadorned  container  that   has  been  superceded  for  the  most   part   by  JDi'lo/"
(owever it does provide a useful container for a splash screen"
COMMON W0DGET MET.ODS
++
'everal methods can be used with many different controls" These includeD addFH$ re/uestFocusFH$
setToolTipTetFH"
J21AME AND J-ANEL
JF&'m+  is  the  most   commonly  used  top1level   container"   It   adds  basic  functionality  such  as
minimi,e$   maimi,e$   close$   title  and  border   to  basic  frames   and  windows"   'ome  important
-Frame   methods   areD   set0oundsF$y$w$hH$   set+ocationF$yH$   set'i,eFw$hH$   setResi,ableFboolH$
setTitleFstrH$   set.isibleFboolH$   isResi,ableFH   and   %etTitleFH"   The
set4efaultCloseOperationFconstantH method controls the action that occurs when the close icon is
clic#ed" Normally the constant used is JF&'m+3E4IT5ON5CLOSE3
JP',+l  is the most commonly used content pane" An instance of the pane is  created and then
added to a frame" The '.."# method allows wid%ets F!)I componentsH to be added to the pane"
The way they are added is controlled by the current layout mana%er"
LA7ELS% 0CONS AND 7/TTONS
L'b+ls are non1interactive tet ob&ects most commonly used as prompts" They are created usin%
the JL'b+l"# constructor with the re/uired tet as the first parameter" Another parameter can be
added usin% a 'win%Constant value to set hori,ontal ali%nment" .ertical ali%nment is throu%h the
s+tV+&ti*'lAli/,m+,t"#  method"   The  contents   of   a  label   can  be  chan%ed  with  the  s+tT+6t"#
method"
I*o,s can be easily added to labels or other controls either to brand$ dress up$ or aid accessibility"
Icons are constructed from the Im'/+I*o,  class and then added as a parameter to the label For
otherH control" An etra parameter can be used to control the (ositio, of the tet relative to the
icon" It must use one of the S-i,/Co,st',ts values"
'imple  b2tto,s  are  used  to start  operations"  They  are created  with  the  JB2tto,"#  constructor"
They  can  be  deactivated  with  the  s+tE,'bl+."f'ls+#  method  and  tested  with  the  isE,'bl+."#
method"   One   useful   button   method   is  s+tM,+mo,i*"*)'&#  which   allows   a   hot   #ey   to   be
associated with the button
'imple buttons re/uire an A*tio,E0+,t event listener that reacts to the button clic#"
To//l+   b2tto,s  are   a   visual   push   on   1   push   off   mechanism"   They   are   created   with   the
-To%%le0uttonFH  constructor"  The  isS+l+*t+."#  method  returns  the  state  of  the  button"  And  in
addition to A*tio,E0+,t$ the C)',/+E0+,t is tri%%ered"
EVENT L0STENE1S
!)Is are +0+,t7b's+." That is they respond to buttons$ #eyboard input or mouse activities" -ava
uses +0+,t list+,+&s to monitor activity on specified ob&ects and react to specific conditions" For a
listin% of useful event listeners chec# the appendi" For techni/ues on or%ani,in% many different
events in lar%er pro&ects$ view advanced event listeners"
+,
The first step in addin% a basic  b2tto, (2s) +0+,t  handler to the above eample is to import
'-t3+0+,t38  which   contains   all   of   the   event   classes"   Net   add   the   phrase  im(l+m+,ts
A*tio,List+,+&  to  the  class  header"  Re%ister  event   listeners  for  each  button  wid%et   usin%  the
'..A*tio,List+,+&"t)is# method" 
+-
SYSTEM DESIGN
8rocess 4ia%ram
                                                              
+.
+O!IN 
'CREEN
A44 
EM8+O*EE
MEN) 
'CREEN
.IEA 
4ETAI+'
Nam
e
EM8+O*EE 
+I'T
!ENERATE 
'+I8
I" Ta
EIIT
Addre
ss
Eperi
ence
Travellin
% 
Allowan
8ost
(ouse 'alary
Edit 4E+ET
E
0AC5
O5
DATA FLO DIAGRAMS
LEVEL : D2D:
                                            AddEmp Operator                   Emp4etail Operator
                                      Emp info                                                           Emp detail Modification
                                               Entry
Administrator
                                                                                                           Emp'lip                 
           For lo%in user$ password                                                         Emp 8ayroll 'lip !eneration
                        
                         Emp detail report                     
                             !eneration
                                     Emp+ist                     Eit
+/
EMS
LEVEL ; D2D:
                                         
+1
ENT0T4 1ELAT0ONS.0- D0AG1AM:
+2
FORMS LAYOUT
-a&<age employeeManagement
Cla Summa"y
AddEmp  This class provides code for Addition of Employee to the Firm
EmpDetail  8rovides code to view Employee 4etails and also to 4eleteMModify Accounts
EmpLit  8rovides the code to show  the +ist of employees  in the Firm
EmpSlip  8rovides codes for 'alary 'lip !eneration
0nt"o  Contains code for AelcomeM+o%in 8a%e of the pro&ect
Main  The 0ase class which has the code to show the FirstM+o%in 'creen
Menu&"n
 This class has code which represents the 'creen which shows the 0uttons for 
'election of 4ifferent Tas#s
  
+3
0nt"o(,a#a
Contains code for username M8assword Authentication" Ahen user enters correct lo%in and 
password It opens Main form otherwise it %ives an error messa%e" *ou can eit by clic#in% the 
BIC button on the ri%ht top corner of the window"
8ress submit button to submit your re/uest and reset to reset the fields"
,4
MenuS&"n(,a#a
)sin% Add employee you can add employee to the firm" Clic#in% on it opens the add employee 
window" It calls the AddEmp Class"
Clic#in% on Employee +ist shows the list of employees in the firm" It calls the Emp+ist Class"
0y Clic#in% on .iew details you can .iewMModifyM4elete Records of the employees" It calls 
Emp4etail"&ava"
0y clic#in% on %enerate slip 'alary slip is %enerated" It calls Emp'lip"&ava
On clic#in% Eit The Application eits"
NoteD *ou cannot eit usin% I button in this window"
,1
AddEmp(,a#a
Clic#in% 0ac# ta#es you bac# to main menu screen
Clic#in% 'ubmit submits the records"
Clic#in% Clear Clears the Fields
,+
EmpLit(,a#a
'hows the list of employees" On clic#in% 0ac# ta#es you bac# to the Main Menu screen
,,
EmpDetail(,a#a
To be able to edit records you must press Edit" 0efore that please select a record and press O5" 
This will enable the Edit and 4elete 0uttons" As 'hown below
,-
Clic#in% on Edit will chan%e it to save after ma#in% chan%es 8lease clic# on save to save the 
chan%es"
Clic#in% on 4elete will chan%e it 'ave 8lease press 'ave to Confirm the deletion" As shown 
0elow
,.
8ress save to confirm 4eletion
'elect another EmpId and press O5 to select
8ress 0ac# to %o bac#
,/
EmpSlip(Ja#a
8ress O5 to %enerate slip for selected I4
8rint Function is Currently 4isabled and is left for Future scope
8ress 0ac# to !o 0ac#"
,1
CODING
MV
A..Em(39'0'
VM
package employeemanagement;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQL!ception;
import java.sql.Statement;
import java.util.logging.Level;
import java.util.logging.Logger;
pu"lic class #ddmp e!tends java!.s$ing.%&rame '
    Connection con;
    Statement stmt;
    PreparedStatement stat;
    ResultSet rs;
    static int eid();
    *++ Creates ne$ ,orm #ddmp +*
    pu"lic #ddmp-. t/ro$s Class0ot&ound!ception1 SQL!ception '
        initComponents-.;
        t/is.set2isi"le-true.;
        Class.,or0ame-3sun.jd"c.od"c.%d"c4d"cDriver3.;
        con(DriverManager.getConnection-3jd"c5od"c5mployee3.;
        stmt(con.createStatement-.;
      stmt(con.createStatement-rs.67P8SCR4LL8S0S96921rs.C40C:R8R#D840L7.;
        rs(stmt.e!ecuteQuery-3select + ,rom emp3.;
        rs.last-.;
        eid(rs.get9nt-;).;
    <
  =Suppress>arnings-3unc/ecked3.
    ** ?editor@,old de,aultstate(3collapsed3 desc(3Aenerated Code3B                          
    private void initComponents-. '
        la"el; ( ne$ java.a$t.La"el-.;
        la"elC ( ne$ java.a$t.La"el-.;
        la"elD ( ne$ java.a$t.La"el-.;
        la"elE ( ne$ java.a$t.La"el-.;
        la"elF ( ne$ java.a$t.La"el-.;
        la"elG ( ne$ java.a$t.La"el-.;
        la"elH ( ne$ java.a$t.La"el-.;
        la"elI ( ne$ java.a$t.La"el-.;
        la"elJ ( ne$ java.a$t.La"el-.;
        la"el;) ( ne$ java.a$t.La"el-.;
        la"el;; ( ne$ java.a$t.La"el-.;
        te!t&ield; ( ne$ java.a$t.6e!t&ield-.;
        te!t&ieldC ( ne$ java.a$t.6e!t&ield-.;
        te!t&ieldI ( ne$ java.a$t.6e!t&ield-.;
        te!t&ieldJ ( ne$ java.a$t.6e!t&ield-.;
        te!t&ield;) ( ne$ java.a$t.6e!t&ield-.;
,2
        te!t&ield;; ( ne$ java.a$t.6e!t&ield-.;
        te!t&ield;C ( ne$ java.a$t.6e!t&ield-.;
        te!t&ield;D ( ne$ java.a$t.6e!t&ield-.;
        te!t&ield;E ( ne$ java.a$t.6e!t&ield-.;
        "utton; ( ne$ java.a$t.Kutton-.;
        "uttonC ( ne$ java.a$t.Kutton-.;
        la"el;C ( ne$ java.a$t.La"el-.;
        "uttonD ( ne$ java.a$t.Kutton-.;
        setDe,aultClose4peration-java!.s$ing.>indo$Constants.L968408CL4S.;
        la"el;.set6e!t-30#M3.;
        la"elC.set6e!t-3#DDRSS3.;
        la"elD.set6e!t-3S#L#R73.;
        la"elE.set6e!t-3P4S63.;
        la"elF.set6e!t-3LPR9#0C3.;
        la"elG.set6e!t-3#llo$ences3.;
        la"elH.set6e!t-3M4:S3.;
        la"elI.set6e!t-36R#2LL90A3.;
        la"elJ.set6e!t-3Deductions3.;
        la"el;).set6e!t-3PR429D06 &:0D3.;
        la"el;;.set6e!t-390C4M 6#L3.;
       "utton;.setLa"el-3S:KM963.;
        "utton;.add#ctionListener-ne$ java.a$t.event.#ctionListener-. '
            pu"lic void actionPer,ormed-java.a$t.event.#ctionvent evt. '
                "utton;#ctionPer,ormed-evt.;
            <
        <.;
        "uttonC.setLa"el-3CL#R3.;
        "uttonD.setLa"el-3K#CN3.;
        "uttonD.add#ctionListener-ne$ java.a$t.event.#ctionListener-. '
            pu"lic void actionPer,ormed-java.a$t.event.#ctionvent evt. '
                "uttonD#ctionPer,ormed-evt.;
            <
        <.;
        java!.s$ing.AroupLayout layout ( ne$ java!.s$ing.AroupLayout-getContentPane-..;
        getContentPane-..setLayout-layout.;
        layout.setMoriOontalAroup-
            layout.createParallelAroup-java!.s$ing.AroupLayout.#lignment.L#D90A.
            .addAroup-layout.createSequentialAroup-.
                .addAroup-layout.createParallelAroup-java!.s$ing.AroupLayout.#lignment.L#D90A.
                    .addAroup-layout.createSequentialAroup-.
                        .addAap-EG1 EG1 EG.
                        .addAroup-layout.createParallelAroup-java!.s$ing.AroupLayout.#lignment.L#D90A.
                            .addComponent-la"el;1 java!.s$ing.AroupLayout.PR&RRD8S9P1 ;;G1 
java!.s$ing.AroupLayout.PR&RRD8S9P.
                            .addComponent-la"elF1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P.
                            .addComponent-la"elC1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P.
                            .addComponent-la"elE1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P.
                            .addComponent-la"elD1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P..
,3
                        .addPre,erredAap-java!.s$ing.LayoutStyle.ComponentPlacement.RL#6D.
                        .addAroup-layout.createParallelAroup-java!.s$ing.AroupLayout.#lignment.L#D90A.
                            .addComponent-te!t&ield;1 java!.s$ing.AroupLayout.D&#:L68S9P1 CFI1 S/ort.M#L82#L:.
                            .addComponent-te!t&ieldC1 java!.s$ing.AroupLayout.D&#:L68S9P1 CFI1 S/ort.M#L82#L:.
                            .addComponent-te!t&ield;D1 java!.s$ing.AroupLayout.D&#:L68S9P1 CFI1 S/ort.M#L82#L:.
                            .addComponent-te!t&ieldI1 java!.s$ing.AroupLayout.D&#:L68S9P1 CFI1 S/ort.M#L82#L:.
                            .addComponent-te!t&ield;E1 java!.s$ing.AroupLayout.D&#:L68S9P1 CFI1 S/ort.M#L82#L:.
                            .addComponent-te!t&ieldJ1 java!.s$ing.AroupLayout.D&#:L68S9P1 CFI1 S/ort.M#L82#L:.
                            .addComponent-te!t&ield;)1 java!.s$ing.AroupLayout.D&#:L68S9P1 CFI1 S/ort.M#L82#L:.
                            .addComponent-te!t&ield;;1 java!.s$ing.AroupLayout.D&#:L68S9P1 CFI1 S/ort.M#L82#L:.
                            .addComponent-te!t&ield;C1 java!.s$ing.AroupLayout.D&#:L68S9P1 CFI1 S/ort.M#L82#L:.
                            .addAroup-layout.createSequentialAroup-.
                                .addComponent-"utton;1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P.
                                .addPre,erredAap-java!.s$ing.LayoutStyle.ComponentPlacement.RL#6D1 CE1 S/ort.M#L82#L:.
                                .addComponent-"uttonD1 java!.s$ing.AroupLayout.PR&RRD8S9P1 HH1 
java!.s$ing.AroupLayout.PR&RRD8S9P.
                                .addAap-CD1 CD1 CD.
                                .addComponent-"uttonC1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P.
                                .addAap-;I1 ;I1 ;I....
                    .addAroup-layout.createSequentialAroup-.
                        .addContainerAap-.
                        .addComponent-la"elG1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P..
                    .addAroup-layout.createSequentialAroup-.
                        .addAap-ED1 ED1 ED.
                        .addAroup-layout.createParallelAroup-java!.s$ing.AroupLayout.#lignment.L#D90A.
                            .addComponent-la"elH1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P.
                            .addComponent-la"elI1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P...
                    .addAroup-layout.createSequentialAroup-.
                        .addContainerAap-.
                        .addComponent-la"elJ1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P..
                    .addAroup-layout.createSequentialAroup-.
                        .addAap-EF1 EF1 EF.
                        .addAroup-layout.createParallelAroup-java!.s$ing.AroupLayout.#lignment.L#D90A.
                            .addComponent-la"el;;1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P.
                            .addComponent-la"el;)1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P.
                            .addComponent-la"el;C1 java!.s$ing.AroupLayout.PR&RRD8S9P1 ;GJ1 
java!.s$ing.AroupLayout.PR&RRD8S9P....
                .addContainerAap-H;1 S/ort.M#L82#L:..
        .;
        layout.set2erticalAroup-
            layout.createParallelAroup-java!.s$ing.AroupLayout.#lignment.L#D90A.
            .addAroup-layout.createSequentialAroup-.
                .addAap-C)1 C)1 C).
                .addAroup-layout.createParallelAroup-java!.s$ing.AroupLayout.#lignment.L#D90A1 ,alse.
                    .addAroup-layout.createSequentialAroup-.
                        .addComponent-la"el;1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P.
                        .addPre,erredAap-java!.s$ing.LayoutStyle.ComponentPlacement.RL#6D.
-4
                        .addComponent-la"elC1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P.
                        .addPre,erredAap-java!.s$ing.LayoutStyle.ComponentPlacement.RL#6D.
                        .addComponent-la"elE1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P..
                    .addAroup-layout.createSequentialAroup-.
                        .addComponent-te!t&ield;1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P.
                        .addPre,erredAap-java!.s$ing.LayoutStyle.ComponentPlacement.RL#6D.
                        .addComponent-te!t&ieldC1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P.
                        .addPre,erredAap-java!.s$ing.LayoutStyle.ComponentPlacement.RL#6D1 
java!.s$ing.AroupLayout.D&#:L68S9P1 S/ort.M#L82#L:.
                        .addComponent-te!t&ield;D1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P...
                .addPre,erredAap-java!.s$ing.LayoutStyle.ComponentPlacement.RL#6D.
                .addAroup-layout.createParallelAroup-java!.s$ing.AroupLayout.#lignment.L#D90A.
                    .addAroup-layout.createSequentialAroup-.
                        .addComponent-la"elF1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P.
                        .addPre,erredAap-java!.s$ing.LayoutStyle.ComponentPlacement.RL#6D.
                        .addComponent-la"elD1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P..
                    .addAroup-layout.createSequentialAroup-.
                        .addComponent-te!t&ieldI1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P.
                        .addPre,erredAap-java!.s$ing.LayoutStyle.ComponentPlacement.RL#6D.
                        .addComponent-te!t&ield;E1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P...
                .addPre,erredAap-java!.s$ing.LayoutStyle.ComponentPlacement.RL#6D.
                .addAroup-layout.createParallelAroup-java!.s$ing.AroupLayout.#lignment.6R#9L90A.
                    .addAroup-layout.createSequentialAroup-.
                        .addComponent-la"elG1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P.
                        .addAap-C1 C1 C.
                        .addComponent-la"elH1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P..
                    .addComponent-te!t&ieldJ1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P..
                .addPre,erredAap-java!.s$ing.LayoutStyle.ComponentPlacement.RL#6D.
                .addAroup-layout.createParallelAroup-java!.s$ing.AroupLayout.#lignment.L#D90A1 ,alse.
                    .addAroup-layout.createSequentialAroup-.
                        .addComponent-la"elI1 java!.s$ing.AroupLayout.PR&RRD8S9P1 C)1 
java!.s$ing.AroupLayout.PR&RRD8S9P.
                        .addPre,erredAap-java!.s$ing.LayoutStyle.ComponentPlacement.RL#6D.
                        .addComponent-la"elJ1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P.
                        .addPre,erredAap-java!.s$ing.LayoutStyle.ComponentPlacement.RL#6D.
                        .addComponent-la"el;)1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P..
                    .addAroup-layout.createSequentialAroup-.
                        .addComponent-te!t&ield;)1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P.
                        .addPre,erredAap-java!.s$ing.LayoutStyle.ComponentPlacement.RL#6D1 
java!.s$ing.AroupLayout.D&#:L68S9P1 S/ort.M#L82#L:.
-1
                        .addComponent-te!t&ield;;1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P...
                .addPre,erredAap-java!.s$ing.LayoutStyle.ComponentPlacement.RL#6D.
                .addAroup-layout.createParallelAroup-java!.s$ing.AroupLayout.#lignment.L#D90A.
                    .addComponent-la"el;;1 java!.s$ing.AroupLayout.PR&RRD8S9P1 java!.s$ing.AroupLayout.D&#:L68S9P1 
java!.s$ing.AroupLayout.PR&RRD8S9P.
                    .addComponent-te!t&ield;C1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P..
                .addAap-DE1 DE1 DE.
                .addAroup-layout.createParallelAroup-java!.s$ing.AroupLayout.#lignment.L#D90A.
                    .addAroup-layout.createSequentialAroup-.
                        .addComponent-"utton;1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P.
                        .addAap-;J1 ;J1 ;J.
                        .addComponent-la"el;C1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P..
                    .addComponent-"uttonC1 java!.s$ing.AroupLayout.PR&RRD8S9P1 java!.s$ing.AroupLayout.D&#:L68S9P1
java!.s$ing.AroupLayout.PR&RRD8S9P.
                    .addComponent-"uttonD1 java!.s$ing.AroupLayout.PR&RRD8S9P1 java!.s$ing.AroupLayout.D&#:L68S9P1
java!.s$ing.AroupLayout.PR&RRD8S9P..
                .addContainerAap-C;1 S/ort.M#L82#L:..
        .;
        pack-.;
    <** ?*editor@,oldB                        
private void "utton;#ctionPer,ormed-java.a$t.event.#ctionvent evt. '                                        
        try '
            try '
** 64D4 add your /andling code /ere5
                stat ( con.prepareStatement-39nsert into mp values-Q1Q1Q1Q1Q1Q1Q1Q1Q1Q.3.;
            < catc/ -SQL!ception e!. '
                Logger.getLogger-#ddmp.class.get0ame-...log-Level.S2R1 null1 e!.;
            <
            String name ( te!t&ield;.get6e!t-.;
            String address ( te!t&ieldC.get6e!t-.;
            String post ( te!t&ield;D.get6e!t-.;
            String e!periance ( te!t&ieldI.get6e!t-.;
            String salary ( te!t&ield;E.get6e!t-.;
            String /ouse ( te!t&ieldJ.get6e!t-.;
            String travelling ( te!t&ield;).get6e!t-.;
            String p, ( te!t&ield;;.get6e!t-.;
            String it ( te!t&ield;C.get6e!t-.;
            stat.setString-;1 name.;
            stat.setString-C1 address.;
            stat.setString-D1 post.;
            stat.set9nt-E19nteger.parse9nt-e!periance..;
            stat.set9nt-F19nteger.parse9nt-salary..;
            stat.set9nt-G19nteger.parse9nt-/ouse..;
            stat.set9nt-H19nteger.parse9nt-travelling..;
            stat.set9nt-I19nteger.parse9nt-p,..;
            stat.set9nt-J19nteger.parse9nt-it..;
            stat.set9nt-;)1RReid.;
            la"el;C.set6e!t-3Success3.;
            stat.e!ecute:pdate-.;
            con.close-.;
-+
            t/is.set2isi"le-,alse.;
            Menuscrn menu ( ne$ Menuscrn-.;
            menu.set2isi"le-true.;
        < catc/ -SQL!ception e!. '
            Logger.getLogger-#ddmp.class.get0ame-...log-Level.S2R1 null1 e!.;
        <
    
    
<                                       
private void "uttonD#ctionPer,ormed-java.a$t.event.#ctionvent evt. '                                        
** 64D4 add your /andling code /ere5
    t/is.set2isi"le-,alse.;
    Menuscrn menu ( ne$ Menuscrn-.;
    menu.set2isi"le-true.;
<                                       
    pu"lic static void main-String argsST. '
        java.a$t.ventQueue.invokeLater-ne$ Runna"le-. '
            pu"lic void run-. '
                try '
                    ne$ #ddmp-..set2isi"le-true.;
                < catc/ -Class0ot&ound!ception e!. '
                    Logger.getLogger-#ddmp.class.get0ame-...log-Level.S2R1 null1 e!.;
                < catc/ -SQL!ception e!. '
                    Logger.getLogger-#ddmp.class.get0ame-...log-Level.S2R1 null1 e!.;
                <
            <
        <.;
    <
    
    ** 2aria"les declaration @ do not modi,y                     
    private java.a$t.Kutton "utton;;
    private java.a$t.Kutton "uttonC;
    private java.a$t.Kutton "uttonD;
    private java.a$t.La"el la"el;;
    private java.a$t.La"el la"el;);
    private java.a$t.La"el la"el;;;
    private java.a$t.La"el la"el;C;
    private java.a$t.La"el la"elC;
    private java.a$t.La"el la"elD;
    private java.a$t.La"el la"elE;
    private java.a$t.La"el la"elF;
    private java.a$t.La"el la"elG;
    private java.a$t.La"el la"elH;
    private java.a$t.La"el la"elI;
    private java.a$t.La"el la"elJ;
    private java.a$t.6e!t&ield te!t&ield;;
    private java.a$t.6e!t&ield te!t&ield;);
    private java.a$t.6e!t&ield te!t&ield;;;
    private java.a$t.6e!t&ield te!t&ield;C;
    private java.a$t.6e!t&ield te!t&ield;D;
    private java.a$t.6e!t&ield te!t&ield;E;
    private java.a$t.6e!t&ield te!t&ieldC;
    private java.a$t.6e!t&ield te!t&ieldI;
    private java.a$t.6e!t&ield te!t&ieldJ;
    ** nd o, varia"les declaration                   
-,
    
<
--
*+
 + Intro.java
 +*
 
package employeemanagement;
pu"lic class 9ntro e!tends java!.s$ing.%&rame '
  
    *++ Creates ne$ ,orm 9ntro +*
    pu"lic 9ntro-. '
        initComponents-.;
        te!t&ieldC.setc/oC/ar-U+U.;
        t/is.set2isi"le-true.;
    <
    *++ 6/is met/od is called ,rom $it/in t/e constructor to
     + initialiOe t/e ,orm.
     + >#R090A5 Do 046 modi,y t/is code. 6/e content o, t/is met/od is
     + al$ays regenerated "y t/e &orm ditor.
     +*
    =Suppress>arnings-3unc/ecked3.
    ** ?editor@,old de,aultstate(3collapsed3 desc(3Aenerated Code3B                          
    private void initComponents-. '
        la"el; ( ne$ java.a$t.La"el-.;
        la"elC ( ne$ java.a$t.La"el-.;
        la"elD ( ne$ java.a$t.La"el-.;
        te!t&ield; ( ne$ java.a$t.6e!t&ield-.;
        te!t&ieldC ( ne$ java.a$t.6e!t&ield-.;
        "utton; ( ne$ java.a$t.Kutton-.;
        "uttonC ( ne$ java.a$t.Kutton-.;
        la"elE ( ne$ java.a$t.La"el-.;
        setDe,aultClose4peration-java!.s$ing.>indo$Constants.L968408CL4S.;
        setKackground-ne$ java.a$t.Color-F;1 )1 F;..;
        la"el;.setKackground-ne$ java.a$t.Color-)1 ;FD1 )..;
        la"el;.set&ont-ne$ java.a$t.&ont-3#rial31 D1 ;I..; ** 049;I0
        la"el;.set6e!t-3>LC4M 64 MPL47 M#0#AM06 S7S6M3.;
        la"elC.set6e!t-3:ser 0ame3.;
        la"elD.set6e!t-3Pass$ord3.;
        "utton;.setLa"el-3Su"mit3.;
        "utton;.add#ctionListener-ne$ java.a$t.event.#ctionListener-. '
            pu"lic void actionPer,ormed-java.a$t.event.#ctionvent evt. '
                "utton;#ctionPer,ormed-evt.;
            <
        <.;
        "uttonC.setLa"el-3Reset3.;
-.
        java!.s$ing.AroupLayout layout ( ne$ java!.s$ing.AroupLayout-getContentPane-..;
        getContentPane-..setLayout-layout.;
        layout.setMoriOontalAroup-
            layout.createParallelAroup-java!.s$ing.AroupLayout.#lignment.L#D90A.
            .addAroup-java!.s$ing.AroupLayout.#lignment.6R#9L90A1 layout.createSequentialAroup-.
                .addAap-JG1 JG1 JG.
                .addComponent-la"el;1 java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.D&#:L68S9P1 
S/ort.M#L82#L:.
                .addAap-GH1 GH1 GH..
            .addAroup-layout.createSequentialAroup-.
                .addAap-;G;1 ;G;1 ;G;.
                .addAroup-layout.createParallelAroup-java!.s$ing.AroupLayout.#lignment.L#D90A.
                    .addComponent-la"elC1 java!.s$ing.AroupLayout.PR&RRD8S9P1 java!.s$ing.AroupLayout.D&#:L68S9P1 
java!.s$ing.AroupLayout.PR&RRD8S9P.
                    .addComponent-la"elD1 java!.s$ing.AroupLayout.PR&RRD8S9P1 java!.s$ing.AroupLayout.D&#:L68S9P1 
java!.s$ing.AroupLayout.PR&RRD8S9P..
                .addAap-DI1 DI1 DI.
                .addAroup-layout.createParallelAroup-java!.s$ing.AroupLayout.#lignment.L#D90A.
                    .addComponent-te!t&ieldC1 java!.s$ing.AroupLayout.D&#:L68S9P1 ;GG1 S/ort.M#L82#L:.
                    .addComponent-te!t&ield;1 java!.s$ing.AroupLayout.D&#:L68S9P1 ;GG1 S/ort.M#L82#L:..
                .addAap-;HI1 ;HI1 ;HI..
            .addAroup-layout.createSequentialAroup-.
                .addAap-C)G1 C)G1 C)G.
                .addComponent-"utton;1 java!.s$ing.AroupLayout.PR&RRD8S9P1 java!.s$ing.AroupLayout.D&#:L68S9P1 
java!.s$ing.AroupLayout.PR&RRD8S9P.
                .addAap-GG1 GG1 GG.
                .addComponent-"uttonC1 java!.s$ing.AroupLayout.PR&RRD8S9P1 java!.s$ing.AroupLayout.D&#:L68S9P1 
java!.s$ing.AroupLayout.PR&RRD8S9P.
                .addContainerAap-CDF1 S/ort.M#L82#L:..
            .addAroup-java!.s$ing.AroupLayout.#lignment.6R#9L90A1 layout.createSequentialAroup-.
                .addContainerAap-GC1 S/ort.M#L82#L:.
                .addComponent-la"elE1 java!.s$ing.AroupLayout.PR&RRD8S9P1 F;;1 
java!.s$ing.AroupLayout.PR&RRD8S9P.
                .addAap-DI1 DI1 DI..
        .;
        layout.set2erticalAroup-
            layout.createParallelAroup-java!.s$ing.AroupLayout.#lignment.L#D90A.
            .addAroup-layout.createSequentialAroup-.
                .addContainerAap-.
                .addComponent-la"el;1 java!.s$ing.AroupLayout.PR&RRD8S9P1 IG1 
java!.s$ing.AroupLayout.PR&RRD8S9P.
                .addAap-E;1 E;1 E;.
                .addAroup-layout.createParallelAroup-java!.s$ing.AroupLayout.#lignment.L#D90A.
                    .addAroup-layout.createSequentialAroup-.
                        .addPre,erredAap-java!.s$ing.LayoutStyle.ComponentPlacement.RL#6D.
                        .addComponent-te!t&ield;1 java!.s$ing.AroupLayout.D&#:L68S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 S/ort.M#L82#L:.
                        .addPre,erredAap-java!.s$ing.LayoutStyle.ComponentPlacement.RL#6D.
                        .addComponent-te!t&ieldC1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P.
                        .addPre,erredAap-java!.s$ing.LayoutStyle.ComponentPlacement.RL#6D..
                    .addAroup-layout.createSequentialAroup-.
                        .addComponent-la"elC1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P.
                        .addPre,erredAap-java!.s$ing.LayoutStyle.ComponentPlacement.RL#6D.
-/
                        .addComponent-la"elD1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P...
                .addAap-DJ1 DJ1 DJ.
                .addAroup-layout.createParallelAroup-java!.s$ing.AroupLayout.#lignment.L#D90A.
                    .addComponent-"utton;1 java!.s$ing.AroupLayout.PR&RRD8S9P1 java!.s$ing.AroupLayout.D&#:L68S9P1
java!.s$ing.AroupLayout.PR&RRD8S9P.
                    .addComponent-"uttonC1 java!.s$ing.AroupLayout.PR&RRD8S9P1 java!.s$ing.AroupLayout.D&#:L68S9P1
java!.s$ing.AroupLayout.PR&RRD8S9P..
                .addAap-CC1 CC1 CC.
                .addComponent-la"elE1 java!.s$ing.AroupLayout.PR&RRD8S9P1 DJ1 
java!.s$ing.AroupLayout.PR&RRD8S9P.
                .addContainerAap-..
        .;
        pack-.;
    <** ?*editor@,oldB                        
private void "utton;#ctionPer,ormed-java.a$t.event.#ctionvent evt. '                                        
** 64D4 add your /andling code /ere5
    i,--te!t&ield;.get6e!t-..equals-3#dmin3..VV-te!t&ieldC.get6e!t-..equals-3adminadmin3...
    '
        la"elE.set6e!t-33.;
        t/is.set2isi"le-,alse.;
        Menuscrn menu ( ne$ Menuscrn-.;
        menu.set2isi"le-true.;
    <
    else
    la"elE.set6e!t-3>rong Pass$ord*:sername3.;
<                                       
    *++
    + =param args t/e command line arguments
    +*
    pu"lic static void main-String argsST. '
        java.a$t.ventQueue.invokeLater-ne$ Runna"le9mpl-..;
    <
    ** 2aria"les declaration @ do not modi,y                     
    private java.a$t.Kutton "utton;;
    private java.a$t.Kutton "uttonC;
    private java.a$t.La"el la"el;;
    private java.a$t.La"el la"elC;
    private java.a$t.La"el la"elD;
    private java.a$t.La"el la"elE;
    private java.a$t.6e!t&ield te!t&ield;;
    private java.a$t.6e!t&ield te!t&ieldC;
    ** nd o, varia"les declaration                   
    private static class Runna"le9mpl implements Runna"le '
        pu"lic Runna"le9mpl-. '
        <
        pu"lic void run-. '
            ne$ 9ntro-..set2isi"le-true.;
        
-1
*+
 + Menuscrn.java
 +*
 package employeemanagement;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQL!ception;
import java.sql.Statement;
import java.util.logging.Level;
import java.util.logging.Logger;
pu"lic class Menuscrn e!tends java!.s$ing.%&rame '
        Connection con;
        Statement stmt;
        PreparedStatement stat;
        ResultSet rs;
    *++ Creates ne$ ,orm Menuscrn +*
    pu"lic Menuscrn-. '
        try '
            initComponents-.;
            t/is.setDe,aultClose4peration-D48046M90A8408CL4S.;
            Class.,or0ame-3sun.jd"c.od"c.%d"c4d"cDriver3.;
            con ( DriverManager.getConnection-3jd"c5od"c5mployee3.;
            stmt(con.createStatement-.;
            rs(stmt.e!ecuteQuery-3select + ,rom mp3 .;
        < catc/ -SQL!ception e!. '
            i,-e!.getrrorCode-.((C)I.
            '
                try '
                    rs ( stmt.e!ecuteQuery-3CR#6 6#KL Sd"oT.SmpT-S0ameT Sc/arT-C). 046 0:LL1S#ddressT Sc/arT-D). 046 
0:LL1SPostT Sc/arT-;). 046 0:LL1S!perianceT SintT 0:LL1SSalaryT SintT 046 0:LL1SMR#T SintT 0:LL1S6#T SintT 0:LL1SP&T SintT 
0:LL1S96a!T SintT 0:LL1SidT SintT 046 0:LL. 40 SPR9M#R7T3.;
                < catc/ -SQL!ception e!;. '
                    Logger.getLogger-Menuscrn.class.get0ame-...log-Level.S2R1 null1 e!;.;
                <
            <
            Logger.getLogger-Menuscrn.class.get0ame-...log-Level.S2R1 null1 e!.;
        < catc/ -Class0ot&ound!ception e!. '
          Logger.getLogger-Menuscrn.class.get0ame-...log-Level.S2R1 null1 e!.;
        <
    <
    *++ 6/is met/od is called ,rom $it/in t/e constructor to
     + initialiOe t/e ,orm.
     + >#R090A5 Do 046 modi,y t/is code. 6/e content o, t/is met/od is
     + al$ays regenerated "y t/e &orm ditor.
     +*
    =Suppress>arnings-3unc/ecked3.
    ** ?editor@,old de,aultstate(3collapsed3 desc(3Aenerated Code3B                          
    private void initComponents-. '
-2
        "uttonF ( ne$ java.a$t.Kutton-.;
        "uttonG ( ne$ java.a$t.Kutton-.;
        "uttonD ( ne$ java.a$t.Kutton-.;
        "utton; ( ne$ java.a$t.Kutton-.;
        "uttonC ( ne$ java.a$t.Kutton-.;
        setDe,aultClose4peration-java!.s$ing.>indo$Constants.L968408CL4S.;
        add>indo$Listener-ne$ java.a$t.event.>indo$#dapter-. '
            pu"lic void $indo$Closed-java.a$t.event.>indo$vent evt. '
                ,orm>indo$Closed-evt.;
            <
            pu"lic void $indo$Closing-java.a$t.event.>indo$vent evt. '
                ,orm>indo$Closing-evt.;
            <
        <.;
        "uttonF.setLa"el-3A0R#6 SL9P3.;
        "uttonF.add#ctionListener-ne$ java.a$t.event.#ctionListener-. '
            pu"lic void actionPer,ormed-java.a$t.event.#ctionvent evt. '
                "uttonF#ctionPer,ormed-evt.;
            <
        <.;
        "uttonG.setLa"el-3L963.;
        "uttonG.add#ctionListener-ne$ java.a$t.event.#ctionListener-. '
            pu"lic void actionPer,ormed-java.a$t.event.#ctionvent evt. '
                "uttonG#ctionPer,ormed-evt.;
            <
        <.;
        "uttonD.setLa"el-329> D6#9LS3.;
        "uttonD.add#ctionListener-ne$ java.a$t.event.#ctionListener-. '
            pu"lic void actionPer,ormed-java.a$t.event.#ctionvent evt. '
                "uttonD#ctionPer,ormed-evt.;
            <
        <.;
        "utton;.setLa"el-3MPL47 L9S63.;
        "utton;.add#ctionListener-ne$ java.a$t.event.#ctionListener-. '
            pu"lic void actionPer,ormed-java.a$t.event.#ctionvent evt. '
                "utton;#ctionPer,ormed-evt.;
            <
        <.;
        "uttonC.setLa"el-3#DD MPL473.;
        "uttonC.add#ctionListener-ne$ java.a$t.event.#ctionListener-. '
            pu"lic void actionPer,ormed-java.a$t.event.#ctionvent evt. '
                "uttonC#ctionPer,ormed-evt.;
            <
        <.;
        java!.s$ing.AroupLayout layout ( ne$ java!.s$ing.AroupLayout-getContentPane-..;
        getContentPane-..setLayout-layout.;
        layout.setMoriOontalAroup-
            layout.createParallelAroup-java!.s$ing.AroupLayout.#lignment.L#D90A.
-3
            .addComponent-"uttonC1 java!.s$ing.AroupLayout.D&#:L68S9P1 CCE1 S/ort.M#L82#L:.
            .addComponent-"utton;1 java!.s$ing.AroupLayout.D&#:L68S9P1 CCE1 S/ort.M#L82#L:.
            .addComponent-"uttonD1 java!.s$ing.AroupLayout.#lignment.6R#9L90A1 java!.s$ing.AroupLayout.D&#:L68S9P1 
CCE1 S/ort.M#L82#L:.
            .addComponent-"uttonF1 java!.s$ing.AroupLayout.D&#:L68S9P1 CCE1 S/ort.M#L82#L:.
            .addComponent-"uttonG1 java!.s$ing.AroupLayout.D&#:L68S9P1 CCE1 S/ort.M#L82#L:.
        .;
        layout.set2erticalAroup-
            layout.createParallelAroup-java!.s$ing.AroupLayout.#lignment.L#D90A.
            .addAroup-layout.createSequentialAroup-.
                .addComponent-"uttonC1 java!.s$ing.AroupLayout.PR&RRD8S9P1 EG1 
java!.s$ing.AroupLayout.PR&RRD8S9P.
                .addAap-;1 ;1 ;.
                .addComponent-"utton;1 java!.s$ing.AroupLayout.PR&RRD8S9P1 EF1 
java!.s$ing.AroupLayout.PR&RRD8S9P.
                .addAap-;1 ;1 ;.
                .addComponent-"uttonD1 java!.s$ing.AroupLayout.PR&RRD8S9P1 F;1 
java!.s$ing.AroupLayout.PR&RRD8S9P.
                .addAap-C1 C1 C.
                .addComponent-"uttonF1 java!.s$ing.AroupLayout.PR&RRD8S9P1 EJ1 
java!.s$ing.AroupLayout.PR&RRD8S9P.
                .addAap-C1 C1 C.
                .addComponent-"uttonG1 java!.s$ing.AroupLayout.PR&RRD8S9P1 EG1 
java!.s$ing.AroupLayout.PR&RRD8S9P..
        .;
        pack-.;
    <** ?*editor@,oldB                        
private void "uttonF#ctionPer,ormed-java.a$t.event.#ctionvent evt. '                                        
        ** 64D4 add your /andling code /ere5
         mpSlip emp ( ne$ mpSlip-.;
<                                       
private void "uttonC#ctionPer,ormed-java.a$t.event.#ctionvent evt. '                                        
        try '
** 64D4 add your /andling code /ere5
            t/is.set2isi"le-,alse.;
            #ddmp emp ( ne$ #ddmp-.;
        < catc/ -Class0ot&ound!ception e!. '                                       
            Logger.getLogger-Menuscrn.class.get0ame-...log-Level.S2R1 null1 e!.;
        < catc/ -SQL!ception e!. '
            Logger.getLogger-Menuscrn.class.get0ame-...log-Level.S2R1 null1 e!.;
        <
<
private void "utton;#ctionPer,ormed-java.a$t.event.#ctionvent evt. '                                        
        try '
** 64D4 add your /andling code /ere5
            t/is.set2isi"le-,alse.;
            mpList emp ( ne$ mpList-.;
        < catc/ -Class0ot&ound!ception e!. '                                       
            Logger.getLogger-Menuscrn.class.get0ame-...log-Level.S2R1 null1 e!.;
        < catc/ -SQL!ception e!. '
            Logger.getLogger-Menuscrn.class.get0ame-...log-Level.S2R1 null1 e!.;
        <
.4
<
private void "uttonD#ctionPer,ormed-java.a$t.event.#ctionvent evt. '                                        
        try '
** 64D4 add your /andling code /ere5
            t/is.set2isi"le-,alse.;
            mpDetail emp ( ne$ mpDetail-.;
        < catc/ -Class0ot&ound!ception e!. '                                       
            Logger.getLogger-Menuscrn.class.get0ame-...log-Level.S2R1 null1 e!.;
        < catc/ -SQL!ception e!. '
            Logger.getLogger-Menuscrn.class.get0ame-...log-Level.S2R1 null1 e!.;
        <
<                                       
private void "uttonG#ctionPer,ormed-java.a$t.event.#ctionvent evt. '                                        
** 64D4 add your /andling code /ere5
 System.e!it-).;
<                                       
private void ,orm>indo$Closed-java.a$t.event.>indo$vent evt. '                                  
** 64D4 add your /andling code /ere5
    
<                                 
private void ,orm>indo$Closing-java.a$t.event.>indo$vent evt. '                                   
** 64D4 add your /andling code /ere5
    
<                                  
    *++
    + =param args t/e command line arguments
    +*
    pu"lic static void main-String argsST. '
        java.a$t.ventQueue.invokeLater-ne$ Runna"le-. '
            pu"lic void run-. '
                ne$ Menuscrn-..set2isi"le-true.;
            <
        <.;
    <
    ** 2aria"les declaration @ do not modi,y                     
    private java.a$t.Kutton "utton;;
    private java.a$t.Kutton "uttonC;
    private java.a$t.Kutton "uttonD;
    private java.a$t.Kutton "uttonF;
    private java.a$t.Kutton "uttonG;
    ** nd o, varia"les declaration                   
<
.1
*+
 * EmpList.java
 +*
 package employeemanagement;
import java.sql.Statement;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQL!ception;
import java.util.logging.Level;
import java.util.logging.Logger;
pu"lic class mpList e!tends java!.s$ing.%&rame '
    Connection con;
    Statement stmt;
    PreparedStatement stat;
    ResultSet rs;
    *++ Creates ne$ ,orm mpList +*
    pu"lic mpList-. t/ro$s Class0ot&ound!ception1 SQL!ception '
        initComponents-.;
        t/is.set2isi"le-true.;
        te!t#rea;.setdita"le-,alse.;
        Class.,or0ame-3sun.jd"c.od"c.%d"c4d"cDriver3.;
        con(DriverManager.getConnection-3jd"c5od"c5mployee3.;
        stmt(con.createStatement-.;
        rs(stmt.e!ecuteQuery-3Select + ,rom emp3.;
        te!t#rea;.append-30ameWtWt#ddressWtWtWtPostWtWtMP9DWn3.;
        $/ile-rs.ne!t-..
        '
            te!t#rea;.append-rs.getString-;.R3Wt3.;
            te!t#rea;.append-rs.getString-C.R3Wt3.;
            te!t#rea;.append-rs.getString-D.R3Wt3.;
            te!t#rea;.append-9nteger.toString-rs.get9nt-;)..R3Wt3.;
            te!t#rea;.append-3Wn3.;
        <
    <
    *++ 6/is met/od is called ,rom $it/in t/e constructor to
     + initialiOe t/e ,orm.
     + >#R090A5 Do 046 modi,y t/is code. 6/e content o, t/is met/od is
     + al$ays regenerated "y t/e &orm ditor.
     +*
    =Suppress>arnings-3unc/ecked3.
    ** ?editor@,old de,aultstate(3collapsed3 desc(3Aenerated Code3B                          
    private void initComponents-. '
        menuKar; ( ne$ java.a$t.MenuKar-.;
        menu; ( ne$ java.a$t.Menu-.;
        te!t#rea; ( ne$ java.a$t.6e!t#rea-.;
        "utton; ( ne$ java.a$t.Kutton-.;
        menu;.setLa"el-3Menu3.;
        menuKar;.add-menu;.;
.+
        setDe,aultClose4peration-java!.s$ing.>indo$Constants.L968408CL4S.;
        "utton;.setLa"el-3Kack3.;
        "utton;.add#ctionListener-ne$ java.a$t.event.#ctionListener-. '
            pu"lic void actionPer,ormed-java.a$t.event.#ctionvent evt. '
                "utton;#ctionPer,ormed-evt.;
            <
        <.;
        java!.s$ing.AroupLayout layout ( ne$ java!.s$ing.AroupLayout-getContentPane-..;
        getContentPane-..setLayout-layout.;
        layout.setMoriOontalAroup-
            layout.createParallelAroup-java!.s$ing.AroupLayout.#lignment.L#D90A.
            .addComponent-te!t#rea;1 java!.s$ing.AroupLayout.D&#:L68S9P1 HCD1 S/ort.M#L82#L:.
            .addAroup-java!.s$ing.AroupLayout.#lignment.6R#9L90A1 layout.createSequentialAroup-.
                .addContainerAap-DCI1 S/ort.M#L82#L:.
                .addComponent-"utton;1 java!.s$ing.AroupLayout.PR&RRD8S9P1 JF1 
java!.s$ing.AroupLayout.PR&RRD8S9P.
                .addAap-D))1 D))1 D))..
        .;
        layout.set2erticalAroup-
            layout.createParallelAroup-java!.s$ing.AroupLayout.#lignment.L#D90A.
            .addAroup-layout.createSequentialAroup-.
                .addComponent-te!t#rea;1 java!.s$ing.AroupLayout.PR&RRD8S9P1 EDJ1 
java!.s$ing.AroupLayout.PR&RRD8S9P.
                .addPre,erredAap-java!.s$ing.LayoutStyle.ComponentPlacement.RL#6D1 ;E1 S/ort.M#L82#L:.
                .addComponent-"utton;1 java!.s$ing.AroupLayout.PR&RRD8S9P1 java!.s$ing.AroupLayout.D&#:L68S9P1 
java!.s$ing.AroupLayout.PR&RRD8S9P.
                .addContainerAap-..
        .;
        pack-.;
    <** ?*editor@,oldB                        
private void "utton;#ctionPer,ormed-java.a$t.event.#ctionvent evt. '                                        
** 64D4 add your /andling code /ere5
    t/is.set2isi"le-,alse.;
    Menuscrn menu ( ne$ Menuscrn-.;
    menu.set2isi"le-true.;
<                                       
    *++
    + =param args t/e command line arguments
    +*
    pu"lic static void main-String argsST. '
        java.a$t.ventQueue.invokeLater-ne$ Runna"le-. '
            pu"lic void run-. '
                try '
                    ne$ mpList-..set2isi"le-true.;
                < catc/ -Class0ot&ound!ception e!. '
                    Logger.getLogger-mpList.class.get0ame-...log-Level.S2R1 null1 e!.;
                < catc/ -SQL!ception e!. '
                    Logger.getLogger-mpList.class.get0ame-...log-Level.S2R1 null1 e!.;
                <
            <
        <.;
.,
    <
    ** 2aria"les declaration @ do not modi,y                     
    private java.a$t.Kutton "utton;;
    private java.a$t.Menu menu;;
    private java.a$t.MenuKar menuKar;;
    private java.a$t.6e!t#rea te!t#rea;;
    ** nd o, varia"les declaration                   
<
.-
*+
 + EmpDetail.java
 +*
package employeemanagement;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQL!ception;
import java.sql.Statement;
import java.util.logging.Level;
import java.util.logging.Logger;
pu"lic class mpDetail e!tends java!.s$ing.%&rame '
        Connection con;
        Statement stmt;
        PreparedStatement stat;
        ResultSet rs;
        int i();
        **int selected8id;
    *++ Creates ne$ ,orm mpDetail +*
    pu"lic mpDetail-. t/ro$s Class0ot&ound!ception1 SQL!ception '
        initComponents-.;
        t/is.set2isi"le-true.;
        te!t&ield;.setdita"le-,alse.;
        te!t&ieldC.setdita"le-,alse.;
        te!t&ield;D.setdita"le-,alse.;
        te!t&ieldI.setdita"le-,alse.;
        te!t&ield;E.setdita"le-,alse.;
        te!t&ieldJ.setdita"le-,alse.;
        te!t&ield;).setdita"le-,alse.;
        te!t&ield;;.setdita"le-,alse.;
        te!t&ield;C.setdita"le-,alse.;
        "utton;.setna"led-,alse.;
        "uttonC.setna"led-,alse.;
        Class.,or0ame-3sun.jd"c.od"c.%d"c4d"cDriver3.;
        con(DriverManager.getConnection-3jd"c5od"c5mployee3.;
        stmt(con.createStatement-.;
        rs(stmt.e!ecuteQuery-3Select + ,rom emp3.;
        $/ile-rs.ne!t-..
        '
            c/oice;.insert-9nteger.toString-rs.get9nt-;)..1 i.;
        <
       
    <
    *++ 6/is met/od is called ,rom $it/in t/e constructor to
     + initialiOe t/e ,orm.
     + >#R090A5 Do 046 modi,y t/is code. 6/e content o, t/is met/od is
     + al$ays regenerated "y t/e &orm ditor.
     +*
    =Suppress>arnings-3unc/ecked3.
    ** ?editor@,old de,aultstate(3collapsed3 desc(3Aenerated Code3B                          
    private void initComponents-. '
..
        la"el; ( ne$ java.a$t.La"el-.;
        la"elF ( ne$ java.a$t.La"el-.;
        la"elC ( ne$ java.a$t.La"el-.;
        la"elE ( ne$ java.a$t.La"el-.;
        la"elD ( ne$ java.a$t.La"el-.;
        te!t&ield; ( ne$ java.a$t.6e!t&ield-.;
        te!t&ieldC ( ne$ java.a$t.6e!t&ield-.;
        te!t&ield;D ( ne$ java.a$t.6e!t&ield-.;
        te!t&ieldI ( ne$ java.a$t.6e!t&ield-.;
        te!t&ield;E ( ne$ java.a$t.6e!t&ield-.;
        te!t&ieldJ ( ne$ java.a$t.6e!t&ield-.;
        te!t&ield;) ( ne$ java.a$t.6e!t&ield-.;
        te!t&ield;; ( ne$ java.a$t.6e!t&ield-.;
        te!t&ield;C ( ne$ java.a$t.6e!t&ield-.;
        "utton; ( ne$ java.a$t.Kutton-.;
        la"elG ( ne$ java.a$t.La"el-.;
        la"elH ( ne$ java.a$t.La"el-.;
        la"elI ( ne$ java.a$t.La"el-.;
        la"elJ ( ne$ java.a$t.La"el-.;
        la"el;; ( ne$ java.a$t.La"el-.;
        la"el;) ( ne$ java.a$t.La"el-.;
        la"el;C ( ne$ java.a$t.La"el-.;
        "uttonC ( ne$ java.a$t.Kutton-.;
        "uttonD ( ne$ java.a$t.Kutton-.;
        c/oice; ( ne$ java.a$t.C/oice-.;
        la"el;D ( ne$ java.a$t.La"el-.;
        "uttonE ( ne$ java.a$t.Kutton-.;
        setDe,aultClose4peration-java!.s$ing.>indo$Constants.L968408CL4S.;
        la"el;.set6e!t-30#M3.;
        la"elF.set6e!t-3LPR9#0C3.;
        la"elC.set6e!t-3#DDRSS3.;
        la"elE.set6e!t-3P4S63.;
        la"elD.set6e!t-3S#L#R73.;
        "utton;.setLa"el-3D963.;
        "utton;.add#ctionListener-ne$ java.a$t.event.#ctionListener-. '
            pu"lic void actionPer,ormed-java.a$t.event.#ctionvent evt. '
                "utton;#ctionPer,ormed-evt.;
            <
        <.;
        la"elG.set6e!t-3#llo$ences3.;
        la"elH.set6e!t-3M4:S3.;
        la"elI.set6e!t-36R#2LL90A3.;
        la"elJ.set6e!t-3Deductions3.;
        la"el;;.set6e!t-390C4M 6#L3.;
./
        la"el;).set6e!t-3PR429D06 &:0D3.;
        "uttonC.setLa"el-3DL63.;
        "uttonC.add#ctionListener-ne$ java.a$t.event.#ctionListener-. '
            pu"lic void actionPer,ormed-java.a$t.event.#ctionvent evt. '
                "uttonC#ctionPer,ormed-evt.;
            <
        <.;
        "uttonD.setLa"el-3K#CN3.;
        "uttonD.add#ctionListener-ne$ java.a$t.event.#ctionListener-. '
            pu"lic void actionPer,ormed-java.a$t.event.#ctionvent evt. '
                "uttonD#ctionPer,ormed-evt.;
            <
        <.;
        la"el;D.set6e!t-3MP9D3.;
        "uttonE.setLa"el-34N3.;
        "uttonE.add#ctionListener-ne$ java.a$t.event.#ctionListener-. '
            pu"lic void actionPer,ormed-java.a$t.event.#ctionvent evt. '
                "uttonE#ctionPer,ormed-evt.;
            <
        <.;
        java!.s$ing.AroupLayout layout ( ne$ java!.s$ing.AroupLayout-getContentPane-..;
        getContentPane-..setLayout-layout.;
        layout.setMoriOontalAroup-
            layout.createParallelAroup-java!.s$ing.AroupLayout.#lignment.L#D90A.
            .addAroup-layout.createSequentialAroup-.
                .addAroup-layout.createParallelAroup-java!.s$ing.AroupLayout.#lignment.L#D90A.
                    .addAroup-layout.createSequentialAroup-.
                        .addAroup-layout.createParallelAroup-java!.s$ing.AroupLayout.#lignment.L#D90A.
                            .addAroup-layout.createSequentialAroup-.
                                .addAap-EG1 EG1 EG.
                                .addAroup-layout.createParallelAroup-java!.s$ing.AroupLayout.#lignment.L#D90A.
                                    .addComponent-la"el;1 java!.s$ing.AroupLayout.PR&RRD8S9P1 ;;G1 
java!.s$ing.AroupLayout.PR&RRD8S9P.
                                    .addComponent-la"elF1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P.
                                    .addComponent-la"elC1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P.
                                    .addComponent-la"elE1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P.
                                    .addComponent-la"elD1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P...
                            .addAroup-java!.s$ing.AroupLayout.#lignment.6R#9L90A1 layout.createSequentialAroup-.
                                .addAap-ID1 ID1 ID.
                                .addComponent-"utton;1 java!.s$ing.AroupLayout.D&#:L68S9P1 ID1 S/ort.M#L82#L:...
                        .addAroup-layout.createParallelAroup-java!.s$ing.AroupLayout.#lignment.L#D90A1 ,alse.
                            .addAroup-layout.createSequentialAroup-.
                                .addPre,erredAap-java!.s$ing.LayoutStyle.ComponentPlacement.RL#6D.
                                .addAroup-layout.createParallelAroup-java!.s$ing.AroupLayout.#lignment.L#D90A1 ,alse.
                                    .addComponent-te!t&ield;1 java!.s$ing.AroupLayout.D&#:L68S9P1 CFI1 S/ort.M#L82#L:.
.1
                                    .addComponent-te!t&ieldC1 java!.s$ing.AroupLayout.D&#:L68S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 S/ort.M#L82#L:.
                                    .addComponent-te!t&ield;D1 java!.s$ing.AroupLayout.D&#:L68S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 S/ort.M#L82#L:.
                                    .addComponent-te!t&ieldI1 java!.s$ing.AroupLayout.D&#:L68S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 S/ort.M#L82#L:.
                                    .addComponent-te!t&ield;E1 java!.s$ing.AroupLayout.D&#:L68S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 S/ort.M#L82#L:.
                                    .addComponent-te!t&ieldJ1 java!.s$ing.AroupLayout.D&#:L68S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 S/ort.M#L82#L:.
                                    .addComponent-te!t&ield;)1 java!.s$ing.AroupLayout.D&#:L68S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 S/ort.M#L82#L:.
                                    .addComponent-te!t&ield;;1 java!.s$ing.AroupLayout.D&#:L68S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 S/ort.M#L82#L:.
                                    .addComponent-te!t&ield;C1 java!.s$ing.AroupLayout.D&#:L68S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 S/ort.M#L82#L:...
                            .addAroup-layout.createSequentialAroup-.
                                .addAap-EF1 EF1 EF.
                                .addComponent-"uttonC1 java!.s$ing.AroupLayout.PR&RRD8S9P1 HI1 
java!.s$ing.AroupLayout.PR&RRD8S9P.
                                .addPre,erredAap-java!.s$ing.LayoutStyle.ComponentPlacement.RL#6D1 
java!.s$ing.AroupLayout.D&#:L68S9P1 S/ort.M#L82#L:.
                                .addComponent-"uttonE1 java!.s$ing.AroupLayout.PR&RRD8S9P1 II1 
java!.s$ing.AroupLayout.PR&RRD8S9P....
                    .addAroup-layout.createSequentialAroup-.
                        .addContainerAap-.
                        .addComponent-la"elG1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P..
                    .addAroup-layout.createSequentialAroup-.
                        .addAap-ED1 ED1 ED.
                        .addAroup-layout.createParallelAroup-java!.s$ing.AroupLayout.#lignment.L#D90A.
                            .addComponent-la"elH1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P.
                            .addComponent-la"elI1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P...
                    .addAroup-layout.createSequentialAroup-.
                        .addContainerAap-.
                        .addComponent-la"elJ1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P..
                    .addAroup-layout.createSequentialAroup-.
                        .addAap-EF1 EF1 EF.
                        .addAroup-layout.createParallelAroup-java!.s$ing.AroupLayout.#lignment.L#D90A.
                            .addComponent-la"el;;1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P.
                            .addComponent-la"el;)1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P..
                        .addPre,erredAap-java!.s$ing.LayoutStyle.ComponentPlacement.RL#6D1 CHJ1 S/ort.M#L82#L:...
                .addAroup-layout.createParallelAroup-java!.s$ing.AroupLayout.#lignment.L#D90A.
                    .addAroup-layout.createSequentialAroup-.
                        .addAap-;I1 ;I1 ;I.
                        .addComponent-la"el;D1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P.
                        .addAap-CC1 CC1 CC.
                        .addComponent-c/oice;1 java!.s$ing.AroupLayout.PR&RRD8S9P1 H)1 
java!.s$ing.AroupLayout.PR&RRD8S9P..
                    .addAroup-layout.createSequentialAroup-.
.2
                        .addAap-DG1 DG1 DG.
                        .addComponent-"uttonD1 java!.s$ing.AroupLayout.PR&RRD8S9P1 IC1 
java!.s$ing.AroupLayout.PR&RRD8S9P...
                .addContainerAap-..
            .addAroup-layout.createSequentialAroup-.
                .addAap-GJ1 GJ1 GJ.
                .addComponent-la"el;C1 java!.s$ing.AroupLayout.D&#:L68S9P1 CEE1 S/ort.M#L82#L:.
                .addAap-CIC1 CIC1 CIC..
        .;
        layout.set2erticalAroup-
            layout.createParallelAroup-java!.s$ing.AroupLayout.#lignment.L#D90A.
            .addAroup-layout.createSequentialAroup-.
                .addAap-C)1 C)1 C).
                .addAroup-layout.createParallelAroup-java!.s$ing.AroupLayout.#lignment.L#D90A.
                    .addAroup-layout.createSequentialAroup-.
                        .addAroup-layout.createParallelAroup-java!.s$ing.AroupLayout.#lignment.L#D90A1 ,alse.
                            .addAroup-layout.createSequentialAroup-.
                                .addComponent-la"el;1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P.
                                .addPre,erredAap-java!.s$ing.LayoutStyle.ComponentPlacement.RL#6D.
                                .addComponent-la"elC1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P.
                                .addPre,erredAap-java!.s$ing.LayoutStyle.ComponentPlacement.RL#6D.
                                .addComponent-la"elE1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P..
                            .addAroup-layout.createSequentialAroup-.
                                .addComponent-te!t&ield;1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P.
                                .addPre,erredAap-java!.s$ing.LayoutStyle.ComponentPlacement.RL#6D.
                                .addComponent-te!t&ieldC1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P.
                                .addPre,erredAap-java!.s$ing.LayoutStyle.ComponentPlacement.RL#6D1 
java!.s$ing.AroupLayout.D&#:L68S9P1 S/ort.M#L82#L:.
                                .addComponent-te!t&ield;D1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P...
                        .addPre,erredAap-java!.s$ing.LayoutStyle.ComponentPlacement.RL#6D.
                        .addAroup-layout.createParallelAroup-java!.s$ing.AroupLayout.#lignment.L#D90A.
                            .addAroup-layout.createSequentialAroup-.
                                .addComponent-la"elF1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P.
                                .addPre,erredAap-java!.s$ing.LayoutStyle.ComponentPlacement.RL#6D.
                                .addComponent-la"elD1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P..
                            .addAroup-layout.createSequentialAroup-.
                                .addComponent-te!t&ieldI1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P.
                                .addPre,erredAap-java!.s$ing.LayoutStyle.ComponentPlacement.RL#6D.
                                .addComponent-te!t&ield;E1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P...
                        .addPre,erredAap-java!.s$ing.LayoutStyle.ComponentPlacement.RL#6D.
                        .addAroup-layout.createParallelAroup-java!.s$ing.AroupLayout.#lignment.6R#9L90A.
                            .addAroup-layout.createSequentialAroup-.
                                .addComponent-la"elG1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P.
                                .addAap-C1 C1 C.
.3
                                .addComponent-la"elH1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P..
                            .addComponent-te!t&ieldJ1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P..
                        .addPre,erredAap-java!.s$ing.LayoutStyle.ComponentPlacement.RL#6D.
                        .addAroup-layout.createParallelAroup-java!.s$ing.AroupLayout.#lignment.L#D90A1 ,alse.
                            .addAroup-layout.createSequentialAroup-.
                                .addComponent-la"elI1 java!.s$ing.AroupLayout.PR&RRD8S9P1 C)1 
java!.s$ing.AroupLayout.PR&RRD8S9P.
                                .addPre,erredAap-java!.s$ing.LayoutStyle.ComponentPlacement.RL#6D.
                                .addComponent-la"elJ1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P.
                                .addPre,erredAap-java!.s$ing.LayoutStyle.ComponentPlacement.RL#6D.
                                .addComponent-la"el;)1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P..
                            .addAroup-layout.createSequentialAroup-.
                                .addComponent-te!t&ield;)1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P.
                                .addPre,erredAap-java!.s$ing.LayoutStyle.ComponentPlacement.RL#6D1 
java!.s$ing.AroupLayout.D&#:L68S9P1 S/ort.M#L82#L:.
                                .addComponent-te!t&ield;;1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P...
                        .addPre,erredAap-java!.s$ing.LayoutStyle.ComponentPlacement.RL#6D.
                        .addAroup-layout.createParallelAroup-java!.s$ing.AroupLayout.#lignment.L#D90A.
                            .addComponent-la"el;;1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P.
                            .addComponent-te!t&ield;C1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P...
                    .addComponent-la"el;D1 java!.s$ing.AroupLayout.PR&RRD8S9P1 java!.s$ing.AroupLayout.D&#:L68S9P1 
java!.s$ing.AroupLayout.PR&RRD8S9P.
                    .addComponent-c/oice;1 java!.s$ing.AroupLayout.PR&RRD8S9P1 java!.s$ing.AroupLayout.D&#:L68S9P1
java!.s$ing.AroupLayout.PR&RRD8S9P..
                .addAap-ID1 ID1 ID.
                .addAroup-layout.createParallelAroup-java!.s$ing.AroupLayout.#lignment.L#D90A.
                    .addAroup-layout.createSequentialAroup-.
                        .addAroup-layout.createParallelAroup-java!.s$ing.AroupLayout.#lignment.L#D90A.
                            .addComponent-"utton;1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P.
                            .addComponent-"uttonC1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P..
                        .addPre,erredAap-java!.s$ing.LayoutStyle.ComponentPlacement.RL#6D.
                        .addComponent-la"el;C1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P..
                    .addComponent-"uttonD1 java!.s$ing.AroupLayout.PR&RRD8S9P1 java!.s$ing.AroupLayout.D&#:L68S9P1
java!.s$ing.AroupLayout.PR&RRD8S9P.
                    .addComponent-"uttonE1 java!.s$ing.AroupLayout.PR&RRD8S9P1 java!.s$ing.AroupLayout.D&#:L68S9P1
java!.s$ing.AroupLayout.PR&RRD8S9P..
                .addContainerAap-java!.s$ing.AroupLayout.D&#:L68S9P1 S/ort.M#L82#L:..
        .;
        pack-.;
    <** ?*editor@,oldB                        
private void "utton;#ctionPer,ormed-java.a$t.event.#ctionvent evt. '                                        
        te!t&ield;.setdita"le-true.;
        te!t&ieldC.setdita"le-true.;
/4
        te!t&ield;D.setdita"le-true.;
        te!t&ieldI.setdita"le-true.;
        te!t&ield;E.setdita"le-true.;
        te!t&ieldJ.setdita"le-true.;
        te!t&ield;).setdita"le-true.;
        te!t&ield;;.setdita"le-true.;
        te!t&ield;C.setdita"le-true.;
        "utton;.setLa"el-3S#23.;
        **evt.setSource-30:LL3.;
        int selected8id (9nteger.parse9nt-la"el;C.get6e!t-..;
        i,-evt.get#ctionCommand-..equals-3S#23..
        '
            try '
                stat(con.prepareStatement-3:PD#6 mp S6 0ame ( Q1#ddress ( Q1Post ( Q1!periance ( Q1Salary ( Q1MR# 
( Q16# ( Q1P& ( Q196a! ( Q >MR id(3R selected8id.;
                stat.setString-;1te!t&ield;.get6e!t-..;
                stat.setString-C1 te!t&ieldC.get6e!t-..;
                stat.setString-D1 te!t&ield;D.get6e!t-..;
                stat.set9nt-E19nteger.parse9nt-te!t&ieldI.get6e!t-...;
                stat.set9nt-F19nteger.parse9nt-te!t&ield;E.get6e!t-...;
                stat.set9nt-G19nteger.parse9nt-te!t&ieldJ.get6e!t-...;
                stat.set9nt-H19nteger.parse9nt-te!t&ield;).get6e!t-...;
                stat.set9nt-I19nteger.parse9nt-te!t&ield;;.get6e!t-...;
                stat.set9nt-J19nteger.parse9nt-te!t&ield;C.get6e!t-...;
                stat.e!ecute:pdate-.;
                la"el;C.set6e!t-3S#2D3.;
            < catc/ -SQL!ception e!. '
                Logger.getLogger-mpDetail.class.get0ame-...log-Level.S2R1 null1 e!.;
            <
        <
        
<                                       
private void "uttonE#ctionPer,ormed-java.a$t.event.#ctionvent evt. '                                        
        try '
** 64D4 add your /andling code /ere5
            la"el;C.set6e!t-c/oice;.getSelected9tem-..toString-..;
            int selected8id (9nteger.parse9nt-la"el;C.get6e!t-..;
            try '
                stmt ( con.createStatement-.;
            < catc/ -SQL!ception e!. '
                Logger.getLogger-mpDetail.class.get0ame-...log-Level.S2R1 null1 e!.;
            <
            try '
                rs ( stmt.e!ecuteQuery-3Select + ,rom emp >MR id(3R selected8id.;
            < catc/ -SQL!ception e!. '
                Logger.getLogger-mpDetail.class.get0ame-...log-Level.S2R1 null1 e!.;
            <
            $/ile-rs.ne!t-..
            '
            te!t&ield;.set6e!t-rs.getString-;..;
            te!t&ieldC.set6e!t-rs.getString-C..;
            te!t&ield;D.set6e!t-rs.getString-D..;
            te!t&ieldI.set6e!t-9nteger.toString-rs.get9nt-E...;
            te!t&ield;E.set6e!t-9nteger.toString-rs.get9nt-F...;
            te!t&ieldJ.set6e!t-9nteger.toString-rs.get9nt-G...;
/1
            te!t&ield;).set6e!t-9nteger.toString-rs.get9nt-H...;
            te!t&ield;;.set6e!t-9nteger.toString-rs.get9nt-I...;
            te!t&ield;C.set6e!t-9nteger.toString-rs.get9nt-J...;
            <
            "utton;.setna"led-true.;
            "uttonC.setna"led-true.;
        <catc/ -SQL!ception e!. '
            Logger.getLogger-mpDetail.class.get0ame-...log-Level.S2R1 null1 e!.;
        <
<                                       
private void "uttonD#ctionPer,ormed-java.a$t.event.#ctionvent evt. '                                        
** 64D4 add your /andling code /ere5
    t/is.set2isi"le-,alse.;
        try '
            con.close-.;
        < catc/ -SQL!ception e!. '
            Logger.getLogger-mpDetail.class.get0ame-...log-Level.S2R1 null1 e!.;
        <
    Menuscrn menu ( ne$ Menuscrn-.;
    menu.set2isi"le-true.;
<                                       
private void "uttonC#ctionPer,ormed-java.a$t.event.#ctionvent evt. '                                        
        try '
** 64D4 add your /andling code /ere5
            "uttonC.setLa"el-3S#23.;
            int selected8id ( 9nteger.parse9nt-la"el;C.get6e!t-..;
            stat ( con.prepareStatement-3DL6 ,rom mp >MR id ( Q3.;
            stat.set9nt-;1 selected8id.;
            i, -evt.get#ctionCommand-..equals-3S#23.. '
                stat.e!ecute:pdate-.;
                la"el;C.set6e!t-3CM#0AS S#2D3.;
            <
        < catc/ -SQL!ception e!. '
            Logger.getLogger-mpDetail.class.get0ame-...log-Level.S2R1 null1 e!.;
        <
<                                       
    *++
    + =param args t/e command line arguments
    +*
    pu"lic static void main-String argsST. '
        java.a$t.ventQueue.invokeLater-ne$ Runna"le-. '
            pu"lic void run-. '
                try '
                    ne$ mpDetail-..set2isi"le-true.;
                < catc/ -Class0ot&ound!ception e!. '
                    Logger.getLogger-mpDetail.class.get0ame-...log-Level.S2R1 null1 e!.;
                < catc/ -SQL!ception e!. '
                    Logger.getLogger-mpDetail.class.get0ame-...log-Level.S2R1 null1 e!.;
                <
            <
        <.;
    <
/+
    ** 2aria"les declaration @ do not modi,y                     
    private java.a$t.Kutton "utton;;
    private java.a$t.Kutton "uttonC;
    private java.a$t.Kutton "uttonD;
    private java.a$t.Kutton "uttonE;
    private java.a$t.C/oice c/oice;;
    private java.a$t.La"el la"el;;
    private java.a$t.La"el la"el;);
    private java.a$t.La"el la"el;;;
    private java.a$t.La"el la"el;C;
    private java.a$t.La"el la"el;D;
    private java.a$t.La"el la"elC;
    private java.a$t.La"el la"elD;
    private java.a$t.La"el la"elE;
    private java.a$t.La"el la"elF;
    private java.a$t.La"el la"elG;
    private java.a$t.La"el la"elH;
    private java.a$t.La"el la"elI;
    private java.a$t.La"el la"elJ;
    private java.a$t.6e!t&ield te!t&ield;;
    private java.a$t.6e!t&ield te!t&ield;);
    private java.a$t.6e!t&ield te!t&ield;;;
    private java.a$t.6e!t&ield te!t&ield;C;
    private java.a$t.6e!t&ield te!t&ield;D;
    private java.a$t.6e!t&ield te!t&ield;E;
    private java.a$t.6e!t&ield te!t&ieldC;
    private java.a$t.6e!t&ield te!t&ieldI;
    private java.a$t.6e!t&ield te!t&ieldJ;
    ** nd o, varia"les declaration                   
<
/,
*+
 + EmpSlip.java
 +*
 package employeemanagement;
import java.a$t.Meadless!ception;
import java.a$t.print.Page&ormat;
import java.a$t.print.Pagea"le;
import java.a$t.print.Printa"le;
import java.a$t.print.Printer!ception;
import java.a$t.print.Printer%o";
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQL!ception;
import java.sql.Statement;
import java.te!t.SimpleDate&ormat;
import java.util.Calendar;
import java.util.Date;
import java.util.logging.Level;
import java.util.logging.Logger;
pu"lic class mpSlip e!tends java!.s$ing.%&rame '
       
        Connection con;
        Statement stmt;
        PreparedStatement stat;
        ResultSet rs;
        int i();
    *++ Creates ne$ ,orm mpSlip +*
    pu"lic mpSlip-. '
        try '
            initComponents-.;
            t/is.set2isi"le-true.;
            "uttonC.setna"led-,alse.;
            Calendar cal(Calendar.get9nstance-.;
            Date no$(ne$ Date-.;
            no$(cal.get6ime-.;
            SimpleDate&ormat ,ormatter(ne$ SimpleDate&ormat-.;
           ** System.out.println-no$.;
            la"el;I.set6e!t-,ormatter.,ormat-no$..;
            Class.,or0ame-3sun.jd"c.od"c.%d"c4d"cDriver3.;
            con ( DriverManager.getConnection-3jd"c5od"c5mployee3.;
            stmt ( con.createStatement-rs.67P8SCR4LL8S0S96921rs.C40C:R8R#D840L7.;
            rs ( stmt.e!ecuteQuery-3Select + ,rom emp3.;
            $/ile -rs.ne!t-.. '
                c/oice;.insert-9nteger.toString-rs.get9nt-;)..1RRi.;
            <
        < catc/ -SQL!ception e!. '
            Logger.getLogger-mpSlip.class.get0ame-...log-Level.S2R1 null1 e!.;
        < catc/ -Class0ot&ound!ception e!. '
            Logger.getLogger-mpSlip.class.get0ame-...log-Level.S2R1 null1 e!.;
        <
    <
/-
    *++ 6/is met/od is called ,rom $it/in t/e constructor to
     + initialiOe t/e ,orm.
     + >#R090A5 Do 046 modi,y t/is code. 6/e content o, t/is met/od is
     + al$ays regenerated "y t/e &orm ditor.
     +*
    =Suppress>arnings-3unc/ecked3.
    ** ?editor@,old de,aultstate(3collapsed3 desc(3Aenerated Code3B                          
    private void initComponents-. '
        la"el; ( ne$ java.a$t.La"el-.;
        la"elC ( ne$ java.a$t.La"el-.;
        "utton; ( ne$ java.a$t.Kutton-.;
        "uttonC ( ne$ java.a$t.Kutton-.;
        c/oice; ( ne$ java.a$t.C/oice-.;
        la"elD ( ne$ java.a$t.La"el-.;
        la"elE ( ne$ java.a$t.La"el-.;
        la"elF ( ne$ java.a$t.La"el-.;
        la"elH ( ne$ java.a$t.La"el-.;
        la"elI ( ne$ java.a$t.La"el-.;
        la"elJ ( ne$ java.a$t.La"el-.;
        la"el;) ( ne$ java.a$t.La"el-.;
        la"el;; ( ne$ java.a$t.La"el-.;
        la"el;C ( ne$ java.a$t.La"el-.;
        la"el;D ( ne$ java.a$t.La"el-.;
        la"el;E ( ne$ java.a$t.La"el-.;
        la"el;F ( ne$ java.a$t.La"el-.;
        la"el;G ( ne$ java.a$t.La"el-.;
        la"el;H ( ne$ java.a$t.La"el-.;
        la"elG ( ne$ java.a$t.La"el-.;
        "uttonD ( ne$ java.a$t.Kutton-.;
        la"el;I ( ne$ java.a$t.La"el-.;
        setDe,aultClose4peration-java!.s$ing.>indo$Constants.L968408CL4S.;
        setKackground-ne$ java.a$t.Color-CFF1 CFF1 CFF..;
        la"el;.setKackground-ne$ java.a$t.Color-)1 )1 )..;
        la"el;.set&oreground-ne$ java.a$t.Color-CFF1 CFF1 CFF..;
        la"el;.set6e!t-3C4MP:6R A0R#6D P#7SL9P3.;
        la"elC.setKackground-ne$ java.a$t.Color-CFF1 CFF1 CFF..;
        la"elC.set&oreground-ne$ java.a$t.Color-)1 )1 )..;
        "utton;.setLa"el-34N3.;
        "utton;.add#ctionListener-ne$ java.a$t.event.#ctionListener-. '
            pu"lic void actionPer,ormed-java.a$t.event.#ctionvent evt. '
                "utton;#ctionPer,ormed-evt.;
            <
        <.;
        "uttonC.setLa"el-3PR9063.;
        "uttonC.add#ctionListener-ne$ java.a$t.event.#ctionListener-. '
            pu"lic void actionPer,ormed-java.a$t.event.#ctionvent evt. '
                "uttonC#ctionPer,ormed-evt.;
            <
        <.;
/.
        la"elD.set6e!t-3MP 9D3.;
        la"elE.set6e!t-3K#S9C P#73.;
        la"elF.set6e!t-3R M4:S #LL4>#0C3.;
        la"elH.set6e!t-3R 6R#2LL90A #LL4>#0C3.;
        la"elI.setKackground-ne$ java.a$t.Color-CFF1 CFF1 CFF..;
        la"elI.set&oreground-ne$ java.a$t.Color-)1 )1 )..;
        la"elJ.set6e!t-3@ PR429D06 &:0D3.;
        la"el;).set6e!t-3@ 90C4M 6#L3.;
        la"el;G.set6e!t-306 P#73.;
        la"el;H.set6e!t-3@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@3.;
        "uttonD.setLa"el-3K#CN3.;
        "uttonD.add#ctionListener-ne$ java.a$t.event.#ctionListener-. '
            pu"lic void actionPer,ormed-java.a$t.event.#ctionvent evt. '
                "uttonD#ctionPer,ormed-evt.;
            <
        <.;
        java!.s$ing.AroupLayout layout ( ne$ java!.s$ing.AroupLayout-getContentPane-..;
        getContentPane-..setLayout-layout.;
        layout.setMoriOontalAroup-
            layout.createParallelAroup-java!.s$ing.AroupLayout.#lignment.L#D90A.
            .addAroup-layout.createSequentialAroup-.
                .addAroup-layout.createParallelAroup-java!.s$ing.AroupLayout.#lignment.L#D90A.
                    .addAroup-layout.createSequentialAroup-.
                        .addAroup-layout.createParallelAroup-java!.s$ing.AroupLayout.#lignment.L#D90A.
                            .addAroup-layout.createSequentialAroup-.
                                .addContainerAap-.
                                .addComponent-la"elH1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P..
                            .addAroup-layout.createSequentialAroup-.
                                .addAap-;J1 ;J1 ;J.
                                .addComponent-la"elE1 java!.s$ing.AroupLayout.PR&RRD8S9P1 ;)H1 
java!.s$ing.AroupLayout.PR&RRD8S9P..
                            .addAroup-layout.createSequentialAroup-.
                                .addContainerAap-.
                                .addComponent-la"elF1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P..
                            .addAroup-layout.createSequentialAroup-.
                                .addContainerAap-.
                                .addAroup-layout.createParallelAroup-java!.s$ing.AroupLayout.#lignment.6R#9L90A1 ,alse.
                                    .addComponent-la"elJ1 java!.s$ing.AroupLayout.#lignment.L#D90A1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.D&#:L68S9P1 S/ort.M#L82#L:.
                                    .addComponent-la"el;)1 java!.s$ing.AroupLayout.#lignment.L#D90A1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.D&#:L68S9P1 S/ort.M#L82#L:....
                        .addPre,erredAap-java!.s$ing.LayoutStyle.ComponentPlacement.RL#6D.
                        .addAroup-layout.createParallelAroup-java!.s$ing.AroupLayout.#lignment.L#D90A.
//
                            .addComponent-la"elC1 java!.s$ing.AroupLayout.PR&RRD8S9P1 FFG1 
java!.s$ing.AroupLayout.PR&RRD8S9P.
                            .addAroup-layout.createParallelAroup-java!.s$ing.AroupLayout.#lignment.6R#9L90A1 ,alse.
                                .addComponent-la"el;F1 java!.s$ing.AroupLayout.#lignment.L#D90A1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.D&#:L68S9P1 S/ort.M#L82#L:.
                                .addComponent-la"el;E1 java!.s$ing.AroupLayout.#lignment.L#D90A1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.D&#:L68S9P1 S/ort.M#L82#L:.
                                .addComponent-la"el;D1 java!.s$ing.AroupLayout.#lignment.L#D90A1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.D&#:L68S9P1 S/ort.M#L82#L:.
                                .addComponent-la"el;C1 java!.s$ing.AroupLayout.#lignment.L#D90A1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.D&#:L68S9P1 S/ort.M#L82#L:.
                                .addComponent-la"el;;1 java!.s$ing.AroupLayout.#lignment.L#D90A1 
java!.s$ing.AroupLayout.D&#:L68S9P1 JJ1 S/ort.M#L82#L:.
                                .addComponent-la"elI1 java!.s$ing.AroupLayout.#lignment.L#D90A1 
java!.s$ing.AroupLayout.PR&RRD8S9P1 ;FH1 java!.s$ing.AroupLayout.PR&RRD8S9P....
                    .addAroup-layout.createSequentialAroup-.
                        .addContainerAap-.
                        .addAroup-layout.createParallelAroup-java!.s$ing.AroupLayout.#lignment.L#D90A.
                            .addAroup-layout.createSequentialAroup-.
                                .addComponent-la"el;H1 java!.s$ing.AroupLayout.PR&RRD8S9P1 CCH1 
java!.s$ing.AroupLayout.PR&RRD8S9P.
                                .addPre,erredAap-java!.s$ing.LayoutStyle.ComponentPlacement.RL#6D.
                                .addComponent-"utton;1 java!.s$ing.AroupLayout.PR&RRD8S9P1 JI1 
java!.s$ing.AroupLayout.PR&RRD8S9P.
                                .addAap-FD1 FD1 FD.
                                .addComponent-"uttonC1 java!.s$ing.AroupLayout.PR&RRD8S9P1 IE1 
java!.s$ing.AroupLayout.PR&RRD8S9P.
                                .addAap-FG1 FG1 FG.
                                .addComponent-"uttonD1 java!.s$ing.AroupLayout.PR&RRD8S9P1 IE1 
java!.s$ing.AroupLayout.PR&RRD8S9P..
                            .addAroup-layout.createSequentialAroup-.
                                .addComponent-la"el;G1 java!.s$ing.AroupLayout.PR&RRD8S9P1 ;EE1 
java!.s$ing.AroupLayout.PR&RRD8S9P.
                                .addAap-CH1 CH1 CH.
                                .addComponent-la"elG1 java!.s$ing.AroupLayout.PR&RRD8S9P1 ;DH1 
java!.s$ing.AroupLayout.PR&RRD8S9P.....
                .addContainerAap-java!.s$ing.AroupLayout.D&#:L68S9P1 S/ort.M#L82#L:..
            .addAroup-layout.createSequentialAroup-.
                .addContainerAap-.
                .addComponent-la"elD1 java!.s$ing.AroupLayout.PR&RRD8S9P1 FE1 
java!.s$ing.AroupLayout.PR&RRD8S9P.
                .addPre,erredAap-java!.s$ing.LayoutStyle.ComponentPlacement.RL#6D.
                .addComponent-c/oice;1 java!.s$ing.AroupLayout.PR&RRD8S9P1 GE1 
java!.s$ing.AroupLayout.PR&RRD8S9P.
                .addAap-;)J1 ;)J1 ;)J.
                .addComponent-la"el;1 java!.s$ing.AroupLayout.PR&RRD8S9P1 java!.s$ing.AroupLayout.D&#:L68S9P1 
java!.s$ing.AroupLayout.PR&RRD8S9P.
                .addPre,erredAap-java!.s$ing.LayoutStyle.ComponentPlacement.RL#6D1 ;GC1 S/ort.M#L82#L:.
                .addComponent-la"el;I1 java!.s$ing.AroupLayout.PR&RRD8S9P1 ;CG1 
java!.s$ing.AroupLayout.PR&RRD8S9P.
                .addAap-CD1 CD1 CD..
        .;
        layout.set2erticalAroup-
            layout.createParallelAroup-java!.s$ing.AroupLayout.#lignment.L#D90A.
            .addAroup-layout.createSequentialAroup-.
                .addContainerAap-.
/1
                .addAroup-layout.createParallelAroup-java!.s$ing.AroupLayout.#lignment.L#D90A.
                    .addComponent-la"elD1 java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.D&#:L68S9P1 
S/ort.M#L82#L:.
                    .addComponent-la"el;1 java!.s$ing.AroupLayout.PR&RRD8S9P1 java!.s$ing.AroupLayout.D&#:L68S9P1 
java!.s$ing.AroupLayout.PR&RRD8S9P.
                    .addComponent-c/oice;1 java!.s$ing.AroupLayout.#lignment.6R#9L90A1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.D&#:L68S9P1 S/ort.M#L82#L:.
                    .addComponent-la"el;I1 java!.s$ing.AroupLayout.PR&RRD8S9P1 java!.s$ing.AroupLayout.D&#:L68S9P1 
java!.s$ing.AroupLayout.PR&RRD8S9P..
                .addPre,erredAap-java!.s$ing.LayoutStyle.ComponentPlacement.RL#6D.
                .addComponent-la"elC1 java!.s$ing.AroupLayout.PR&RRD8S9P1 D)1 
java!.s$ing.AroupLayout.PR&RRD8S9P.
                .addAap-;1 ;1 ;.
                .addComponent-la"elI1 java!.s$ing.AroupLayout.PR&RRD8S9P1 java!.s$ing.AroupLayout.D&#:L68S9P1 
java!.s$ing.AroupLayout.PR&RRD8S9P.
                .addPre,erredAap-java!.s$ing.LayoutStyle.ComponentPlacement.RL#6D.
                .addAroup-layout.createParallelAroup-java!.s$ing.AroupLayout.#lignment.L#D90A.
                    .addAroup-layout.createSequentialAroup-.
                        .addComponent-la"elE1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P.
                        .addPre,erredAap-java!.s$ing.LayoutStyle.ComponentPlacement.RL#6D.
                        .addComponent-la"elF1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P..
                    .addAroup-layout.createSequentialAroup-.
                        .addComponent-la"el;;1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P.
                        .addPre,erredAap-java!.s$ing.LayoutStyle.ComponentPlacement.RL#6D.
                        .addComponent-la"el;C1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P...
                .addPre,erredAap-java!.s$ing.LayoutStyle.ComponentPlacement.RL#6D.
                .addAroup-layout.createParallelAroup-java!.s$ing.AroupLayout.#lignment.L#D90A.
                    .addAroup-layout.createSequentialAroup-.
                        .addComponent-la"el;D1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P.
                        .addPre,erredAap-java!.s$ing.LayoutStyle.ComponentPlacement.RL#6D.
                        .addComponent-la"el;E1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P.
                        .addPre,erredAap-java!.s$ing.LayoutStyle.ComponentPlacement.RL#6D.
                        .addComponent-la"el;F1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P..
                    .addAroup-layout.createSequentialAroup-.
                        .addComponent-la"elH1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P.
                        .addPre,erredAap-java!.s$ing.LayoutStyle.ComponentPlacement.RL#6D.
                        .addComponent-la"elJ1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P.
                        .addPre,erredAap-java!.s$ing.LayoutStyle.ComponentPlacement.RL#6D.
                        .addComponent-la"el;)1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P...
                .addAap-;1 ;1 ;.
                .addComponent-la"el;H1 java!.s$ing.AroupLayout.PR&RRD8S9P1 java!.s$ing.AroupLayout.D&#:L68S9P1 
java!.s$ing.AroupLayout.PR&RRD8S9P.
                .addAap-;)1 ;)1 ;).
                .addAroup-layout.createParallelAroup-java!.s$ing.AroupLayout.#lignment.L#D90A.
                    .addAroup-layout.createSequentialAroup-.
/2
                        .addComponent-la"elG1 java!.s$ing.AroupLayout.PR&RRD8S9P1 
java!.s$ing.AroupLayout.D&#:L68S9P1 java!.s$ing.AroupLayout.PR&RRD8S9P.
                        .addAap-GH1 GH1 GH.
                        .addAroup-layout.createParallelAroup-java!.s$ing.AroupLayout.#lignment.6R#9L90A.
                            .addComponent-"utton;1 java!.s$ing.AroupLayout.#lignment.L#D90A1 
java!.s$ing.AroupLayout.D&#:L68S9P1 DI1 S/ort.M#L82#L:.
                            .addComponent-"uttonD1 java!.s$ing.AroupLayout.D&#:L68S9P1 DI1 S/ort.M#L82#L:.
                            .addComponent-"uttonC1 java!.s$ing.AroupLayout.#lignment.L#D90A1 
java!.s$ing.AroupLayout.D&#:L68S9P1 DI1 S/ort.M#L82#L:...
                    .addComponent-la"el;G1 java!.s$ing.AroupLayout.PR&RRD8S9P1 java!.s$ing.AroupLayout.D&#:L68S9P1 
java!.s$ing.AroupLayout.PR&RRD8S9P...
        .;
        pack-.;
    <** ?*editor@,oldB                        
private void "utton;#ctionPer,ormed-java.a$t.event.#ctionvent evt. '                                        
        try '
** 64D4 add your /andling code /ere5
            int selected8id ( 9nteger.parse9nt-c/oice;.getSelected9tem-..toString-..;
            stmt ( con.createStatement-rs.67P8SCR4LL8S0S96921rs.C40C:R8R#D840L7.;
            rs ( stmt.e!ecuteQuery-3Select + ,rom emp >MR id(3 R selected8id.;
            $/ile -rs.ne!t-.. '
                la"elC.set6e!t-rs.getString-;..trim-.R313Rrs.getString-C..trim-..;
                la"elI.set6e!t-3P4S969405  3Rrs.getString-D..;
                la"el;;.set6e!t-9nteger.toString-rs.get9nt-F...;
                la"el;C.set6e!t-9nteger.toString-rs.get9nt-G...;
                la"el;D.set6e!t-9nteger.toString-rs.get9nt-H...;
                la"el;E.set6e!t-9nteger.toString-rs.get9nt-I...;
                la"el;F.set6e!t-9nteger.toString-rs.get9nt-J...;
                rs.,irst-.;
                dou"le npay(rs.get9nt-F.Rrs.get9nt-G.Rrs.get9nt-H.@rs.get9nt-I.@rs.get9nt-J.;
                la"elG.set6e!t-Dou"le.toString-npay..;
            <
            "uttonC.setna"led-true.;
        < catc/ -SQL!ception e!. '                                       
            Logger.getLogger-mpSlip.class.get0ame-...log-Level.S2R1 null1 e!.;
        <
<
private void "uttonC#ctionPer,ormed-java.a$t.event.#ctionvent evt. '                                        
** 64D4 add your /andling code /ere5
    ,inal Printer%o" prn(ne$ Printer%o"-. '
            =4verride
            pu"lic void setPrinta"le-Printa"le painter. '
                t/ro$ ne$ :nsupported4peration!ception-30ot supported yet.3.;
            <
            =4verride
            pu"lic void setPrinta"le-Printa"le painter1 Page&ormat ,ormat. '
                t/ro$ ne$ :nsupported4peration!ception-30ot supported yet.3.;
            <
            =4verride
            pu"lic void setPagea"le-Pagea"le document. t/ro$s 0ullPointer!ception '
/3
                t/ro$ ne$ :nsupported4peration!ception-30ot supported yet.3.;
            <
            =4verride
            pu"lic "oolean printDialog-. t/ro$s Meadless!ception '
                t/ro$ ne$ :nsupported4peration!ception-30ot supported yet.3.;
            <
            =4verride
            pu"lic Page&ormat pageDialog-Page&ormat page. t/ro$s Meadless!ception '
                t/ro$ ne$ :nsupported4peration!ception-30ot supported yet.3.;
            <
            =4verride
            pu"lic Page&ormat de,aultPage-Page&ormat page. '
                t/ro$ ne$ :nsupported4peration!ception-30ot supported yet.3.;
            <
            =4verride
            pu"lic Page&ormat validatePage-Page&ormat page. '
                t/ro$ ne$ :nsupported4peration!ception-30ot supported yet.3.;
            <
            =4verride
            pu"lic void print-. t/ro$s Printer!ception '
              t/ro$ ne$ :nsupported4peration!ception-30ot supported yet.3.;
            <
            =4verride
            pu"lic void setCopies-int copies. '
                t/ro$ ne$ :nsupported4peration!ception-30ot supported yet.3.;
            <
            =4verride
            pu"lic int getCopies-. '
                t/ro$ ne$ :nsupported4peration!ception-30ot supported yet.3.;
            <
            =4verride
            pu"lic String get:ser0ame-. '
                t/ro$ ne$ :nsupported4peration!ception-30ot supported yet.3.;
            <
            =4verride
            pu"lic void set%o"0ame-String jo"0ame. '
                t/ro$ ne$ :nsupported4peration!ception-30ot supported yet.3.;
            <
            =4verride
            pu"lic String get%o"0ame-. '
                t/ro$ ne$ :nsupported4peration!ception-30ot supported yet.3.;
            <
            =4verride
            pu"lic void cancel-. '
                t/ro$ ne$ :nsupported4peration!ception-30ot supported yet.3.;
14
            <
            =4verride
            pu"lic "oolean isCancelled-. '
                t/ro$ ne$ :nsupported4peration!ception-30ot supported yet.3.;
            <
        <;
<                                       
private void "uttonD#ctionPer,ormed-java.a$t.event.#ctionvent evt. '                                        
** 64D4 add your /andling code /ere5
     t/is.set2isi"le-,alse.;
        try '
            con.close-.;
        < catc/ -SQL!ception e!. '
            Logger.getLogger-mpDetail.class.get0ame-...log-Level.S2R1 null1 e!.;
        <
    Menuscrn menu ( ne$ Menuscrn-.;
    menu.set2isi"le-true.;
<                                       
    *++
    + =param args t/e command line arguments
    +*
    pu"lic static void main-String argsST. '
        java.a$t.ventQueue.invokeLater-ne$ Runna"le-. '
            pu"lic void run-. '
                ne$ mpSlip-..set2isi"le-true.;
            <
        <.;
    <
    ** 2aria"les declaration @ do not modi,y                     
    private java.a$t.Kutton "utton;;
    private java.a$t.Kutton "uttonC;
    private java.a$t.Kutton "uttonD;
    private java.a$t.C/oice c/oice;;
    private java.a$t.La"el la"el;;
    private java.a$t.La"el la"el;);
    private java.a$t.La"el la"el;;;
    private java.a$t.La"el la"el;C;
    private java.a$t.La"el la"el;D;
    private java.a$t.La"el la"el;E;
    private java.a$t.La"el la"el;F;
    private java.a$t.La"el la"el;G;
    private java.a$t.La"el la"el;H;
    private java.a$t.La"el la"el;I;
    private java.a$t.La"el la"elC;
    private java.a$t.La"el la"elD;
    private java.a$t.La"el la"elE;
    private java.a$t.La"el la"elF;
    private java.a$t.La"el la"elG;
    private java.a$t.La"el la"elH;
    private java.a$t.La"el la"elI;
    private java.a$t.La"el la"elJ;
    ** nd o, varia"les declaration                   
11
<
1+
*+
+Main.java
 + 6o c/ange t/is template1 c/oose 6ools X 6emplates
 + and open t/e template in t/e editor.
 +*
package employeemanagement;
pu"lic class Main '
    *++
     + =param args t/e command line arguments
     +*
    pu"lic static void main-StringST args. '
            ** 64D4 code application logic /ere
            9ntro intr ( ne$ 9ntro-.;
    <
<
1,
SYSTEM TESTING
4urin% systems testin%$ the system is used eperimentally to ensure that the software does not
fail" In other words$ we can say that it will run accordin% to its specifications and in the way
users  epect"   'pecial   test   data  are  input   for  processin%$   and  the  results  eamined"  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 or%ani,ation implements
the system and depends on it" 
'oftware modules are tested for their functionality as per the re/uirements identified durin% the
re/uirements analysis phase" To test the functionality of the file transfer and chat application$ a
Guality Assurance FGAH team is formed"  The re/uirements identified durin% the re/uirements
analysis phase are submitted to the GA team" In this phase the GA team tests the application for
these re/uirements" The development team submits a test case report to the GA team so that the
application can be tested in the various possible scenarios"
The software development pro&ect$ errors can be in&ected at any sta%e durin% development i"e" if
there is an error in&ected in the desi%n phase then it can be detected in the codin% phase
because there is the product to be eecuted ultimately on the machine$  so we employ a
testin% process"
4urin% the testin% the pro%ram to be tested is eecuted with certain test cases and output of these
test cases is evaluated to chec# the correctness of the pro%ram" It is the testin% that performs first
step in determinin% the errors in the pro%ram"
TEST CASES AND TEST C10TE10A
4urin% Test Cases that are %ood at revealin% the presence of faults is central to successful testin%"
The reason for this is that if there is a fault in the pro%ram$ the pro%ram can still provide the
epected behavior on the certain inputs" Only for the set of inputs the faults that eercise the fault
in the pro%ram will the output of the pro%ram devise from the epected behavior" (ence$ it is fair
to say that testin% is as %ood as its test case"
The number of test cases used to determine errors in the pro%ram should be minimum" There are
two fundamental %oals of a practical testin% activityD1
 maimi,e the number of errors detected and"
 minimi,e the number of test cases"
As these two %oals are contradictory so the problem of selectin% test cases is a comple one"
Ahile selectin% the test cases the primary ob&ective is to ensure that if there is an error or fault in
the pro%ram$ it is eercised by one of its test cases" An ideal test case is one which succeeds
Fmeanin% that there are no errors$ revealed in its eecutionH only it there are no errors in the
pro%ram one possible set of ideal test cases is one which includes all the possible inputs to the
1-
pro%ram"  This is often called Jehaustive testin%J$ however it is impractical and infeasible as
even a small pro%ram can have an infinite input domain"
'o to avoid this problem we use Jtest criteriaJ in selection of the test cases" There are two aspects
of the test case selectionD1
 specifyin% a criteria for evaluatin% the test cases
 %eneratin% the set of cases that satisfy a %iven criteria"
The fully automated process of %eneratin% test criteria has not been yet found rather %uidelines
are  only the  automated tool  available to us previously" The two fundamental   properties  for  a
testin% criterion areD1 
 1eliabilityD a criterion is reliable if all the sets that satisfy the criteria detect the same
error" "
 ValidityD a criterion is valid if for any error in the pro%ram there is some set satisfyin% the
criteria that will reveal the error"
The fundamental  theorem of  testin% is  that if  a  testin% criterion is  valid  and  reliable$   if  a  set
satisfyin% criteria succeeds then the pro%ram contains no errors"
A--1OAC.ES TO TEST0NG
There are two fundamental approaches to testin% they areD
2un&tional Teting=7la&< 7o) Teting D
In  functional   testin%  the   structure   of   the   pro%ram  is   not   considered"   Test   cases   are   solely
determined on the basis of re/uirement or specification of the pro%ram or module" Internals of
the modules and the pro%rams are not considered for selection of test cases" 4ue to this nature it
is also called Jblac# bo testin%J"
The most obvious functional testin% procedure is Jehaustive testin%J$ which is impractical"
The other criteria for %eneratin% the test case are to %enerate them JrandomlyJ this strate%y has a
little chance of resultin% in a test case that is close to optimal"
There  is   no  appropriate  criterion  for   developin%  the  test   case  so  we  have  certain  heuristic
approaches1D
aH  E*ui#alen&e Cla -a"titioningD in which the domain of all inputs is divided into a set of
e/uivalence classes$ so that if any test in that class succeeds$ then every test in that class will
succeed i"e" the success of one set element implies the success of the other"
bH  7ounda"y Value AnalyiD It has been observed that pro%rams wor# correctly for a set of
values in an e/uivalence class fail on certain values" These values %enerally lie on the boundary
of e/uivalence class" 'o in the boundary value analysis we chose an input for a test case from an
1.
e/uivalence  class$   such  that   input   lies  on  the  ed%e  of  e/uivalence  class"   0oundary  value  test
cases are also called Jetreme casesJ"
cH  Caue6E''e&t G"ap!ingD The problem with the prior approaches is that they consider each
input separately i"e" both concentrate on classes and conditions of one input" The combination of
inputs is not considered which is used in many cases" One way to eercise the combination of
various input conditions is to consider all the valid combinations of the e/uivalence class of the
input conditions" The techni/ue starts with identifyin% the causes and the effect of system under
testin%"
ST1/CT/1AL TEST0NG D 
In  the  structural   approach  the  test   cases  are  %enerated  an  the  basis  of  the  actual   code  of  the
pro%ram  or  the  module  to  be  tested$  This  structural   approach  is  sometimes  called  J%lass  bo
testin%J$ This testin% is concerned with the implementation of the pro%ram" The content is not to
eercise the various input conditions rather different pro%rammin% structures and data structures
used in the pro%ram"
There are three different approaches to structural testin% they are1 D
aH Cont"ol 'lo$ baed &"ite"iaD 
Most common structure based criteria use control flow based testin% in which the control flow
%raph of the pro%ram is considered and covera%e of various aspects of %raph are specified as
criteria" The various control flow based strate%ies are 
 statement covera%e$
 branch covera%e and
 all path covera%e
bH Data 2lo$ baed teting: 
The  basic  idea  behind  the  data  flow  based  testin%  is   to  ma#e  sure  that   durin%  testin%$   the
definitions of  variables and  their subse/uent  use is  tested"  To implement  the data flow  based
testin% the data flow %raph is first made from the control flow %raph"
cH Mutation Teting: 
In the  above two testin% techni/ues the  focus  is  on  which path  to be eecuted$   but  mutation
testin% is not a path1based approach" The mutation testin% re/uires that the set of test cases must
be  such  that   they  can  distin%uish  between  the  ori%inal   pro%rams  and  is  mutants"   In  software
world there is no fault model as in hardware so most of the techni/ues do %uess wor# re%ardin%
where the fault must lie and then select the test cases to reveal those faults" In Mutation testin%
faults of some pre1decided types are introduced in the pro%ram bein% tested" Then those faults
are found in the mutants"
1/
0mplementation% E#aluation And Teting
0mplementation  is the process of havin% systems personnel chec# out and put new e/uipment
into use$ train users$ install the new application and construct any files of data needed to use it"
This phase is less creative than system desi%n" 4ependin% on the si,e of the or%ani,ation that will
be involved in usin% the application and the ris# involved in its use$ systems developers may
choose   to  test   the   operation  in  only  one   area   of   the   firm  with  only  one  or   two  persons"
'ometimes$ they will run both old and new system in parallel way to compare the results" In still
other situations$ system developers stop usin% the old system one day and start usin% the new one
the net"
E#aluation  of  the  system  is  performed  to  identify  its  stren%ths  and  wea#nesses"   The  actual
evaluation can occur alon% any of the followin% dimensionsD
6" Ope"ational   E#aluationD   Assessment   of   the  manner   in  which  the  system  functions$
includin% case of use$ response time$ overall reliability and level of utili,ation"
7" O"gani>ational 0mpa&tD Identification and measurement of benefits to the or%ani,ation
in such areas as financial concerns$ operational efficiency and competitive impact"
9" /e"  Manage"  Aement:  Evaluation  of   the  attitudes   of   senior   and  user   mana%er
within the or%ani,ation$ as well as end1users"
:" De#elopment -e"'o"man&eD Evaluation of the development process in accordance with
such  yardstic#s   as  overall   development   time  and  effort$   conformance  to  bud%ets  and
standards and other pro&ect mana%ement criteria"
Maintenan&e is necessary to eliminate errors in the wor#in% system durin% its wor#in% life and
to tune the system to any variations in its wor#in% environment often small system deficiencies
are found as a system is brou%ht into operations and chan%es are made to remove them" 'ystem
planners must always plan for resource availability to carry out these maintenance functions" The
importance of maintenance is to continue to brin% the new system to standards"
11
CONCLUSION
'ince this pro&ect has been desi%ned eclusively as a  pro&ect$ certain compleities that do faced
by  any  real   life   manual   problem  li#e   total   no"   of   employee$   address   redundancy  etc"   are
considered in this pro&ect" 0ut enhancement to the pro&ect can easily be made without chan%in%
the current desi%n and pro%rammin% structure"
12
BIBLIOGRAPHY
6" CORE -A.AF.ol1IH by ')N MICRO'*'TEM' 
7" AAA"!OO!+E"COM
9" AAA"-A.A"')N"COM
:" AAA"ON+*:!)R)'"COM
;" AAA"'MART4RAA"COM
<" (EA4 FIR'T 0* 5AT(* 'IERRA W 0ERT 0ATE'
13