“RAILWAY MANAGEMENT”
Project Report Submitted for the Class – XII To
Central Board of Secondary Edcat!on
By Name
: Vineet Vineet Gupta
Roll No
: 36
Class
: XII Non Med.
IN"E# Sr$ No$
%ra&e Na&e
1. ". 3. $. '. 6.
Login !ame Main o!m T!ain #etails Coa%& #etails Ti%(et Cu!!ent Ti%(et )d*an%e
1. Login Form
private void jButton1ActionPerform jButton1ActionPerformed(java.awt.event.Action ed(java.awt.event.ActionEvent Event evt) { // TODO add your and!in" code ere# $trin" un%pw& un'jTetie!d1."etTet()& pw'jPa**wordie!d1."etTet()& if(un.e+ua!*(,rai!,)if(un.e+ua!*(,rai!, )- pw.e+ua!*(,rai!,)) { ainrame f1'new ainrame()& ti*.*eti*i0!e(fa!*e)& f1.*eti*i0!e(true)& e!*e { 2OptionPane.*owe**a"eDia!o"(nu!!%,3nva!id 2OptionPane.*owe**a"eDia! o"(nu!!%,3nva!id 4*er 5ame or Pa**word,)& private void jButton6ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your and!in" code ere# $y*tem.eit(7)& //ti*.*eti*i0!e(fa!*e)&
2. Main Form
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your and!in" code ere# TrainDetai!* Pd1'new TrainDetai!*()& ti*.*eti*i0!e(fa!*e)& Pd1.*eti*i0!e(true)& private void jButton6ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your and!in" code ere# 8oacDetai!* fd1'new 8oacDetai!*()& ti*.*eti*i0!e(fa!*e)& fd1.*eti*i0!e(true)& private void jButton9ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your and!in" code ere# T:t8urrent t:t81'new T:t8urrent()& ti*.*eti*i0!e(fa!*e)& t:t81.*eti*i0!e(true)& private void jButton;ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your and!in" code ere# T:tAdvance TA1'new TA1'new T:tAdvance()& ti*.*eti*i0!e(fa!*e)& TA1.*eti*i0!e(true)&
3. Train Details
import java.*+!.<& import java.*win".<& pu0!ic c!a** TrainDetai!* etend* java.*win".2rame { 8onnection con& $tatement *tmt& =e*u!t$et r*&
/<< 8reate* new form TrainDetai!* pu0!ic TrainDetai!*() { init8omponent*()& try { //8!a**.for5ame(,java.*+!.Driver,)& 8!a**.for5ame(,com.my*+!.jd0c.Driver,)& con' Driverana"er."et8onnection(,jd0c#my*+!#/ Driverana"er."et8onnection(,jd0c#my*+!#//!oca!o*t/te*t,% /!oca!o*t/te*t,%,root,%,a,)& ,root,%,a,)& *tmt ' con.create$tatement( con.create$tatement()& )& $trin" +u',*e!ect < from TrainDetai!*,& r*'*tmt.eecute>uery(+u)& r*.fir*t()& jButton1ActionPerformed(nu!!)& catc(Eception e) { $y*tem.out.print!n(,?and!in" $y*tem.out.print! n(,?and!in" te error*,)&
private void jButton6ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your and!in" code ere# ainrame f1'new ainrame()& ti*.*eti*i0!e(fa!*e)& f1.*eti*i0!e(true)&
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your and!in" code ere# try { jTetie!d1.*etTet(r*."et$trin"(1))& jTetie!d6.*etTet(r*."et$trin"(6))& jTetie!d9.*etTet(r*."et$trin"(9))& jTetie!d;.*etTet(r*."et$trin"(;))& jTetie!d@.*etTet(r*."et$trin"(@))& jTetie!d.*etTet(r*."et$trin"())&
jButton.*etEna0 jButton.*etEna0!ed(fa!*e !ed(fa!*e)& )& jButtonC.*etEna0!ed(fa!*e)& catc(Eception e) { $y*tem.out.print!n(e)&
private void jButton9ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your and!in" code ere# try { r*.fir*t()&
jTetie!d1.*etTet(r*."et$trin"(1))& jTetie!d6.*etTet(r*."et$trin"(6))& jTetie!d9.*etTet(r*."et$trin"(9))& jTetie!d;.*etTet(r*."et$trin"(;))& jTetie!d@.*etTet(r*."et$trin"(@))& jTetie!d.*etTet(r*."et$trin"())&
catc(Eception e) { $y*tem.out.print!n(e)&
private void jButton;ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your and!in" code ere# try { r*.net()& if(r*.i*Aftera*t()) { 2OptionPane.*owe**a"eDia!o"(nu!!% 2OptionPane.*owe**a"eDia! o"(nu!!% ,End of Data,)&
r*.!a*t()& return& jTetie!d1.*etTet(r*."et$trin"(1))& jTetie!d6.*etTet(r*."et$trin"(6))& jTetie!d9.*etTet(r*."et$trin"(9))& jTetie!d;.*etTet(r*."et$trin"(;))& jTetie!d@.*etTet(r*."et$trin"(@))& jTetie!d.*etTet(r*."et$trin"())&
catc(Eception e) { $y*tem.out.print!n(e)&
private void jButton@ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your and!in" code ere# try { r*.previou*()& if(r*.i*Beforeir*t()) { 2OptionPane.*owe**a"eDia!o"(nu!!% 2OptionPane.*owe**a"eDia! o"(nu!!% ,End of Data,)& r*.fir*t()& return& jTetie!d1.*etTet(r*."et$trin"(1))& jTetie!d6.*etTet(r*."et$trin"(6))& jTetie!d9.*etTet(r*."et$trin"(9))& jTetie!d;.*etTet(r*."et$trin"(;))& jTetie!d@.*etTet(r*."et$trin"(@))& jTetie!d.*etTet(r*."et$trin"())&
catc(Eception e) { $y*tem.out.print!n(e)&
private void jButtonActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your and!in" code ere# try { r*.!a*t()&
jTetie!d1.*etTet(r*."et$trin"(1))& jTetie!d6.*etTet(r*."et$trin"(6))&
jTetie!d9.*etTet(r*."et$trin"(9))& jTetie!d;.*etTet(r*."et$trin"(;))& jTetie!d@.*etTet(r*."et$trin"(@))& jTetie!d.*etTet(r*."et$trin"())& catc(Eception e) { $y*tem.out.print!n(e)&
private void jButtonActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your and!in" code ere# jTetie!d1.*etTet(,,)& jTetie!d6.*etTet(,,)& jTetie!d9.*etTet(,,)& jTetie!d;.*etTet(,,)& jTetie!d@.*etTet(,,)& jTetie!d.*etTet(,,)&
jButton.*etEna0 jButton.*etEna0!ed(true !ed(true)& )& jButtonC.*etEna0!ed(true)&
jButton1.*etEna0!ed(fa!*e)& jButton6.*etEna0!ed(fa!*e)& jButton9.*etEna0!ed(fa!*e)& jButton;.*etEna0!ed(fa!*e)& jButton@.*etEna0!ed(fa!*e)& jButton.*etEna0!ed(fa!*e)& jButton.*etEna0!ed(fa!*e)& jButton17.*etEna0!ed(fa!*e)& jButton11.*etEna0!ed(fa!*e)&
private void jButtonActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your and!in" code ere# try { *tmt'con.create$tatement()& $trin" +& +',in*ert into TrainDetai!* va!ue* (, F jTetie!d1."etTe jTetie!d1."etTet()F,%G,F t()F,%G,F jTe jTetie!d6."etT tie!d6."etTe et()F,G%G,FjT t()F,G%G,FjTe etie!d9." tie!d9."etT etTe et()F,G%G,F t()F,G%G,F jTe jTetie!d;."etT tie!d;."etTe et()F,G%G,F t()F,G%G,F jTe jTetie!d@."etT tie!d@."etTe et()F,G%G,FjT t()F,G%G,FjTe etie!d." tie!d."etT etTe et()F,G),& t()F,G),& //*tmt.eecute4pdate(,in*ert //*tmt.eecute4pdat e(,in*ert into *tudet va!ue*(6%GjatinG%G1CCH17H17G),)& va!ue*(6%GjatinG %G1CCH17H17G),)& $y*tem.out.print!n(+)& *tmt.eecute4pdate(+)& r*'*tmt.eecute>uery(,*e!ect r*'*tmt.eecute>ue ry(,*e!ect < from TrainDetai!*,)& r*.!a*t()&
jTetie!d1.*etTet(r*."et$trin"(1))&
jTetie!d6.*etTet(r*."et$trin"(6))& jTetie!d9.*etTet(r*."et$trin"(9))& jTetie!d;.*etTet(r*."et$trin"(;))& jTetie!d@.*etTet(r*."et$trin"(@))& jTetie!d.*etTet(r*."et$trin"())&
jButton.*etEna0 jButton.*etEna0!ed(fa!*e !ed(fa!*e)& )& jButtonC.*etEna0!ed(fa!*e)&
jButton1.*etEna0!ed(true)& jButton6.*etEna0!ed(true)& jButton9.*etEna0!ed(true)& jButton;.*etEna0!ed(true)& jButton@.*etEna0!ed(true)& jButton.*etEna0!ed(true)& jButton.*etEna0!ed(true)& jButton17.*etEna0!ed(true)& jButton11.*etEna0!ed(true)& catc(Eception e) { $y*tem.out.print!n(e)&
private void jButtonCActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your and!in" code ere# jButton.*etEna0!ed(fa!*e)& jButtonC.*etEna0!ed(fa!*e)&
jButton1.*etEna0!ed(true)& jButton6.*etEna0!ed(true)& jButton9.*etEna0!ed(true)& jButton;.*etEna0!ed(true)& jButton@.*etEna0!ed(true)& jButton.*etEna0!ed(true)& jButton.*etEna0!ed(true)& jButton17.*etEna0!ed(true)& jButton11.*etEna0!ed(true)&
try { jTetie!d1.*etTet(r*."et$trin"(1))& jTetie!d6.*etTet(r*."et$trin"(6))& jTetie!d9.*etTet(r*."et$trin"(9))& jTetie!d;.*etTet(r*."et$trin"(;))& jTetie!d@.*etTet(r*."et$trin"(@))& jTetie!d.*etTet(r*."et$trin"())&
catc(Eception e) { $y*tem.out.print!n(e)&
private void jButton17ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your and!in" code ere# try { $trin" de!& de!'(,de!ete from TrainDetai!* were Tno',FjTetie!d1."etTe Tno',FjTetie!d1."etTet())& t())& //*tmt.eecute4pdate(,de!ete //*tmt.eecute4pdat e(,de!ete from *tudet were rno'6,)& *tmt.eecute4pdate(de!)& r*'*tmt.eecute>uery(,*e!ect r*'*tmt.eecute>ue ry(,*e!ect < from TrainDetai!*,)& r*.fir*t()& jTetie!d1.*etTet(r*."et$trin"(1))& jTetie!d6.*etTet(r*."et$trin"(6))& jTetie!d9.*etTet(r*."et$trin"(9))& jTetie!d;.*etTet(r*."et$trin"(;))& jTetie!d@.*etTet(r*."et$trin"(@))& jTetie!d.*etTet(r*."et$trin"())&
catc(Eception e) { $y*tem.out.print!n(e)&
private void jButton11ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your and!in" code ere# try { *tmt'con.create$tatement()& $trin" +& // int% varcar(67)% int% int% int)& +',update TrainDetai!* *et tname 'G,F jTetie!d6."etTe jTetie!d6."etTet()F,G%T* t()F,G%T*cedu!e'G,F cedu!e'G,F jTe jTetie!d9."etT tie!d9."etTe et()F,G% t()F,G% To Tori"in'G,FjTe ri"in'G,FjTetie!d;." tie!d;."etT etTe et()F,G% t()F,G% Tde*tination'G,FjTetie!d@."etTe Tde*tination'G,FjTetie!d@."etT et()F,G% t()F,G% $tarttime'G,FjTe $tarttime'G,Fj Tetie!d."etTe tie!d."etTet()F,G t()F,G were tno',FjTetie!d1."etTe tno',FjTetie!d1."etTet() t() & $y*tem.out.print!n(+)& *tmt.eecute4pdate(+)& r*'*tmt.eecute>uery(,*e!ect r*'*tmt.eecute>ue ry(,*e!ect < from TrainDetai!*,)& r*.!a*t()& catc(Eception e) {
$y*tem.out.print!n(e)& private void formIindowActivated(java.awt.event.IindowEvent evt) { // TODO add your and!in" code ere# /<< < Jparam ar"* te command !ine ar"ument* pu0!ic *tatic void main($trin" ar"*KL) { java.awt.Event>ueue.invo:eater(new java.awt.Event>ueue.invo:ea ter(new =unna0!e() { pu0!ic void run() { new TrainDetai!*().*eti*i0!e(true)& )&
4. Coach Details
import java.*+!.<& import java.*win".<& pu0!ic c!a** 8oacDetai!* etend* java.*win".2rame { 8onnection con& $tatement *tmt& =e*u!t$et r*&
/<< 8reate* new form 8oacDetai!* pu0!ic 8oacDetai!*() { init8omponent*()& try { //8!a**.for5ame(,java.*+!.Driver,)& 8!a**.for5ame(,com.my*+!.jd0c.Driver,)& con' Driverana"er."et8onnection(,jd0c#my*+!#/ Driverana"er."et8onnection(,jd0c#my*+!#//!oca!o*t/te*t,% /!oca!o*t/te*t,%,root,%,a,)& ,root,%,a,)& *tmt ' con.create$tatement( con.create$tatement()& )& $trin" +u',*e!ect < from coacdetai!*,& r*'*tmt.eecute>uery(+u)& r*.fir*t()& jButton1ActionPerformed(nu!!)& catc(Eception e) { $y*tem.out.print!n(,?and!in" $y*tem.out.print! n(,?and!in" te error*,)&
/<< Ti* metod i* ca!!ed from witin te con*tructor to < initia!iMe te form. < IA=535N# Do 5OT modify ti* code. Te content of ti* metod i* < a!way* re"enerated 0y te orm Editor. J$uppre**Iarnin"*(,uncec:ed,)
// editorHfo!d defau!t*tate',co!!ap*ed, defau!t*tate',co! !ap*ed, de*c',Nenerated 8ode, private void init8omponent*() { jButton6 ' new java.*win".2Button()& jTetie!d6 jTetie!d6 ' new java.*win".2Tetie!d()& java.*win".2Tetie!d()& ja0e!6 ' new java.*win".2a0e!()& jTetie!d9 jTetie!d9 ' new java.*win".2Tetie!d()& java.*win".2Tetie!d()& jTetie!d1 jTetie!d1 ' new java.*win".2Tetie!d()& java.*win".2Tetie!d()& ja0e!1 ' new java.*win".2a0e!()& ja0e!9 ' new java.*win".2a0e!()& jButton1 ' new java.*win".2Button()& jTetie!d; jTetie!d; ' new java.*win".2Tetie!d()& java.*win".2Tetie!d()& jTetie!d@ jTetie!d@ ' new java.*win".2Tetie!d()& java.*win".2Tetie!d()& jTetie!d jTetie!d ' new java.*win".2Tetie!d()& java.*win".2Tetie!d()& ja0e!; ' new java.*win".2a0e!()& ja0e!@ ' new java.*win".2a0e!()& ja0e! ' new java.*win".2a0e!()& jTetie!d jTetie!d ' new java.*win".2Tetie!d()& java.*win".2Tetie!d()& ja0e! ' new java.*win".2a0e!()& ja0e! ' new java.*win".2a0e!()& jButton9 ' new java.*win".2Button()& jButton; ' new java.*win".2Button()& jButton@ ' new java.*win".2Button()& jButton ' new java.*win".2Button()& jButton ' new java.*win".2Button()& jButton ' new java.*win".2Button()& jButtonC ' new java.*win".2Button()& jButton17 ' new java.*win".2Button()& jButton11 ' new java.*win".2Button()&
*etDefau!t8!o*eOperation(java.*win".Iindow8on*tant*.EQ3TRO5R8O$E)& addIindowi*tener(new java.awt.event.IindowAdapter() java.awt.event.Iin dowAdapter() { pu0!ic void windowActivated(java.awt.event windowActivated(java.awt.event.IindowEvent .IindowEvent evt) { formIindowActivated(evt)& )& jButton6.*etont(new java.awt.ont(,Taoma,% java.awt.ont(,Taoma,% 1% 16))& jButton6.*etTet(,ain jButton6.*etTet(,ain orm,)& jButton6.addActioni*tener(new jButton6.addActioni*ten er(new java.awt.event.Actioni java.awt.event.Actioni*tener() *tener() { pu0!ic void actionPerformed(java.a actionPerformed(java.awt.event.ActionEvent wt.event.ActionEvent evt) { jButton6ActionPerformed(evt)& )& jTetie!d6.*etont(ne jTetie!d6.*etont(new w java.awt.ont(,Taoma,% java.awt.ont(,Taoma,% 1% 16))& ja0e!6.*etont(new java.awt.ont(,Taoma,% java.awt.ont(,Taoma,% 1% 16))& ja0e!6.*etTet(,Train ja0e!6.*etTet(,Train 5ame,)& jTetie!d9.*etont(ne jTetie!d9.*etont(new w java.awt.ont(,Taoma,% java.awt.ont(,Taoma,% 1% 16))& jTetie!d1.*etont(ne jTetie!d1.*etont(new w java.awt.ont(,Taoma,% java.awt.ont(,Taoma,% 1% 16))&
ja0e!1.*etont(new java.awt.ont(,Taoma,% java.awt.ont(,Taoma,% 1% 16))& ja0e!1.*etTet(,Train ja0e!1.*etTet(,Train 5o.,)& ja0e!9.*etont(new java.awt.ont(,Taoma,% java.awt.ont(,Taoma,% 1% 16))& ja0e!9.*etTet(,To ja0e!9.*etTet(,Tota! ta! 8oace*,)&
jButton1.*etont(new java.awt.ont(,Taoma,% java.awt.ont(,Taoma,% 1% 16))& jButton1.*etTet(,*ow,)& jButton1.addActioni*tener(new jButton1.addActioni*ten er(new java.awt.event.Actioni java.awt.event.Actioni*tener() *tener() { pu0!ic void actionPerformed(java.a actionPerformed(java.awt.event.ActionEvent wt.event.ActionEvent evt) { jButton1ActionPerformed(evt)& )& jTetie!d;.*etont(ne jTetie!d;.*etont(new w java.awt.ont(,Taoma,% java.awt.ont(,Taoma,% 1% 16))& jTetie!d@.*etont(ne jTetie!d@.*etont(new w java.awt.ont(,Taoma,% java.awt.ont(,Taoma,% 1% 16))& jTetie!d.*etont(ne jTetie!d.*etont(new w java.awt.ont(,Taoma,% java.awt.ont(,Taoma,% 1% 16))& ja0e!;.*etont(new java.awt.ont(,Taoma,% java.awt.ont(,Taoma,% 1% 16))& ja0e!;.*etTet(,9HTier ja0e!;.*etTet(,9HTier 8oace*,)& ja0e!@.*etont(new java.awt.ont(,Taoma,% java.awt.ont(,Taoma,% 1% 16))& ja0e!@.*etTet(,u""a"e ja0e!@.*etTet(,u""a"e 8oace*,)& ja0e!.*etont(new java.awt.ont(,Taoma,% java.awt.ont(,Taoma,% 1% 16))& ja0e!.*etTet(,Nen. ja0e!.*etTet(,Nen. 8oace*,)& jTetie!d.*etont(ne jTetie!d.*etont(new w java.awt.ont(,Taoma,% java.awt.ont(,Taoma,% 1% 16))& ja0e!.*etont(new java.awt.ont(,Taoma,% java.awt.ont(,Taoma,% 1% 16))& ja0e!.*etTet(,A/8 ja0e!.*etTet(,A/8 8oace*,)& ja0e!.*etont(new java.awt.ont(,Taoma,% java.awt.ont(,Taoma,% 1% 9))& ja0e!.*etTet(,8oac ja0e!.*etTet(,8oac Detai!*,)&
jButton9.*etont(new java.awt.ont(,Taoma,% java.awt.ont(,Taoma,% 1% 16))& jButton9.*etTet(,ir*t,)& jButton9.addActioni*tener(new jButton9.addActioni*ten er(new java.awt.event.Actioni java.awt.event.Actioni*tener() *tener() { pu0!ic void actionPerformed(java.a actionPerformed(java.awt.event.ActionEvent wt.event.ActionEvent evt) { jButton9ActionPerformed(evt)& )& jButton;.*etont(new java.awt.ont(,Taoma,% java.awt.ont(,Taoma,% 1% 16))& jButton;.*etTet(,5et,)& jButton;.addActioni*tener(new jButton;.addActioni*ten er(new java.awt.event.Actioni java.awt.event.Actioni*tener() *tener() { pu0!ic void actionPerformed(java.a actionPerformed(java.awt.event.ActionEvent wt.event.ActionEvent evt) { jButton;ActionPerformed(evt)& )& jButton@.*etont(new java.awt.ont(,Taoma,% java.awt.ont(,Taoma,% 1% 16))&
jButton@.*etTet(,Previou*,)&
[email protected]i*tener(new
[email protected]i*ten er(new java.awt.event.Actioni java.awt.event.Actioni*tener() *tener() { pu0!ic void actionPerformed(java.a actionPerformed(java.awt.event.ActionEvent wt.event.ActionEvent evt) { jButton@ActionPerformed(evt)& )& jButton.*etont(new java.awt.ont(,Taoma,% java.awt.ont(,Taoma,% 1% 16))& jButton.*etTet(,a*t,)& jButton.addActioni*tener(new jButton.addActioni*ten er(new java.awt.event.Actioni java.awt.event.Actioni*tener() *tener() { pu0!ic void actionPerformed(java.a actionPerformed(java.awt.event.ActionEvent wt.event.ActionEvent evt) { jButtonActionPerformed(evt)& )& jButton.*etont(new java.awt.ont(,Taoma,% java.awt.ont(,Taoma,% 1% 16))& jButton.*etTet(,Add,)& jButton.addActioni*tener(new jButton.addActioni*ten er(new java.awt.event.Actioni java.awt.event.Actioni*tener() *tener() { pu0!ic void actionPerformed(java.a actionPerformed(java.awt.event.ActionEvent wt.event.ActionEvent evt) { jButtonActionPerformed(evt)& )& jButton.*etont(new java.awt.ont(,Taoma,% java.awt.ont(,Taoma,% 1% 16))& jButton.*etTet(,$ave,)& jButton.addActioni*tener(new jButton.addActioni*ten er(new java.awt.event.Actioni java.awt.event.Actioni*tener() *tener() { pu0!ic void actionPerformed(java.a actionPerformed(java.awt.event.ActionEvent wt.event.ActionEvent evt) { jButtonActionPerformed(evt)& )& jButtonC.*etont(new java.awt.ont(,Taoma,% java.awt.ont(,Taoma,% 1% 16))& jButtonC.*etTet(,8ance!,)& jButtonC.addActioni*tener(new jButtonC.addActioni*ten er(new java.awt.event.Actioni java.awt.event.Actioni*tener() *tener() { pu0!ic void actionPerformed(java.a actionPerformed(java.awt.event.ActionEvent wt.event.ActionEvent evt) { jButtonCActionPerformed(evt)& )& jButton17.*etont(new java.awt.ont(,Taoma,% java.awt.ont(,Taoma,% 1% 16))& jButton17.*etTet(,De!ete,)& jButton17.addActioni*tener(new jButton17.addActioni*te ner(new java.awt.event.Actioni java.awt.event.Actioni*tener() *tener() { pu0!ic void actionPerformed(java.a actionPerformed(java.awt.event.ActionEvent wt.event.ActionEvent evt) { jButton17ActionPerformed(evt)& )& jButton11.*etont(new java.awt.ont(,Taoma,% java.awt.ont(,Taoma,% 1% 16))& jButton11.*etTet(,4pdate,)& jButton11.addActioni*tener(new java.awt.event.Actioni java.awt.event.Actioni*tener() *tener() { pu0!ic void actionPerformed(java.a actionPerformed(java.awt.event.ActionEvent wt.event.ActionEvent evt) { jButton11ActionPerformed(evt)& )&
or".jde*:top.!ayout.Nr oupayout !ayout ' new or".jde*:top.!ayout.Nroupayout or".jde*:top.!ayout.Nroupayout("et8ontentPane())& "et8ontentPane().*etayout(!ayout)& !ayout.*et?oriMonta!Nroup( !ayout.createPara!!e!Nroup(or".jde*:top.!ayout.Nroupayout.EAD35N) .add(!ayout.create$e+uentia!Nroup() .add(!ayout.createPara!!e!Nroup(or".jde*:top.!ayout.Nroupayout.EAD35N) .add(!ayout.create$e+uentia!Nroup() .add(17% 17% 17) .add(!ayout.createPara!!e!Nroup(or".jde*:top.!ayout.Nroupayout.EAD35N) .add(jButton1% or".jde*:top.!ayout.Nro or".jde*:top.!ayout.Nroupayout.P=EE==EDR$3SE% upayout.P=EE==EDR$3SE% 7% or".jde*:top.!ayout.Nroupayout.P=EE==EDR$3SE) .add(jButton6% or".jde*:top.!ayout.Nro or".jde*:top.!ayout.Nroupayout.P=EE==EDR$3SE% upayout.P=EE==EDR$3SE% 177% or".jde*:top.!ayout.Nroupayout.P=EE==EDR$3SE)) .add(;7% ;7% ;7) .add(!ayout.createPara!!e!Nroup(or".jde*:top.!ayout.Nroupayout.EAD35N) .add(!ayout.create$e+uentia!Nroup() .add(jButton9% or".jde*:top.!ayout.Nro or".jde*:top.!ayout.Nroupayout.P=EE==EDR$3SE% upayout.P=EE==EDR$3SE% 7% or".jde*:top.!ayout.Nroupayout.P=EE==EDR$3SE) .add(17% 17% 17) .add(jButton;% or".jde*:top.!ayout.Nro or".jde*:top.!ayout.Nroupayout.P=EE==EDR$3SE% upayout.P=EE==EDR$3SE% 7% or".jde*:top.!ayout.Nroupayout.P=EE==EDR$3SE) .add(17% 17% 17) .add(jButton@% or".jde*:top.!ayout.Nro or".jde*:top.!ayout.Nroupayout.P=EE==EDR$3SE% upayout.P=EE==EDR$3SE% C7% or".jde*:top.!ayout.Nroupayout.P=EE==EDR$3SE) .add(17% 17% 17) .add(jButton% or".jde*:top.!ayout.Nro or".jde*:top.!ayout.Nroupayout.P=EE==EDR$3SE% upayout.P=EE==EDR$3SE% 7% or".jde*:top.!ayout.Nroupayout.P=EE==EDR$3SE)) .add(!ayout.create$e+uentia!Nroup() .addPreferredNap(or".jde*:top.!ayout.ayout$ty!e.=EATED) .add(!ayout.createPara!!e!Nroup(or".jde*:top.!ayout.Nroupayout.T=A335N) .add(ja0e!) .add(ja0e!1) .add(ja0e!) .add(ja0e!6) .add(ja0e!@) .add(ja0e!;) .add(ja0e!9)) .add(6;% 6;% 6;) .add(!ayout.createPara!!e!Nroup(or".jde*:top.!ayout.Nroupayout.T=A335N) .add(jTetie!d;% or".jde*:top.!ayout.Nroupayout.P=EE==EDR$3SE% 197% or".jde*:top.!ayout.Nroupayout.P=EE==EDR$3SE) .add(jTetie!d% or".jde*:top.!ayout.Nroupayout.P=EE==EDR$3SE% 197% or".jde*:top.!ayout.Nroupayout.P=EE==EDR$3SE) .add(jTetie!d9% or".jde*:top.!ayout.Nroupayout.P=EE==EDR$3SE% 197% or".jde*:top.!ayout.Nroupayout.P=EE==EDR$3SE)
.add(jTetie!d6% or".jde*:top.!ayout.Nroupayout.P=EE==EDR$3SE% 197% or".jde*:top.!ayout.Nroupayout.P=EE==EDR$3SE) .add(jTetie!d1% or".jde*:top.!ayout.Nroupayout.P=EE==EDR$3SE% 197% or".jde*:top.!ayout.Nroupayout.P=EE==EDR$3SE) .add(jTetie!d% or".jde*:top.!ayout.Nroupayout.P=EE==EDR$3SE% 197% or".jde*:top.!ayout.Nroupayout.P=EE==EDR$3SE) .add(jTetie!d@% or".jde*:top.!ayout.Nroupayout.P=EE==EDR$3SE% 197% or".jde*:top.!ayout.Nroupayout.P=EE==EDR$3SE)) .add(61% 61% 61) .add(!ayout.createPara!!e!Nroup(or".jde*:top.!ayout.Nroupayout.EAD35N) .add(!ayout.create$e+uentia!Nroup() .add(jButton17% or".jde*:top.!ayout.Nroupayout.P=EE==EDR$3SE% 7% or".jde*:top.!ayout.Nroupayout.P=EE==EDR$3SE) .addPreferredNap(or".jde*:top.!ayout.ayout$ty!e.=EATED) .add(jButton11% or".jde*:top.!ayout.Nroupayout.P=EE==EDR$3SE% 7% or".jde*:top.!ayout.Nroupayout.P=EE==EDR$3SE)) .add(!ayout.create$e+uentia!Nroup() .add(jButton% or".jde*:top.!ayout.Nroupayout.P=EE==EDR$3SE% 7% or".jde*:top.!ayout.Nroupayout.P=EE==EDR$3SE) .add(17% 17% 17) .add(jButton% or".jde*:top.!ayout.Nroupayout.P=EE==EDR$3SE% 7% or".jde*:top.!ayout.Nroupayout.P=EE==EDR$3SE) .add(17% 17% 17) .add(jButtonC% or".jde*:top.!ayout.Nroupayout.P=EE==EDR$3SE% 7% or".jde*:top.!ayout.Nroupayout.P=EE==EDR$3SE)))))) .add(!ayout.create$e+uentia!Nroup() .add(6;6% 6;6% 6;6) .add(ja0e!))) .add8ontainerNap(or".jde*:top.!ayout.Nroupayout.DEA4TR$3SE% $ort.AQRA4E)) )& !ayout.*etertica!Nroup( !ayout.createPara!!e!Nroup(or".jde*:top.!ayout.Nroupayout.EAD35N) .add(!ayout.create$e+uentia!Nroup() .add(ja0e!) .add(C% C% C) .add(!ayout.createPara!!e!Nroup(or".jde*:top.!ayout.Nroupayout.EAD35N) .add(!ayout.create$e+uentia!Nroup() .add(@1% @1% @1) .add(!ayout.createPara!!e!Nroup(or".jde*:top.!ayout.Nroupayout.EAD35N) .add(jButton) .add(jButton) .add(jButtonC))
.add(1% 1% 1) .add(!ayout.createPara!!e!Nroup(or".jde*:top.!ayout.Nroupayout.BA$E35E) .add(jButton17) .add(jButton11))) .add(!ayout.create$e+uentia!Nroup() .add(6% 6% 6) .add(!ayout.createPara!!e!Nroup(or".jde*:top.!ayout.Nroupayout.BA$E35E) .add(ja0e!1) .add(jTetie!d1% .add(jTetie!d1% or".jde*:top.!ayout.Nr or".jde*:top.!ayout.Nroupayout.P=EE==EDR$3SE% oupayout.P=EE==EDR$3SE% or".jde*:top.!ayout.Nroupayout.DEA4TR$3SE% or".jde*:top.!ayout.Nroupayout.P=EE==EDR$3SE)) .add(1@% 1@% 1@) .add(!ayout.createPara!!e!Nroup(or".jde*:top.!ayout.Nroupayout.EAD35N) .add(ja0e!6) .add(jTetie!d6% .add(jTetie!d6% or".jde*:top.!ayout.Nr or".jde*:top.!ayout.Nroupayout.P=EE==EDR$3SE% oupayout.P=EE==EDR$3SE% or".jde*:top.!ayout.Nroupayout.DEA4TR$3SE% or".jde*:top.!ayout.Nroupayout.P=EE==EDR$3SE)) .add(17% 17% 17) .add(!ayout.createPara!!e!Nroup(or".jde*:top.!ayout.Nroupayout.EAD35N) .add(ja0e!9) .add(jTetie!d9% .add(jTetie!d9% or".jde*:top.!ayout.Nr or".jde*:top.!ayout.Nroupayout.P=EE==EDR$3SE% oupayout.P=EE==EDR$3SE% or".jde*:top.!ayout.Nroupayout.DEA4TR$3SE% or".jde*:top.!ayout.Nroupayout.P=EE==EDR$3SE)) .add(% % ) .add(!ayout.createPara!!e!Nroup(or".jde*:top.!ayout.Nroupayout.EAD35N) .add(ja0e!@) .add(jTetie!d;% .add(jTetie!d;% or".jde*:top.!ayout.Nr or".jde*:top.!ayout.Nroupayout.P=EE==EDR$3SE% oupayout.P=EE==EDR$3SE% or".jde*:top.!ayout.Nroupayout.DEA4TR$3SE% or".jde*:top.!ayout.Nroupayout.P=EE==EDR$3SE)) .add(17% 17% 17) .add(!ayout.createPara!!e!Nroup(or".jde*:top.!ayout.Nroupayout.EAD35N) .add(ja0e!) .add(jTetie!d@% .add(jTetie!d@% or".jde*:top.!ayout.Nr or".jde*:top.!ayout.Nroupayout.P=EE==EDR$3SE% oupayout.P=EE==EDR$3SE% or".jde*:top.!ayout.Nroupayout.DEA4TR$3SE% or".jde*:top.!ayout.Nroupayout.P=EE==EDR$3SE)) .add(17% 17% 17) .add(!ayout.createPara!!e!Nroup(or".jde*:top.!ayout.Nroupayout.EAD35N) .add(ja0e!;) .add(jTetie!d% .add(jTetie!d% or".jde*:top.!ayout.Nr or".jde*:top.!ayout.Nroupayout.P=EE==EDR$3SE% oupayout.P=EE==EDR$3SE% or".jde*:top.!ayout.Nroupayout.DEA4TR$3SE% or".jde*:top.!ayout.Nroupayout.P=EE==EDR$3SE)) .add(17% 17% 17) .add(!ayout.createPara!!e!Nroup(or".jde*:top.!ayout.Nroupayout.EAD35N) .add(ja0e!)
.add(jTetie!d% .add(jTetie!d% or".jde*:top.!ayout.Nr or".jde*:top.!ayout.Nroupayout.P=EE==EDR$3SE% oupayout.P=EE==EDR$3SE% or".jde*:top.!ayout.Nroupayout.DEA4TR$3SE% or".jde*:top.!ayout.Nroupayout.P=EE==EDR$3SE)))) .add(67% 67% 67) .add(!ayout.createPara!!e!Nroup(or".jde*:top.!ayout.Nroupayout.T=A335N) .add(!ayout.create$e+uentia!Nroup() .add(jButton1) .add(% % ) .add(jButton6)) .add(!ayout.createPara!!e!Nroup(or".jde*:top.!ayout.Nroupayout.EAD35N) .add(jButton9) .add(jButton;) .add(jButton@) .add(jButton))) .add8ontainerNap(or".jde*:top.!ayout.Nroupayout.DEA4TR$3SE% $ort.AQRA4E)) )&
pac:()& // /editorHfo!d
private void jButton6ActionPerform jButton6ActionPerformed(java.awt.event.ActionEvent ed(java.awt.event.ActionEvent evt) { // TODO add your and!in" code ere# ainrame f1'new ainrame()& ti*.*eti*i0!e(fa!*e)& f1.*eti*i0!e(true)&
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your and!in" code ere# try { jTetie!d1.*etTet(r*."et$trin"(1))& jTetie!d6.*etTet(r*."et$trin"(6))& jTetie!d9.*etTet(r*."et$trin"(9))& jTetie!d;.*etTet(r*."et$trin"(;))& jTetie!d@.*etTet(r*."et$trin"(@))& jTetie!d.*etTet(r*."et$trin"())& jTetie!d.*etTet(r*."et$trin"())&
jButton.*etEna0 jButton.*etEna0!ed(fa!*e !ed(fa!*e)& )& jButtonC.*etEna0!ed(fa!*e)& catc(Eception e) { $y*tem.out.print!n(e)&
private void jButton9ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your and!in" code ere# try { r*.fir*t()&
jTetie!d1.*etTet(r*."et$trin"(1))&
jTetie!d6.*etTet(r*."et$trin"(6))& jTetie!d9.*etTet(r*."et$trin"(9))& jTetie!d;.*etTet(r*."et$trin"(;))& jTetie!d@.*etTet(r*."et$trin"(@))& jTetie!d.*etTet(r*."et$trin"())& jTetie!d.*etTet(r*."et$trin"())& catc(Eception e) { $y*tem.out.print!n(e)&
private void jButton;ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your and!in" code ere# try { r*.net()& if(r*.i*Aftera*t()) { 2OptionPane.*owe**a"eDia!o"(nu!!% 2OptionPane.*owe**a"eDia! o"(nu!!% ,End of Data,)& r*.!a*t()& return& jTetie!d1.*etTet(r*."et$trin"(1))& jTetie!d6.*etTet(r*."et$trin"(6))& jTetie!d9.*etTet(r*."et$trin"(9))& jTetie!d;.*etTet(r*."et$trin"(;))& jTetie!d@.*etTet(r*."et$trin"(@))& jTetie!d.*etTet(r*."et$trin"())& jTetie!d.*etTet(r*."et$trin"())& catc(Eception e) { $y*tem.out.print!n(e)&
private void jButton@ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your and!in" code ere# try { r*.previou*()& if(r*.i*Beforeir*t()) { 2OptionPane.*owe**a"eDia!o"(nu!!% 2OptionPane.*owe**a"eDia! o"(nu!!% ,End of Data,)& r*.fir*t()& return& jTetie!d1.*etTet(r*."et$trin"(1))& jTetie!d6.*etTet(r*."et$trin"(6))&
jTetie!d9.*etTet(r*."et$trin"(9))& jTetie!d;.*etTet(r*."et$trin"(;))& jTetie!d@.*etTet(r*."et$trin"(@))& jTetie!d.*etTet(r*."et$trin"())& jTetie!d.*etTet(r*."et$trin"())& catc(Eception e) { $y*tem.out.print!n(e)&
private void jButtonActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your and!in" code ere# try { r*.!a*t()&
jTetie!d1.*etTet(r*."et$trin"(1))& jTetie!d6.*etTet(r*."et$trin"(6))& jTetie!d9.*etTet(r*."et$trin"(9))& jTetie!d;.*etTet(r*."et$trin"(;))& jTetie!d@.*etTet(r*."et$trin"(@))& jTetie!d.*etTet(r*."et$trin"())& jTetie!d.*etTet(r*."et$trin"())& catc(Eception e) { $y*tem.out.print!n(e)&
private void jButtonActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your and!in" code ere# jTetie!d1.*etTet(,,)& jTetie!d6.*etTet(,,)& jTetie!d9.*etTet(,,)& jTetie!d;.*etTet(,,)& jTetie!d@.*etTet(,,)& jTetie!d.*etTet(,,)& jTetie!d.*etTet(,,)&
jButton.*etEna0 jButton.*etEna0!ed(true !ed(true)& )& jButtonC.*etEna0!ed(true)&
jButton1.*etEna0!ed(fa!*e)& jButton6.*etEna0!ed(fa!*e)& jButton9.*etEna0!ed(fa!*e)& jButton;.*etEna0!ed(fa!*e)&
jButton@.*etEna0!ed(fa!*e)& jButton.*etEna0!ed(fa!*e)& jButton.*etEna0!ed(fa!*e)& jButton17.*etEna0!ed(fa!*e)& jButton11.*etEna0!ed(fa!*e)&
private void jButtonActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your and!in" code ere# try { *tmt'con.create$tatement()& $trin" +& +',in*ert into coacdetai!* va!ue* (, F jTetie!d1."etTe jTetie!d1."etTet()F,%G,F t()F,%G,F jTe jTetie!d6."etT tie!d6."etTe et()F,G%G,FjT t()F,G%G,FjTe etie!d9." tie!d9."etT etTe et()F,G%G,F t()F,G%G,F jTe jTetie!d;."etT tie!d;."etTe et()F,G%G,F t()F,G%G,F jTe jTetie!d@."etT tie!d@."etTe et()F,G%G,FjT t()F,G%G,FjTe etie!d." tie!d."etT etTe et()F,G%G,F t()F,G%G,F jTe jTetie!d."etT tie!d."etTe et()F,G),& t()F,G),& //*tmt.eecute4pdate(,in*ert //*tmt.eecute4pdat e(,in*ert into *tudet va!ue*(6%GjatinG%G1CCH17H17G),)& va!ue*(6%GjatinG %G1CCH17H17G),)& $y*tem.out.print!n(+)& *tmt.eecute4pdate(+)& r*'*tmt.eecute>uery(,*e!ect r*'*tmt.eecute>ue ry(,*e!ect < from coacdetai!*,)& r*.!a*t()&
jTetie!d1.*etTet(r*."et$trin"(1))& jTetie!d6.*etTet(r*."et$trin"(6))& jTetie!d9.*etTet(r*."et$trin"(9))& jTetie!d;.*etTet(r*."et$trin"(;))& jTetie!d@.*etTet(r*."et$trin"(@))& jTetie!d.*etTet(r*."et$trin"())& jTetie!d.*etTet(r*."et$trin"())&
jButton.*etEna0 jButton.*etEna0!ed(fa!*e !ed(fa!*e)& )& jButtonC.*etEna0!ed(fa!*e)&
jButton1.*etEna0!ed(true)& jButton6.*etEna0!ed(true)& jButton9.*etEna0!ed(true)& jButton;.*etEna0!ed(true)& jButton@.*etEna0!ed(true)& jButton.*etEna0!ed(true)& jButton.*etEna0!ed(true)& jButton17.*etEna0!ed(true)& jButton11.*etEna0!ed(true)& catc(Eception e) { $y*tem.out.print!n(e)&
private void jButtonCActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your and!in" code ere# jButton.*etEna0!ed(fa!*e)& jButtonC.*etEna0!ed(fa!*e)&
jButton1.*etEna0!ed(true)& jButton6.*etEna0!ed(true)& jButton9.*etEna0!ed(true)& jButton;.*etEna0!ed(true)& jButton@.*etEna0!ed(true)& jButton.*etEna0!ed(true)& jButton.*etEna0!ed(true)& jButton17.*etEna0!ed(true)& jButton11.*etEna0!ed(true)&
try { jTetie!d1.*etTet(r*."et$trin"(1))& jTetie!d6.*etTet(r*."et$trin"(6))& jTetie!d9.*etTet(r*."et$trin"(9))& jTetie!d;.*etTet(r*."et$trin"(;))& jTetie!d@.*etTet(r*."et$trin"(@))& jTetie!d.*etTet(r*."et$trin"())& jTetie!d.*etTet(r*."et$trin"())&
catc(Eception e) { $y*tem.out.print!n(e)&
private void jButton17ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your and!in" code ere# try { $trin" de!& de!'(,de!ete from coacdetai!* were Tno',FjTetie!d1."etTe Tno',FjTetie!d1."etTet())& t())& //*tmt.eecute4pdate(,de!ete //*tmt.eecute4pdat e(,de!ete from *tudet were rno'6,)& *tmt.eecute4pdate(de!)& r*'*tmt.eecute>uery(,*e!ect r*'*tmt.eecute>ue ry(,*e!ect < from coacdetai!*,)& r*.fir*t()& jTetie!d1.*etTet(r*."et$trin"(1))& jTetie!d6.*etTet(r*."et$trin"(6))& jTetie!d9.*etTet(r*."et$trin"(9))& jTetie!d;.*etTet(r*."et$trin"(;))& jTetie!d@.*etTet(r*."et$trin"(@))& jTetie!d.*etTet(r*."et$trin"())& jTetie!d.*etTet(r*."et$trin"())& catc(Eception e)
{
$y*tem.out.print!n(e)&
private void jButton11ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your and!in" code ere# try { *tmt'con.create$tatement()& $trin" +& // int% varcar(67)% int% int% int)& +',update coacdetai!* *et Tname 'G,F jTetie!d6."etTe jTetie!d6."etTet()F,G%To t()F,G%Tota!8oace*',F ta!8oace*',F jTe jTetie!d9."etT tie!d9."etTe et()F,% t()F,% u"8oace*' u"8oace*',FjT ,FjTe etie!d;." tie!d;."etT etTe et()F,% Nen8oace*',FjTetie!d@."etTe Nen8oace*',FjTetie!d@."etTet()F,% t()F,% Tire9Rcoace*',FjTe Tire9Rcoace*',FjTetie!d."etTe tie!d."etTet()F,% t()F,% A8R8oace*',F A8R8oace*',FjT jTe etie!d." tie!d."etT etTe et()F, t()F, were were Tno',FjT Tno',FjTe etie!d1."etT tie!d1."etTe et()& t()& //$y*tem.out.print!n(+)& *tmt.eecute4pdate(+)& r*'*tmt.eecute>uery(,*e!ect r*'*tmt.eecute>ue ry(,*e!ect < from coacdetai!*,)& r*.!a*t()& catc(Eception e) { $y*tem.out.print!n(e)& private void formIindowActivated(java.awt.event.IindowEvent evt) { // TODO add your and!in" code ere# /<< < Jparam ar"* te command !ine ar"ument* pu0!ic *tatic void main($trin" ar"*KL) { java.awt.Event>ueue.invo:eater(new java.awt.Event>ueue.invo:ea ter(new =unna0!e() { pu0!ic void run() { new 8oacDetai!*().*eti*i0!e( 8oacDetai!*().*eti*i0!e(true)& true)& )&
5. Ticket Current
import java.*+!.<& import java.*win".<& pu0!ic c!a** T:t8urrent etend* java.*win".2rame { 8onnection con& $tatement *tmt& =e*u!t$et r*&
/<< 8reate* new form 8oacDetai!* pu0!ic T:t8urrent() { init8omponent*()& try { //8!a**.for5ame(,java.*+!.Driver,)& 8!a**.for5ame(,com.my*+!.jd0c.Driver,)& con' Driverana"er."et8onnection(,jd0c#my*+!#/ Driverana"er."et8onnection(,jd0c#my*+!#//!oca!o*t/te*t,% /!oca!o*t/te*t,%,root,%,a,)& ,root,%,a,)& *tmt ' con.create$tatement( con.create$tatement()& )& $trin" +u',*e!ect < from t:tcurrent,& r*'*tmt.eecute>uery(+u)& r*.fir*t()& jButton1ActionPerformed(nu!!)& catc(Eception e) { $y*tem.out.print!n(,?and!in" $y*tem.out.print! n(,?and!in" te error*,)&
private void jButton6ActionPerform jButton6ActionPerformed(java.awt.event.ActionEvent ed(java.awt.event.ActionEvent evt) { // TODO add your and!in" code ere# ainrame f1'new ainrame()& ti*.*eti*i0!e(fa!*e)& f1.*eti*i0!e(true)&
private void jButton1ActionPerform jButton1ActionPerformed(java.awt.event.ActionEvent ed(java.awt.event.ActionEvent evt) { // TODO add your and!in" code ere# try { jTetie!d1.*etTet(r*."et$trin"(1))& jTetie!d6.*etTet(r*."et$trin"(6))& jTetie!d9.*etTet(r*."et$trin"(9))& jTetie!d;.*etTet(r*."et$trin"(;))& jTetie!d@.*etTet(r*."et$trin"(@))& jTetie!d.*etTet(r*."et$trin"())& jTetie!d.*etTet(r*."et$trin"())& jTetie!d.*etTet(r*."et$trin"())& jTetie!dC.*etTet(r*."et$trin"(C))& jButton.*etEna0 jButton.*etEna0!ed(fa!*e !ed(fa!*e)& )& jButtonC.*etEna0!ed(fa!*e)& catc(Eception e) { $y*tem.out.print!n(e)&
private void jButton9ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your and!in" code ere# try { r*.fir*t()&
jTetie!d1.*etTet(r*."et$trin"(1))& jTetie!d6.*etTet(r*."et$trin"(6))& jTetie!d9.*etTet(r*."et$trin"(9))& jTetie!d;.*etTet(r*."et$trin"(;))& jTetie!d@.*etTet(r*."et$trin"(@))& jTetie!d.*etTet(r*."et$trin"())& jTetie!d.*etTet(r*."et$trin"())& jTetie!d.*etTet(r*."et$trin"())& jTetie!dC.*etTet(r*."et$trin"(C))& catc(Eception e) { $y*tem.out.print!n(e)&
private void jButton;ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your and!in" code ere# try { r*.net()& if(r*.i*Aftera*t()) { 2OptionPane.*owe**a"eDia!o"(nu!!% 2OptionPane.*owe**a"eDia! o"(nu!!% ,End of Data,)& r*.!a*t()& return&
jTetie!d1.*etTet(r*."et$trin"(1))& jTetie!d6.*etTet(r*."et$trin"(6))& jTetie!d9.*etTet(r*."et$trin"(9))& jTetie!d;.*etTet(r*."et$trin"(;))& jTetie!d@.*etTet(r*."et$trin"(@))& jTetie!d.*etTet(r*."et$trin"())& jTetie!d.*etTet(r*."et$trin"())& jTetie!d.*etTet(r*."et$trin"())& jTetie!dC.*etTet(r*."et$trin"(C))&
catc(Eception e) { $y*tem.out.print!n(e)&
private void jButton@ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your and!in" code ere# try { r*.previou*()& if(r*.i*Beforeir*t()) { 2OptionPane.*owe**a"eDia!o"(nu!!% 2OptionPane.*owe**a"eDia! o"(nu!!% ,End of Data,)& r*.fir*t()& return& jTetie!d1.*etTet(r*."et$trin"(1))& jTetie!d6.*etTet(r*."et$trin"(6))& jTetie!d9.*etTet(r*."et$trin"(9))& jTetie!d;.*etTet(r*."et$trin"(;))& jTetie!d@.*etTet(r*."et$trin"(@))& jTetie!d.*etTet(r*."et$trin"())& jTetie!d.*etTet(r*."et$trin"())& jTetie!d.*etTet(r*."et$trin"())& jTetie!dC.*etTet(r*."et$trin"(C))& catc(Eception e) { $y*tem.out.print!n(e)&
private void jButtonActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your and!in" code ere# try { r*.!a*t()&
jTetie!d1.*etTet(r*."et$trin"(1))& jTetie!d6.*etTet(r*."et$trin"(6))& jTetie!d9.*etTet(r*."et$trin"(9))& jTetie!d;.*etTet(r*."et$trin"(;))& jTetie!d@.*etTet(r*."et$trin"(@))& jTetie!d.*etTet(r*."et$trin"())& jTetie!d.*etTet(r*."et$trin"())& jTetie!d.*etTet(r*."et$trin"())& jTetie!dC.*etTet(r*."et$trin"(C))& catc(Eception e) { $y*tem.out.print!n(e)&
private void jButtonActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your and!in" code ere# jTetie!d1.*etTet(,,)& jTetie!d6.*etTet(,,)& jTetie!d9.*etTet(,,)& jTetie!d;.*etTet(,,)& jTetie!d@.*etTet(,,)& jTetie!d.*etTet(,,)& jTetie!d.*etTet(,,)& jTetie!d.*etTet(,,)& jTetie!dC.*etTet(,,)&
jButton.*etEna0!ed(true)& jButtonC.*etEna0!ed(true)&
jButton1.*etEna0!ed(fa!*e)& jButton6.*etEna0!ed(fa!*e)& jButton9.*etEna0!ed(fa!*e)& jButton;.*etEna0!ed(fa!*e)& jButton@.*etEna0!ed(fa!*e)& jButton.*etEna0!ed(fa!*e)& jButton.*etEna0!ed(fa!*e)& jButton17.*etEna0!ed(fa!*e)& jButton11.*etEna0!ed(fa!*e)&
private void jButtonActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your and!in" code ere# try { *tmt'con.create$tatement()& $trin" +& +',in*ert into t:tcurrent va!ue* (, F jTetie!d1."etTe jTetie!d1."etTet()F,%,F t()F,%,F jTetie!d6."etTe jTetie!d6."etTet() t() F,%G,FjTetie!d9."etTe F,%G,FjTetie!d9."etTet()F,G%G,F t()F,G%G,F jTetie!d;."etTe jTetie!d;."etTet()F,G%G,F t()F,G%G,F jTetie!d@."etTe jTetie!d@."etTet() t()
F,G%G,FjTetie!d."etTe F,G%G,FjTetie!d."etTet()F,G%,F t()F,G%,F jTetie!d."etTe jTetie!d."etTet()F,%,F t()F,%,F jTetie!d."etTe jTetie!d."etTet()F,%,F t()F,%,F jTe jTetie!dC."etT tie!dC."etTe et()F,),& t()F,),& //*tmt.eecute4pdate(,in*ert //*tmt.eecute4pdat e(,in*ert into *tudet va!ue*(6%GjatinG%G1CCH17H17G),)& va!ue*(6%GjatinG %G1CCH17H17G),)& $y*tem.out.print!n(+)& *tmt.eecute4pdate(+)& r*'*tmt.eecute>uery(,*e!ect r*'*tmt.eecute>ue ry(,*e!ect < from t:tcurrent,)& r*.!a*t()&
jTetie!d1.*etTet(r*."et$trin"(1))& jTetie!d6.*etTet(r*."et$trin"(6))& jTetie!d9.*etTet(r*."et$trin"(9))& jTetie!d;.*etTet(r*."et$trin"(;))& jTetie!d@.*etTet(r*."et$trin"(@))& jTetie!d.*etTet(r*."et$trin"())& jTetie!d.*etTet(r*."et$trin"())& jTetie!d.*etTet(r*."et$trin"())& jTetie!dC.*etTet(r*."et$trin"(C))&
jButton.*etEna0 jButton.*etEna0!ed(fa!*e !ed(fa!*e)& )& jButtonC.*etEna0!ed(fa!*e)&
jButton1.*etEna0!ed(true)& jButton6.*etEna0!ed(true)& jButton9.*etEna0!ed(true)& jButton;.*etEna0!ed(true)& jButton@.*etEna0!ed(true)& jButton.*etEna0!ed(true)& jButton.*etEna0!ed(true)& jButton17.*etEna0!ed(true)& jButton11.*etEna0!ed(true)& catc(Eception e) { $y*tem.out.print!n(e)&
private void jButtonCActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your and!in" code ere# jButton.*etEna0!ed(fa!*e)& jButtonC.*etEna0!ed(fa!*e)&
jButton1.*etEna0!ed(true)& jButton6.*etEna0!ed(true)& jButton9.*etEna0!ed(true)& jButton;.*etEna0!ed(true)& jButton@.*etEna0!ed(true)& jButton.*etEna0!ed(true)& jButton.*etEna0!ed(true)& jButton17.*etEna0!ed(true)&
jButton11.*etEna0!ed(true)&
try { jTetie!d1.*etTet(r*."et$trin"(1))& jTetie!d6.*etTet(r*."et$trin"(6))& jTetie!d9.*etTet(r*."et$trin"(9))& jTetie!d;.*etTet(r*."et$trin"(;))& jTetie!d@.*etTet(r*."et$trin"(@))& jTetie!d.*etTet(r*."et$trin"())& jTetie!d.*etTet(r*."et$trin"())&
catc(Eception e) { $y*tem.out.print!n(e)&
private void jButton17ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your and!in" code ere# try { $trin" de!& de!'(,de!ete from t:tcurrent were T:tno',FjTetie!d1."etTe T:tno',FjTetie!d1."etTet())& t())& //*tmt.eecute4pdate(,de!ete //*tmt.eecute4pdat e(,de!ete from *tudet were rno'6,)& *tmt.eecute4pdate(de!)& r*'*tmt.eecute>uery(,*e!ect r*'*tmt.eecute>ue ry(,*e!ect < from t:tcurrent,)& r*.fir*t()& jTetie!d1.*etTet(r*."et$trin"(1))& jTetie!d6.*etTet(r*."et$trin"(6))& jTetie!d9.*etTet(r*."et$trin"(9))& jTetie!d;.*etTet(r*."et$trin"(;))& jTetie!d@.*etTet(r*."et$trin"(@))& jTetie!d.*etTet(r*."et$trin"())& jTetie!d.*etTet(r*."et$trin"())& jTetie!d.*etTet(r*."et$trin"())& jTetie!dC.*etTet(r*."et$trin"(C))& catc(Eception e) { $y*tem.out.print!n(e)&
private void jButton11ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your and!in" code ere# try { *tmt'con.create$tatement()&
$trin" +& // int% varcar(67)% int% int% int)& +',update t:tcurrent *et tno ',F jTetie!d6."etTe jTetie!d6."etTet()F,%Tname'G, t()F,%Tname'G,F F jTe jTetie!d9."etT tie!d9."etTe et()F,G% t()F,G% 2date'G,FjT 2date'G,FjTe etie!d;."etT tie!d;."etTe et()F,G% t()F,G% from*tation'G,FjTe from*tation'G,F jTetie!d@."etTe tie!d@."etTet()F,G% t()F,G% de*tination'G,FjT de*tination'G,Fj Tetie!d."etTet()F,G% etie!d."etTet()F,G% 5oOfPer*on*',FjTetie!d."etTe 5oOfPer*on*',FjTetie!d."etTet()F,% t()F,% AmtRperT:t',FjTetie!d."etTe AmtRperT:t',FjTetie!d."etTet()F,% t()F,% tota!Amt',FjTetie!dC."etTe tota!Amt',FjTetie!dC."etTet()F, t()F, were T:tno',FjTetie!d1."etTe T:tno',FjTetie!d1."etTet()& t()& //$y*tem.out.print!n(+)& *tmt.eecute4pdate(+)& r*'*tmt.eecute>uery(,*e!ect r*'*tmt.eecute>ue ry(,*e!ect < from t:tcurrent,)& r*.!a*t()& catc(Eception e) { $y*tem.out.print!n(e)& private void formIindowActivated(java.awt.event.IindowEvent evt) { // TODO add your and!in" code ere# /<< < Jparam ar"* te command !ine ar"ument* pu0!ic *tatic void main($trin" ar"*KL) { java.awt.Event>ueue.invo:eater(new java.awt.Event>ueue.invo:ea ter(new =unna0!e() { pu0!ic void run() { new T:t8urrent().*eti*i0!e(true) T:t8urrent().*eti*i0!e(true)&& )&
. Tic:et Advance
import java.*+!.<& import java.*win".<& pu0!ic c!a** T:tAdvance etend* java.*win".2rame { 8onnection con& $tatement *tmt& =e*u!t$et r*&
/<< 8reate* new form 8oacDetai!* pu0!ic T:tAdvance() { init8omponent*()& try { //8!a**.for5ame(,java.*+!.Driver,)& 8!a**.for5ame(,com.my*+!.jd0c.Driver,)& con' Driverana"er."et8onnection(,jd0c#my*+!#/ Driverana"er."et8onnection(,jd0c#my*+!#//!oca!o*t/te*t,% /!oca!o*t/te*t,%,root,%,a,)& ,root,%,a,)& *tmt ' con.create$tatement( con.create$tatement()& )& $trin" +u',*e!ect < from t:tadvance,& r*'*tmt.eecute>uery(+u)& r*.fir*t()& jButton1ActionPerformed(nu!!)& catc(Eception e) { $y*tem.out.print!n(,?and!in" $y*tem.out.print! n(,?and!in" te error*,)&
private void jButton6ActionPerform jButton6ActionPerformed(java.awt.event.ActionEvent ed(java.awt.event.ActionEvent evt) { // TODO add your and!in" code ere# ainrame f1'new ainrame()& ti*.*eti*i0!e(fa!*e)& f1.*eti*i0!e(true)&
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your and!in" code ere# try { jTetie!d1.*etTet(r*."et$trin"(1))& jTetie!d6.*etTet(r*."et$trin"(6))& jTetie!d9.*etTet(r*."et$trin"(9))& jTetie!d;.*etTet(r*."et$trin"(;))& jTetie!d@.*etTet(r*."et$trin"(@))& jTetie!d.*etTet(r*."et$trin"())& jTetie!d.*etTet(r*."et$trin"())& jTetie!d.*etTet(r*."et$trin"())& jTetie!dC.*etTet(r*."et$trin"(C))& jTetie!d17.*etTet(r*."et$trin"(17))& jButton.*etEna0 jButton.*etEna0!ed(fa!*e !ed(fa!*e)& )& jButtonC.*etEna0!ed(fa!*e)& catc(Eception e) { $y*tem.out.print!n(e)&
private void jButton9ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your and!in" code ere# try { r*.fir*t()&
jTetie!d1.*etTet(r*."et$trin"(1))& jTetie!d6.*etTet(r*."et$trin"(6))& jTetie!d9.*etTet(r*."et$trin"(9))& jTetie!d;.*etTet(r*."et$trin"(;))& jTetie!d@.*etTet(r*."et$trin"(@))& jTetie!d.*etTet(r*."et$trin"())& jTetie!d.*etTet(r*."et$trin"())& jTetie!d.*etTet(r*."et$trin"())& jTetie!dC.*etTet(r*."et$trin"(C))& jTetie!d17.*etTet(r*."et$trin"(17))& catc(Eception e) { $y*tem.out.print!n(e)&
private void jButton;ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your and!in" code ere#
try {
r*.net()& if(r*.i*Aftera*t()) { 2OptionPane.*owe**a"eDia!o"(nu!!% 2OptionPane.*owe**a"eDia! o"(nu!!% ,End of Data,)& r*.!a*t()& return& jTetie!d1.*etTet(r*."et$trin"(1))& jTetie!d6.*etTet(r*."et$trin"(6))& jTetie!d9.*etTet(r*."et$trin"(9))& jTetie!d;.*etTet(r*."et$trin"(;))& jTetie!d@.*etTet(r*."et$trin"(@))& jTetie!d.*etTet(r*."et$trin"())& jTetie!d.*etTet(r*."et$trin"())& jTetie!d.*etTet(r*."et$trin"())& jTetie!dC.*etTet(r*."et$trin"(C))& jTetie!d17.*etTet(r*."et$trin"(17))&
catc(Eception e) { $y*tem.out.print!n(e)&
private void jButton@ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your and!in" code ere# try { r*.previou*()& if(r*.i*Beforeir*t()) { 2OptionPane.*owe**a"eDia!o"(nu!!% 2OptionPane.*owe**a"eDia! o"(nu!!% ,End of Data,)& r*.fir*t()& return& jTetie!d1.*etTet(r*."et$trin"(1))& jTetie!d6.*etTet(r*."et$trin"(6))& jTetie!d9.*etTet(r*."et$trin"(9))& jTetie!d;.*etTet(r*."et$trin"(;))& jTetie!d@.*etTet(r*."et$trin"(@))& jTetie!d.*etTet(r*."et$trin"())& jTetie!d.*etTet(r*."et$trin"())& jTetie!d.*etTet(r*."et$trin"())& jTetie!dC.*etTet(r*."et$trin"(C))& jTetie!d17.*etTet(r*."et$trin"(17))& catc(Eception e) { $y*tem.out.print!n(e)&
private void jButtonActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your and!in" code ere# try { r*.!a*t()&
jTetie!d1.*etTet(r*."et$trin"(1))& jTetie!d6.*etTet(r*."et$trin"(6))& jTetie!d9.*etTet(r*."et$trin"(9))& jTetie!d;.*etTet(r*."et$trin"(;))& jTetie!d@.*etTet(r*."et$trin"(@))& jTetie!d.*etTet(r*."et$trin"())& jTetie!d.*etTet(r*."et$trin"())& jTetie!d.*etTet(r*."et$trin"())& jTetie!dC.*etTet(r*."et$trin"(C))& jTetie!d17.*etTet(r*."et$trin"(17))& catc(Eception e) { $y*tem.out.print!n(e)&
private void jButtonActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your and!in" code ere# jTetie!d1.*etTet(,,)& jTetie!d6.*etTet(,,)& jTetie!d9.*etTet(,,)& jTetie!d;.*etTet(,,)& jTetie!d@.*etTet(,,)& jTetie!d.*etTet(,,)& jTetie!d.*etTet(,,)& jTetie!d.*etTet(,,)& jTetie!dC.*etTet(,,)& jTetie!d17.*etTet(,,)&
jButton.*etEna0!ed(true)& jButtonC.*etEna0!ed(true)&
jButton1.*etEna0!ed(fa!*e)& jButton6.*etEna0!ed(fa!*e)& jButton9.*etEna0!ed(fa!*e)& jButton;.*etEna0!ed(fa!*e)& jButton@.*etEna0!ed(fa!*e)& jButton.*etEna0!ed(fa!*e)& jButton.*etEna0!ed(fa!*e)& jButton17.*etEna0!ed(fa!*e)& jButton11.*etEna0!ed(fa!*e)&
private void jButtonActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your and!in" code ere# try { *tmt'con.create$tatement()& $trin" +& +',in*ert into t:tadvance va!ue* (, F jTetie!d1."etTe jTetie!d1."etTet()F,%,F t()F,%,F jTetie!d6."etTe jTetie!d6."etTet() t() F,%G,FjTetie!d9."etTe F,%G,FjTetie!d9."etTet()F,G%G,F t()F,G%G,F jTetie!d;."etTe jTetie!d;."etTet()F,G%G,F t()F,G%G,F jTetie!d@."etTe jTetie!d@."etTet() t() F,G%G,FjTetie!d."etTe F,G%G,FjTetie!d."etTet()F,G%G,F t()F,G%G,F jTetie!d."etTe jTetie!d."etTet()F,G%,F t()F,G%,F jTetie!d."etTe jTetie!d."etTet()F,%,F t()F,%,F jTe jTetie!dC."etT tie!dC."etTe et()F,%,F t()F,%,F jTe jTetie!d17. tie!d17."etT "etTe et()F,),& //*tmt.eecute4pdate(,in*ert //*tmt.eecute4pdat e(,in*ert into *tudet va!ue*(6%GjatinG%G1CCH17H17G),)& va!ue*(6%GjatinG %G1CCH17H17G),)& $y*tem.out.print!n(+)& *tmt.eecute4pdate(+)& r*'*tmt.eecute>uery(,*e!ect r*'*tmt.eecute>ue ry(,*e!ect < from t:tadvance,)& r*.!a*t()&
jTetie!d1.*etTet(r*."et$trin"(1))& jTetie!d6.*etTet(r*."et$trin"(6))& jTetie!d9.*etTet(r*."et$trin"(9))& jTetie!d;.*etTet(r*."et$trin"(;))& jTetie!d@.*etTet(r*."et$trin"(@))& jTetie!d.*etTet(r*."et$trin"())& jTetie!d.*etTet(r*."et$trin"())& jTetie!d.*etTet(r*."et$trin"())& jTetie!dC.*etTet(r*."et$trin"(C))& jTetie!d17.*etTet(r*."et$trin"(17))&
jButton.*etEna0 jButton.*etEna0!ed(fa!*e !ed(fa!*e)& )& jButtonC.*etEna0!ed(fa!*e)&
jButton1.*etEna0!ed(true)& jButton6.*etEna0!ed(true)& jButton9.*etEna0!ed(true)& jButton;.*etEna0!ed(true)& jButton@.*etEna0!ed(true)& jButton.*etEna0!ed(true)& jButton.*etEna0!ed(true)& jButton17.*etEna0!ed(true)& jButton11.*etEna0!ed(true)& catc(Eception e) { $y*tem.out.print!n(e)&
private void jButtonCActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your and!in" code ere#
jButton.*etEna0!ed(fa!*e)& jButtonC.*etEna0!ed(fa!*e)&
jButton1.*etEna0!ed(true)& jButton6.*etEna0!ed(true)& jButton9.*etEna0!ed(true)& jButton;.*etEna0!ed(true)& jButton@.*etEna0!ed(true)& jButton.*etEna0!ed(true)& jButton.*etEna0!ed(true)& jButton17.*etEna0!ed(true)& jButton11.*etEna0!ed(true)&
try { jTetie!d1.*etTet(r*."et$trin"(1))& jTetie!d6.*etTet(r*."et$trin"(6))& jTetie!d9.*etTet(r*."et$trin"(9))& jTetie!d;.*etTet(r*."et$trin"(;))& jTetie!d@.*etTet(r*."et$trin"(@))& jTetie!d.*etTet(r*."et$trin"())& jTetie!d.*etTet(r*."et$trin"())&
catc(Eception e) { $y*tem.out.print!n(e)&
private void jButton17ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your and!in" code ere# try { $trin" de!& de!'(,de!ete from t:tadvance were T:tno',FjTetie!d1."etTe T:tno',FjTetie!d1."etTet())& t())& //*tmt.eecute4pdate(,de!ete //*tmt.eecute4pdat e(,de!ete from *tudet were rno'6,)& *tmt.eecute4pdate(de!)& r*'*tmt.eecute>uery(,*e!ect r*'*tmt.eecute>ue ry(,*e!ect < from t:tadvance,)& r*.fir*t()& jTetie!d1.*etTet(r*."et$trin"(1))& jTetie!d6.*etTet(r*."et$trin"(6))& jTetie!d9.*etTet(r*."et$trin"(9))& jTetie!d;.*etTet(r*."et$trin"(;))& jTetie!d@.*etTet(r*."et$trin"(@))& jTetie!d.*etTet(r*."et$trin"())& jTetie!d.*etTet(r*."et$trin"())& jTetie!d.*etTet(r*."et$trin"())& jTetie!dC.*etTet(r*."et$trin"(C))& jTetie!d17.*etTet(r*."et$trin"(17))&
catc(Eception e) { $y*tem.out.print!n(e)&
private void jButton11ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your and!in" code ere# try { *tmt'con.create$tatement()& $trin" +& // int% varcar(67)% int% int% int)& +',update t:tadvance *et tno ',F jTetie!d6."etTe jTetie!d6."etTet()F,%Tname'G t()F,%Tname'G,F ,F jTe jTetie!d9."etT tie!d9."etTe et()F,G% t()F,G% 2date'G,FjT 2date'G,FjTe etie!d;."etT tie!d;."etTe et()F,G% t()F,G% from*tation'G,FjTe from*tation'G,F jTetie!d@."etTe tie!d@."etTet()F,G% t()F,G% de*tination'G,FjT de*tination'G,Fj Tetie!d."etTet()F,G% etie!d."etTet()F,G% addre**'G,FjTetie!d."etTe addre**'G,FjTetie!d."etTet()F,G% t()F,G% 5oOfPer*on*'G,FjTetie!d."etT 5oOfPer*on*'G,FjTetie!d."etTet()F,G% et()F,G% AmtRperT:t',FjT AmtRperT:t',FjTe etie!dC."etT tie!dC."etTe et()F,% t()F,% tota!Amt',FjT tota!Amt',FjTe etie!d17."etT tie!d17."etTe et()F, t()F, were were T:tno',FjTetie!d1."etTet()& //$y*tem.out.print!n(+)& *tmt.eecute4pdate(+)& r*'*tmt.eecute>uery(,*e!ect r*'*tmt.eecute>ue ry(,*e!ect < from t:tadvance,)& r*.!a*t()& catc(Eception e) { $y*tem.out.print!n(e)& private void formIindowActivated(java.awt.event.IindowEvent evt) { // TODO add your and!in" code ere# /<< < Jparam ar"* te command !ine ar"ument* pu0!ic *tatic void main($trin" ar"*KL) { java.awt.Event>ueue.invo:eater(new java.awt.Event>ueue.invo:ea ter(new =unna0!e() { pu0!ic void run() { new T:tAdvance().*eti*i0!e(true)& )&