%
Many people have contributed in bringing this job training report in its present form I take this opportunity to thank all of them for their guidance co-ordinators. I would would like to express express sincere sincere gratitude gratitude to …………………….for …………………….for his gentle gentle support support and generating a deep interest in my studies. And also to rof. ……………….for his tips ! tricks towards completing this report. Incredibly Incredibly huge thanks thanks to ………………… who deserves deserves a special special mention mention for his kind support and help in the computer lab. and also for his valuable tips ! tricks.
………………………. ………………………. "#ab. In charge$ deserves deserves a special special mention for kind support support and help in the computer lab.
&
reface Every professional course requires some practical knowledge besides the theoretical study. A bachelor of Information Technology is one important professional course it need some practice training we did in.
This project report title “!"I!E #E$E#%A #E$E#%ATI!& with the 'articular reference to (((( under the guidance of (((.. has been prepared to submitted in (((((. use were able to perform it.
&
reface Every professional course requires some practical knowledge besides the theoretical study. A bachelor of Information Technology is one important professional course it need some practice training we did in.
This project report title “!"I!E #E$E#%A #E$E#%ATI!& with the 'articular reference to (((( under the guidance of (((.. has been prepared to submitted in (((((. use were able to perform it.
*
REPORT OF HOME PROJECT ON
“!"I!E “!" I!E #E$E#% #E$E #%A ATI!& "I' (A)A$
A #E'#T $)*+ITTE I!'A#TIA" ,)"",I""+E!T ,# T-E #E)I#+E!T ,# T-E A/A#0 I! *. $c 1I!,#+ATI! 1I!,#+ATI! TE2-!"345
7
I'+,
ontents
page no
%$ /ardware and 0oftware 1e2uirement
%3
&$ 0ource odes
%% to *4
*$ 5orms
*6 to 77
4
/A1+8A1, 1,9:I1M,'; %. A omputer system with Intel entium-& or higher. &. A +ot-matrix or Inkjet printer.
0<5;8A1, 1,9:I1M,'; %. Microsoft 8indows =>??&333?/igher. &. Installed (+@%.*"kre ! jsdk&$. *. Installed Microsoft
33?633.
6
0<:1, <+,0 8elcome 0creen import java.awt.BC import javax.swing.BC class 8elcome implements 1unnable D (5rame fC (#abel l%El&El*C ;hread tC #ogin lC ImageIcon imgC 8elcome"$ D imgFnew ImageIcon"Gindian-rail.jpgG$C tFnew ;hread"this$C fFnew (5rame"G8elcomeG$C f.getontentane"$.set#ayout"null$C f.getontentane"$.setHackground"olor.yellow$C l%Fnew (#abel"G3E>33E73$C l&.set5oreground"olor.red$C l*Fnew (#abel"img$C l*.setHounds"3E3E%*33E%333$C f.getontentane"$.add"l%$C f.getontentane"$.add"l&$C f.getontentane"$.add"l*$C f.set0iJe"%*33E%333$C f.set)isible"true$C t.start"$C K public void run"$ D int xF%C while"xLF4$ D try D ;hread.sleep"%333$C K catch",xception e$ DK
> xNNC K f.set)isible"false$C lFnew #ogin"$C K K
= #ogin 0creen import java.awt.BC import java.awt.event.BC import javax.swing.BC class #ogin implements Action#istener D (5rame fC (#abel l%El&C (;ext5ield t%C (assword5ield t&C (Hutton b%Eb&C Main MC #ogin"$ D fFnew (5rame"G#oginG$C f.getontentane"$.set#ayout"null$C f.getontentane"$.setHackground"olor.pink$C l%Fnew (#abel"G:ser 'ameG$C l%.set5oreground"olor.yellow$C l%.setHounds"43E43E%33E*3$C l&Fnew (#abel"GasswordG$C l&.set5oreground"olor.yellow$C l&.setHounds"43E>3E%33E*3$C t%Fnew (;ext5ield"%3$C t%.set5oreground"olor.blue$C t%.addAction#istener"this$C t%.setHounds"%43E43E%33E*3$C t&Fnew (assword5ield"%3$C t&.set5oreground"olor.blue$C t&.set,chohar"OBO$C t&.addAction#istener"this$C t&.setHounds"%43E>3E%33E*3$C b%Fnew (Hutton"G3E%&3E%33E*3$C b%.setMnemonic"O
%3 f.getontentane"$.add"b%$C f.getontentane"$.add"b&$C f.setHounds"*33E*33E*33E&33$C f.set1esiJable"false$C f.set)isible"true$C K public void actionerformed"Action,vent e$ D if"e.get0ource"$FFb%$ D if"t%.get;ext"$.length"$FF3PPt&.get;ext"$.length"$FF3$ D (
%% Main 0creen import java.awt.BC import java.awt.event.BC import javax.swing.BC class Main implements Action#istener D (5rame fC (Hutton b%Eb&Eb*Eb7C 1eservation rC ,n2uiry 2C ancellation cC (#abel img#C ImageIcon imgC Main"$ D imgFnew ImageIcon"GIndian-1ailway-'etwork.jpgG$C img#Fnew (#abel"img$C img#.setHounds"3E3E%*33E%333$C fFnew (5rame"GMainG$C f.getontentane"$.set#ayout"null$C f.getontentane"$.setHackground"olor.green$C b%Fnew (Hutton"G1eservation 5ormG$C b%.addAction#istener"this$C b%.setHounds"%43E*=3E&%3E63$C b&Fnew (Hutton"G'1-en2uiryG$C b&.addAction#istener"this$C b&.setHounds"%43E7=3E&%3E63$C b*Fnew (Hutton"Gancellation 5ormG$C b*.addAction#istener"this$C b*.setHounds"4>3E*=3E&%3E63$C b7Fnew (Hutton"G,xitG$C b7.addAction#istener"this$C b7.setHounds"4>3E7=3E&%3E63$C b%.setHackground"new olor"%33E&33E3$$C b%.set5oreground"new olor"&44E&44E&44$$C b&.setHackground"new olor"%33E&33E3$$C b&.set5oreground"new olor"&44E&44E&44$$C b*.setHackground"new olor"%33E&33E3$$C b*.set5oreground"new olor"&44E&44E&44$$C b7.setHackground"new olor"%33E&33E3$$C b7.set5oreground"new olor"&44E&44E&44$$C b%.setMnemonic"O1O$C b&.setMnemonic"OO$C b*.setMnemonic"OO$C b7.setMnemonic"O,O$C
%& f.getontentane"$.add"b%$C f.getontentane"$.add"b&$C f.getontentane"$.add"b*$C f.getontentane"$.add"b7$C f.getontentane"$.add"img#$C f.set0iJe"%*33E%333$C f.set)isible"true$C K public void actionerformed"Action,vent e$ D if"e.get0ource"$FFb%$ D f.set)isible"false$C rFnew 1eservation"$C K if"e.get0ource"$FFb&$ D f.set)isible"false$C 2Fnew ,n2uiry"$C K if"e.get0ource"$FFb*$ D f.set)isible"false$C cFnew ancellation"$C K if"e.get0ource"$FFb7$ D f.set)isible"false$C 0ystem.exit"3$C K K public static void main"0tring argsQR$ D new Main"$C K K
%* 1eservation 0creen import java.awt.BC import java.awt.event.BC import java.s2l.BC import javax.swing.BC class 1eservation extends onnect implements Action#istenerE5ocus#istener D (5rame fC (#abel l%El&El*El7El4El6ElEl>El=El%3El%%El%&El%*C (;ext5ield t%Et&Et*Et7Et4Et6EtC hoice hC (;extArea taC (Hutton b%Eb&Eb*C repared0tatement psC 0tatement stC 1esult0et rsC int xC (#abel img#C ImageIcon imgC void disable"$ D t%.set,nabled"false$C t&.set,nabled"false$C t*.set,nabled"false$C t7.set,nabled"false$C t4.set,nabled"false$C t6.set,nabled"false$C t.set,nabled"false$C h.set,nabled"false$C b&.set,nabled"false$C K void enable"$ D t%.set,nabled"true$C t&.set,nabled"true$C t*.set,nabled"true$C t7.set,nabled"true$C t4.set,nabled"true$C t6.set,nabled"true$C t.set,nabled"true$C h.set,nabled"true$C b&.set,nabled"true$C K 1eservation"$ D imgFnew ImageIcon"G#<<%.jpgG$C img#Fnew (#abel"img$C img#.setHounds"3E*&3E433E&43$C
%7 fFnew (5rame"G1eservationG$C f.getontentane"$.set#ayout"null$C f.getontentane"$.setHackground"olor.green$C l%Fnew (#abel"G'1 'oG$C l%.setHounds"%*3E43E%33E*3$C l&Fnew (#abel"G;rain 'oG$C l&.setHounds"43E>3E%33E*3$C l*Fnew (#abel"G;rain 'ameG$C l*.setHounds"43E%%3E%33E*3$C l7Fnew (#abel"GlassG$C l7.setHounds"43E%73E%33E*3$C l4Fnew (#abel"G+ate of (ourneyG$C l4.setHounds"43E%3E%33E*3$C l6Fnew (#abel"G5romG$C l6.setHounds"43E&33E%33E*3$C lFnew (#abel"G;oG$C l.setHounds"&43E&33E43E*3$C l>Fnew (#abel"GHoarding atG$C l>.setHounds"43E&*3E%33E*3$C t%Fnew (;ext5ield"%3$C t%.setHounds"&*3E43E%&3E*3$C t&Fnew (;ext5ield"%3$C t&.add5ocus#istener"this$C t&.setHounds"%43E>3E%33E*3$C t*Fnew (;ext5ield"%3$C t*.setHounds"%43E%%3E%33E*3$C t7Fnew (;ext5ield"%3$C t7.setHounds"%43E%3E%33E*3$C t4Fnew (;ext5ield"%3$C t4.setHounds"%43E&33E%33E*3$C t6Fnew (;ext5ield"%3$C t6.setHounds"*33E&33E%33E*3$C tFnew (;ext5ield"%3$C t.setHounds"%43E&*3E%33E*3$C hFnew hoice"$C h.setHounds"%43E%73E%33E*3$C h.add"GAG$C h.add"G0#G$C b%Fnew (Hutton"GInsertG$C b%.setHackground"olor.yellow$C b%.setHounds"43E&3E%33E*3$C b%.addAction#istener"this$C b&Fnew (Hutton"G'extG$C b&.setHackground"olor.yellow$C b&.setHounds"%63E&3E%33E*3$C b&.addAction#istener"this$C b*Fnew (Hutton"GMainG$C b*.setHackground"olor.yellow$C b*.setHounds"&3E&3E%33E*3$C
%4 b*.addAction#istener"this$C b%.setMnemonic"OIO$C b&.setMnemonic"O'O$C b*.setMnemonic"OMO$C f.getontentane"$.add"l%$C f.getontentane"$.add"l&$C f.getontentane"$.add"l*$C f.getontentane"$.add"l7$C f.getontentane"$.add"l4$C f.getontentane"$.add"l6$C f.getontentane"$.add"l$C f.getontentane"$.add"l>$C f.getontentane"$.add"t%$C f.getontentane"$.add"t&$C f.getontentane"$.add"t*$C f.getontentane"$.add"t7$C f.getontentane"$.add"t4$C f.getontentane"$.add"t6$C f.getontentane"$.add"t$C f.getontentane"$.add"h$C f.getontentane"$.add"b%$C f.getontentane"$.add"b&$C f.getontentane"$.add"b*$C f.getontentane"$.add"img#$C f.set0iJe"%*33E%333$C f.set)isible"true$C disable"$C K public void focus#ost"5ocus,vent e$ D if"t&.get;ext"$.length"$SF3$ D try D psFcon.prepare0tatement"Gselect ;rain'ame from ;rain where ;rain'oFTG$C ps.set0tring"%Et&.get;ext"$$C rsFps.execute9uery"$C if"rs.next"$$ D t*.set;ext"rs.get0tring"%$$C K K catch",xception e%$ D 0ystem.out.println"Gonnection failedUGNe%$C K K
%6 K public void focusained"5ocus,vent e$ DK public void actionerformed"Action,vent e$ D if"e.get0ource"$FFb%$ D enable"$C b%.set,nabled"false$C try D stFcon.create0tatement"$C rsFst.execute9uery"Gselect B from '1G$C rs.next"$C xFrs.getInt"%$C t%.set;ext"0tring.valueEt.get;ext"$$C ps.execute:pdate"$C
??update '1 no. psFcon.prepare0tatement"Gupdate '1 set '1'oFT where '1'oFTG$C ps.setInt"%E"xN%$$C ps.setInt"&Ex$C ps.execute:pdate"$C (
% K catch",xception e%$ D 0ystem.out.println"Gonnection failedUGNe%$C K try D stFcon.create0tatement"1esult0et.;V,01<##I'0,'0I;I),E1esult0et.<':11,A+<'#V$C rsFst.execute9uery"Gselect B from 1eservationG$C rs.last"$C xFrs.getInt"%$C assenger Fnew assenger"x$C stFcon.create0tatement"$C rsFst.execute9uery"Gselect B from assengerI+G$C rs.next"$C xFrs.getInt"%$C .t%.set;ext"0tring.value
%> assenger.java import java.awt.BC import java.awt.event.BC import java.s2l.BC import javax.swing.BC class assenger extends onnect implements Action#istener D (5rame fC (#abel l%El&El*El7El4El6C (;ext5ield t%Et&Et*C (Hutton b%Eb&Eb*C heckbox c%Ec&Ec*Ec7Ec4C heckboxroup cbgC (;extArea taC repared0tatement psC 0tatement stC 1esult0et rsC int pnoC (#abel img#C ImageIcon imgC assenger"int p$ D pnoFpC imgFnew ImageIcon"G#<<&.jpgG$C img#Fnew (#abel"img$C img#.setHounds"3E733E733E&33$C fFnew (5rame"GassengerG$C f.getontentane"$.set#ayout"null$C f.getontentane"$.setHackground"olor.green$C l%Fnew (#abel"GIdG$C l%.setHounds"43E43E%33E*3$C t%Fnew (;ext5ield"%3$C t%.setHounds"%3E43E%33E*3$C l&Fnew (#abel"G'ame of assengerG$C l&.setHounds"43E>3E%&3E*3$C t&Fnew (;ext5ield"%3$C t&.setHounds"%3E>3E%33E*3$C l*Fnew (#abel"GAgeG$C l*.setHounds"43E%*3E%33E*3$C t*Fnew (;ext5ield"%3$C t*.setHounds"%43E%*3E43E*3$C l7Fnew (#abel"GenderG$C l7.setHounds"&43E%*3E43E*3$C taFnew (;extArea"4E%3$C ta.setHounds"%43E%3E%*3E3$C l4Fnew (#abel"GAddressG$C l4.setHounds"43E%3E%33E*3$C l6Fnew (#abel"GatagoryG$C
%= l6.setHounds"43E&73E%33E*3$C b%Fnew (Hutton"GMoreG$C b%.setHackground"olor.yellow$C b%.addAction#istener"this$C b%.setHounds"43E**3E%33E*3$C b&Fnew (Hutton"G0aveG$C b&.setHackground"olor.yellow$C b&.addAction#istener"this$C b&.setHounds"%3E**3E%33E*3$C b*Fnew (Hutton"GHackG$C b*.setHackground"olor.yellow$C b*.addAction#istener"this$C b*.setHounds"&=3E**3E%33E*3$C b%.setMnemonic"OMO$C b&.setMnemonic"O0O$C b*.setMnemonic"OHO$C cbgFnew heckboxroup"$C c%Fnew heckbox"GMaleGEcbgEtrue$C c%.setHounds"*33E%*3E%33E*3$C c&Fnew heckbox"G5emaleGEcbgEfalse$C c&.setHounds"*33E%63E%33E*3$C c*Fnew heckbox"GeneralG$C c*.setHounds"%43E&73E%33E*3$C c7Fnew heckbox"G0enior itiJenG$C c7.setHounds"%43E&3E%33E*3$C c4Fnew heckbox"G,x-servicemanG$C c4.setHounds"%43E*33E%33E*3$C f.getontentane"$.add"l%$C f.getontentane"$.add"l&$C f.getontentane"$.add"l*$C f.getontentane"$.add"l7$C f.getontentane"$.add"l4$C f.getontentane"$.add"l6$C f.getontentane"$.add"t%$C f.getontentane"$.add"t&$C f.getontentane"$.add"t*$C f.getontentane"$.add"ta$C f.getontentane"$.add"b%$C f.getontentane"$.add"b&$C f.getontentane"$.add"b*$C f.getontentane"$.add"c%$C f.getontentane"$.add"c&$C f.getontentane"$.add"c*$C f.getontentane"$.add"c7$C f.getontentane"$.add"c4$C f.getontentane"$.add"img#$C f.set0iJe"%*33E%333$C
&3 f.set)isible"true$C K public void actionerformed"Action,vent e$ D if"e.get0ource"$FFb%$ D try D ??saving existing record 0tring catFGGC psFcon.prepare0tatement"Ginsert into ;empassenger values"TETETETETETET$G$C ps.set0tring"%Et%.get;ext"$$C ps.set0tring"&Et&.get;ext"$$C ps.set0tring"*Et*.get;ext"$$C ps.set0tring"7Ecbg.get0electedheckbox"$.get#abel"$$C ps.set0tring"4Eta.get;ext"$$C if"c*.get0tate"$$ catNFc*.get#abel"$NGEGC if"c7.get0tate"$$ catNFc7.get#abel"$NGEGC if"c4.get0tate"$$ catNFc4.get#abel"$NGEGC ps.set0tring"6Ecat$C ps.setInt"Epno$C ps.execute:pdate"$C ps.close"$C ??opening new form assenger Fnew assenger"pno$C stFcon.create0tatement"$C rsFst.execute9uery"Gselect B from assengerI+G$C rs.next"$C int xFrs.getInt"%$C .t%.set;ext"0tring.value
&%
try D 0tring catFGGC psFcon.prepare0tatement"Ginsert into ;empassenger values"TETETETETETET$G$C ps.set0tring"%Et%.get;ext"$$C ps.set0tring"&Et&.get;ext"$$C ps.set0tring"*Et*.get;ext"$$C ps.set0tring"7Ecbg.get0electedheckbox"$.get#abel"$$C ps.set0tring"4Eta.get;ext"$$C if"c*.get0tate"$$ catNFc*.get#abel"$NGEGC if"c7.get0tate"$$ catNFc7.get#abel"$NGEGC if"c4.get0tate"$$ catNFc4.get#abel"$NGEGC ps.set0tring"6Ecat$C ps.setInt"Epno$C ps.execute:pdate"$C ps.close"$C stFcon.create0tatement"$C rsFst.execute9uery"Gselect B from ;empassengerG$C while"rs.next"$$ D psFcon.prepare0tatement"Ginsert into assenger values"TETETETETETET$G$C ps.set0tring"%Ers.get0tring"%$$C ps.set0tring"&Ers.get0tring"&$$C ps.set0tring"*Ers.get0tring"*$$C ps.set0tring"7Ers.get0tring"7$$C ps.set0tring"4Ers.get0tring"4$$C ps.set0tring"6Ers.get0tring"6$$C ps.set0tring"Ers.get0tring"$$C ps.execute:pdate"$C ps.close"$C K stFcon.create0tatement"$C st.execute:pdate"Gdelete from ;empassengerG$C (
&& if"e.get0ource"$FFb*$ D f.set)isible"false$C new 1eservation"$C K K public static void main"0tring argsQR$ D new assenger"3$C K K
&* ,n2uiry. (ava import java.awt.BC import java.awt.event.BC import java.s2l.BC import javax.swing.BC class ,n2uiry extends onnect implements Action#istener D (5rame fC (#abel l%El&C (;ext5ield tC #ist liC (Hutton b%Eb&C repared0tatement psC 1esult0et rsC (#abel img#C ImageIcon imgC ,n2uiry"$ D imgFnew ImageIcon"G#<<%.jpgG$C img#Fnew (#abel"img$C img#.setHounds"3E*73E433E&33$C fFnew (5rame"G'1-,n2uiryG$C f.getontentane"$.set#ayout"null$C f.getontentane"$.setHackground"olor.green$C l%Fnew (#abel"G'1 'oG$C l%.setHounds"43E43E63E*3$C l&Fnew (#abel"G'1 +etailsG$C l&.setHounds"43E>3E%33E*3$C tFnew (;ext5ield"%3$C t.addAction#istener"this$C t.setHounds"%%3E43E%43E*3$C liFnew #ist"$C li.setHounds"43E%%3E*=3E%>3$C b%Fnew (Hutton"GheckG$C b%.setHackground"olor.yellow$C b%.addAction#istener"this$C b%.setHounds"3E*33E%33E*3$C b&Fnew (Hutton"GHackG$C b&.setHackground"olor.yellow$C b&.addAction#istener"this$C b&.setHounds"&%3E*33E%33E*3$C b%.setMnemonic"OO$C b&.setMnemonic"OHO$C f.getontentane"$.add"l%$C f.getontentane"$.add"l&$C f.getontentane"$.add"t$C
&7 f.getontentane"$.add"li$C f.getontentane"$.add"b%$C f.getontentane"$.add"b&$C f.getontentane"$.add"img#$C f.set0iJe"%*33E%333$C f.set)isible"true$C K public void actionerformed"Action,vent e$ D if"e.get0ource"$FFb%$ D try D ??reservation information psFcon.prepare0tatement"Gselect B from 1eservation where '1'oFTG$C ps.set0tring"%Et.get;ext"$$C rsFps.execute9uery"$C rs.next"$C li.clear"$C li.add"G;rain 'o.U GNrs.get0tring"&$$C li.add"G;rain 'ameU GNrs.get0tring"*$$C li.add"GlassU GNrs.get0tring"7$$C li.add"G+ate of (ourneyU GNrs.get0tring"4$$C li.add"G5romU GNrs.get0tring"6$$C li.add"G;oU GNrs.get0tring"$$C li.add"GHoarding atU GNrs.get0tring">$$C ??passeneger information psFcon.prepare0tatement"Gselect B from assenger where '1'oFTG$C ps.set0tring"%Et.get;ext"$$C rsFps.execute9uery"$C while"rs.next"$$ D li.add"Gassenger 'ameU GNrs.get0tring"&$$C li.add"GAgeU GNrs.get0tring"*$$C li.add"GenderU GNrs.get0tring"7$$C K K catch",xception e%$ D 0ystem.out.println"Gconnection failedUGNe%$C K K if"e.get0ource"$FFb&$ D f.set)isible"false$C new Main"$C K K
&4 public static void main"0tring argsQR$ D new ,n2uiry"$C K K
&6 ancellation 5orm
import java.awt.BC import java.awt.event.BC import javax.swing.BC import java.s2l.BC class ancellation extends onnect implements Action#istenerEItem#istener D (5rame fC (#abel l%El&El*El7El4El6ElEl>El=El%3El%%C (;ext5ield t%Et&Et*Et7Et4Et6EtC (Hutton b%Eb&C hoice hC #ist liC repared0tatement psC 1esult0et rsC 0tatement stC ancellation"$ D fFnew (5rame"GancellationG$C f.getontentane"$.set#ayout"null$C f.getontentane"$.setHackground"olor.green$C l%Fnew (#abel"G'1 'oG$C l%.setHounds"%*3E43E43E*3$C l&Fnew (#abel"G;rain 'oG$C l&.setHounds"43E=3E%33E*3$C l*Fnew (#abel"G;rain 'ameG$C l*.setHounds"43E%&3E%33E*3$C l7Fnew (#abel"GlassG$C l7.setHounds"43E%43E%33E*3$C l4Fnew (#abel"G+ate of (ourneyG$C l4.setHounds"43E%>3E%33E*3$C l6Fnew (#abel"G5romG$C l6.setHounds"43E&%3E%33E*3$C lFnew (#abel"G;oG$C l.setHounds"&43E&%3E43E*3$C l>Fnew (#abel"GHoarding atG$C l>.setHounds"43E&73E%33E*3$C l=Fnew (#abel"G'ame of assengerG$C l=.setHounds"=3E&=3E%&3E*3$C l%3Fnew (#abel"GAgeG$C l%3.setHounds"&73E&=3E*3E*3$C l%%Fnew (#abel"GenderG$C l%%.setHounds"&=3E&=3E%33E*3$C b%Fnew (Hutton"G3E%33E*3$C
& b&Fnew (Hutton"GHackG$C b&.setHackground"olor.yellow$C b&.addAction#istener"this$C b&.setHounds"&33E7>3E%33E*3$C b%.setMnemonic"O3E%33E*3$C t4Fnew (;ext5ield"%3$C t4.addAction#istener"this$C t4.setHounds"%43E&%3E%33E*3$C t6Fnew (;ext5ield"%3$C t6.addAction#istener"this$C t6.setHounds"*33E&%3E%33E*3$C tFnew (;ext5ield"%3$C t.addAction#istener"this$C t.setHounds"%43E&73E%33E*3$C liFnew #ist"4Etrue$C li.setHounds">3E*&3E*&3E%33$C f.getontentane"$.add"l%$C f.getontentane"$.add"l&$C f.getontentane"$.add"l*$C f.getontentane"$.add"l7$C f.getontentane"$.add"l4$C f.getontentane"$.add"l6$C f.getontentane"$.add"l$C f.getontentane"$.add"l>$C f.getontentane"$.add"l=$C f.getontentane"$.add"l%3$C f.getontentane"$.add"l%%$C f.getontentane"$.add"b%$C f.getontentane"$.add"b&$C f.getontentane"$.add"h$C f.getontentane"$.add"t%$C
&> f.getontentane"$.add"t&$C f.getontentane"$.add"t*$C f.getontentane"$.add"t7$C f.getontentane"$.add"t4$C f.getontentane"$.add"t6$C f.getontentane"$.add"t$C f.getontentane"$.add"li$C f.set0iJe"%*33E%333$C f.set)isible"true$C start"$C K public void start"$ D try D stFcon.create0tatement"$C rsFst.execute9uery"Gselect B from 1eservationG$C while"rs.next"$$ D h.add"rs.get0tring"%$$C K K catch",xception e$ D 0ystem.out.println"Gonnection failedUGNe$C K K public void item0tatehanged"Item,vent e$ D 0ystem.out.println""0tring$h.get0electedItem"$$C try D li.removeAll"$C psFcon.prepare0tatement"Gselect B from 1eservation where '1'oFTG$C ps.set0tring"%Eh.get0electedItem"$$C rsFps.execute9uery"$C rs.next"$C t%.set;ext"rs.get0tring"&$$C t&.set;ext"rs.get0tring"*$$C t*.set;ext"rs.get0tring"7$$C t7.set;ext"rs.get0tring"4$$C t4.set;ext"rs.get0tring"6$$C t6.set;ext"rs.get0tring"$$C t.set;ext"rs.get0tring">$$C psFcon.prepare0tatement"Gselect B from assenger where '1'oFTG$C ps.set0tring"%Eh.get0electedItem"$$C rsFps.execute9uery"$C while"rs.next"$$ D
&= li.add"rs.get0tring"&$NG GNrs.get0tring"*$NG K K catch",xception e%$ D 0ystem.out.println"Gonnection failedGNe%$C K K public void actionerformed"Action,vent e$ D if"e.get0ource"$FFb%$ D try D psFcon.prepare0tatement"Gdelete from 1eservation where '1'oFTG$C ps.set0tring"%Eh.get0electedItem"$$C ps.execute:pdate"$C psFcon.prepare0tatement"Gdelete from assenger where '1'oFTG$C ps.set0tring"%Eh.get0electedItem"$$C ps.execute:pdate"$C (
GNrs.get0tring"7$$C
*3 onnect.java import java.s2l.BC public class onnect D public onnection conC public onnect"$ D try D lass.for'ame"Gsun.jdbc.odbc.(dbc
*%
*&
8elcome 0creen
**
#ogin 0creen
*7
Main 0creen
*4
1eservation 5orm
*6
assenger 5orm
*
,n2uiry 5orm
*>
ancellation 5orm