-
Notifications
You must be signed in to change notification settings - Fork 0
/
CustomerDetailsPage.java
618 lines (535 loc) · 26.9 KB
/
CustomerDetailsPage.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.bill.system;
import java.sql.DriverManager;
import java.sql.SQLException;
import javax.swing.JOptionPane;
import oracle.jdbc.OracleConnection;
import oracle.jdbc.OracleDriver;
import oracle.jdbc.OraclePreparedStatement;
import oracle.jdbc.OracleResultSet;
/**
*
* @author Tushar
*/
public class CustomerDetailsPage extends javax.swing.JFrame {
/**
* 90
* Creates new form CustomeDetailsPage
*/
String vid;
public CustomerDetailsPage() {
initComponents();
}
CustomerDetailsPage(String text) {
this();
vid=text;
try
{
// 1. REGISTRATION OF JAVA PROGRAM WITH ORACLE
DriverManager.registerDriver(new OracleDriver());
// 2. CREATION OF CONNECTION
OracleConnection oconn =(OracleConnection)DriverManager.getConnection
("jdbc:oracle:thin:@LAPTOP-DN033KO9:1521:orcl","MALVIKASINHA","malvi");
//3. CREATION OF THE SQL COMMAND
String sql = "select * from customers_detail where CONSUMER_ID=?";
//4. CREATION OF THE STATEMENT OBJECT
OraclePreparedStatement ostmt = (OraclePreparedStatement)oconn.prepareStatement(sql);
//5. FILLING THE BLANK PARAMETERS
ostmt.setString(1,vid);
//6. CREATION OF RESULTSET AND RETRIVING THE RESULT OF THE SQL COMMAND
OracleResultSet ors = (OracleResultSet)ostmt.executeQuery();
if(ors.next())
{
try{
uid.setText(ors.getString(1));
uname.setText(ors.getString(2));
uphone.setText(ors.getString(4));
ugender.setText(ors.getString(3));
uaddress.setText(ors.getString(5));
if((ors.getString(7).equals(""))){
units.setText("0");
urupee.setText("0");
}
else{
units.setText(ors.getString(7));
String w=ors.getString(7);
int amt=(Integer.parseInt(ors.getString(7)))*10;
String s=String.valueOf(amt);
urupee.setText(s);
//
}
}
catch(Exception ex){
JOptionPane.showMessageDialog(this,"You have not consumed any units.");
}
}
// 7. CLOSING THE OBJECTS
ors.close();
ostmt.close();
oconn.close();
}
catch(SQLException ex)
{
JOptionPane.showMessageDialog(this, ex.toString());
}
}
/**
* This method is called from within the constructor to initialize the form.
* WARNING: Do NOT modify this code. The content of this method is always
* regenerated by the Form Editor.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jMenuBar2 = new javax.swing.JMenuBar();
jMenu3 = new javax.swing.JMenu();
jMenu4 = new javax.swing.JMenu();
jMenuBar3 = new javax.swing.JMenuBar();
jMenu5 = new javax.swing.JMenu();
jMenu6 = new javax.swing.JMenu();
jMenuBar4 = new javax.swing.JMenuBar();
jMenu7 = new javax.swing.JMenu();
jMenu8 = new javax.swing.JMenu();
jMenuBar5 = new javax.swing.JMenuBar();
jMenu9 = new javax.swing.JMenu();
jMenu10 = new javax.swing.JMenu();
jMenuBar6 = new javax.swing.JMenuBar();
jMenu11 = new javax.swing.JMenu();
jMenu12 = new javax.swing.JMenu();
jMenuBar7 = new javax.swing.JMenuBar();
jMenu13 = new javax.swing.JMenu();
jMenu14 = new javax.swing.JMenu();
jMenuBar8 = new javax.swing.JMenuBar();
jMenu15 = new javax.swing.JMenu();
jMenu16 = new javax.swing.JMenu();
jMenuBar9 = new javax.swing.JMenuBar();
jMenu17 = new javax.swing.JMenu();
jMenu18 = new javax.swing.JMenu();
jMenuBar10 = new javax.swing.JMenuBar();
jMenu19 = new javax.swing.JMenu();
jMenu20 = new javax.swing.JMenu();
jMenuBar11 = new javax.swing.JMenuBar();
jMenu21 = new javax.swing.JMenu();
jMenu22 = new javax.swing.JMenu();
jMenuBar12 = new javax.swing.JMenuBar();
jMenu23 = new javax.swing.JMenu();
jMenu24 = new javax.swing.JMenu();
jMenuBar13 = new javax.swing.JMenuBar();
jMenu25 = new javax.swing.JMenu();
jMenu26 = new javax.swing.JMenu();
jMenu1 = new javax.swing.JMenu();
jMenuItem1 = new javax.swing.JMenuItem();
jPanel1 = new javax.swing.JPanel();
jLabel2 = new javax.swing.JLabel();
uname = new javax.swing.JLabel();
uid = new javax.swing.JLabel();
jLabel4 = new javax.swing.JLabel();
jLabel8 = new javax.swing.JLabel();
jLabel6 = new javax.swing.JLabel();
jLabel12 = new javax.swing.JLabel();
jLabel10 = new javax.swing.JLabel();
uaddress = new javax.swing.JLabel();
uphone = new javax.swing.JLabel();
ugender = new javax.swing.JLabel();
jLabel22 = new javax.swing.JLabel();
jLabel21 = new javax.swing.JLabel();
jButton1 = new javax.swing.JButton();
units = new javax.swing.JLabel();
jPanel2 = new javax.swing.JPanel();
jLabel1 = new javax.swing.JLabel();
button1 = new java.awt.Button();
jLabel3 = new javax.swing.JLabel();
urupee = new javax.swing.JLabel();
jMenuBar1 = new javax.swing.JMenuBar();
btn_home = new javax.swing.JMenu();
jMenuItem2 = new javax.swing.JMenuItem();
jMenuItem3 = new javax.swing.JMenuItem();
jMenu3.setText("File");
jMenuBar2.add(jMenu3);
jMenu4.setText("Edit");
jMenuBar2.add(jMenu4);
jMenu5.setText("File");
jMenuBar3.add(jMenu5);
jMenu6.setText("Edit");
jMenuBar3.add(jMenu6);
jMenu7.setText("File");
jMenuBar4.add(jMenu7);
jMenu8.setText("Edit");
jMenuBar4.add(jMenu8);
jMenu9.setText("File");
jMenuBar5.add(jMenu9);
jMenu10.setText("Edit");
jMenuBar5.add(jMenu10);
jMenu11.setText("File");
jMenuBar6.add(jMenu11);
jMenu12.setText("Edit");
jMenuBar6.add(jMenu12);
jMenu13.setText("File");
jMenuBar7.add(jMenu13);
jMenu14.setText("Edit");
jMenuBar7.add(jMenu14);
jMenu15.setText("File");
jMenuBar8.add(jMenu15);
jMenu16.setText("Edit");
jMenuBar8.add(jMenu16);
jMenu17.setText("File");
jMenuBar9.add(jMenu17);
jMenu18.setText("Edit");
jMenuBar9.add(jMenu18);
jMenu19.setText("File");
jMenuBar10.add(jMenu19);
jMenu20.setText("Edit");
jMenuBar10.add(jMenu20);
jMenu21.setText("File");
jMenuBar11.add(jMenu21);
jMenu22.setText("Edit");
jMenuBar11.add(jMenu22);
jMenu23.setText("File");
jMenuBar12.add(jMenu23);
jMenu24.setText("Edit");
jMenuBar12.add(jMenu24);
jMenu25.setText("File");
jMenuBar13.add(jMenu25);
jMenu26.setText("Edit");
jMenuBar13.add(jMenu26);
jMenu1.setText("jMenu1");
jMenuItem1.setText("jMenuItem1");
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setLocation(new java.awt.Point(300, 1));
setResizable(false);
jPanel1.setBackground(new java.awt.Color(51, 0, 51));
jLabel2.setFont(new java.awt.Font("Times New Roman", 1, 18)); // NOI18N
jLabel2.setForeground(new java.awt.Color(255, 255, 255));
jLabel2.setText("Consumer ID");
uname.setFont(new java.awt.Font("Times New Roman", 1, 18)); // NOI18N
uname.setForeground(new java.awt.Color(255, 255, 255));
uid.setFont(new java.awt.Font("Times New Roman", 1, 18)); // NOI18N
uid.setForeground(new java.awt.Color(255, 255, 255));
jLabel4.setFont(new java.awt.Font("Times New Roman", 1, 18)); // NOI18N
jLabel4.setForeground(new java.awt.Color(255, 255, 255));
jLabel4.setText("Name");
jLabel8.setFont(new java.awt.Font("Times New Roman", 1, 18)); // NOI18N
jLabel8.setForeground(new java.awt.Color(255, 255, 255));
jLabel8.setText("Mobile No");
jLabel6.setFont(new java.awt.Font("Times New Roman", 1, 18)); // NOI18N
jLabel6.setForeground(new java.awt.Color(255, 255, 255));
jLabel6.setText("Gender");
jLabel12.setFont(new java.awt.Font("Times New Roman", 1, 18)); // NOI18N
jLabel12.setForeground(new java.awt.Color(255, 255, 255));
jLabel12.setText("Units Consumed");
jLabel10.setFont(new java.awt.Font("Times New Roman", 1, 18)); // NOI18N
jLabel10.setForeground(new java.awt.Color(255, 255, 255));
jLabel10.setText("Address");
uaddress.setFont(new java.awt.Font("Times New Roman", 1, 18)); // NOI18N
uaddress.setForeground(new java.awt.Color(255, 255, 255));
uphone.setFont(new java.awt.Font("Times New Roman", 1, 18)); // NOI18N
uphone.setForeground(new java.awt.Color(255, 255, 255));
ugender.setFont(new java.awt.Font("Times New Roman", 1, 18)); // NOI18N
ugender.setForeground(new java.awt.Color(255, 255, 255));
jLabel22.setFont(new java.awt.Font("Tahoma", 2, 11)); // NOI18N
jLabel22.setForeground(new java.awt.Color(255, 255, 255));
jLabel22.setText(" Rs 10/unit");
jLabel21.setFont(new java.awt.Font("Times New Roman", 3, 18)); // NOI18N
jLabel21.setForeground(new java.awt.Color(255, 255, 255));
jLabel21.setText("Rates For Units");
jButton1.setBackground(new java.awt.Color(153, 153, 153));
jButton1.setFont(new java.awt.Font("Times New Roman", 1, 18)); // NOI18N
jButton1.setText("Pay Bill");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});
units.setFont(new java.awt.Font("Times New Roman", 1, 18)); // NOI18N
units.setForeground(new java.awt.Color(255, 255, 255));
units.setText("0");
jPanel2.setBackground(new java.awt.Color(102, 0, 51));
jLabel1.setBackground(new java.awt.Color(153, 0, 51));
jLabel1.setFont(new java.awt.Font("Times New Roman", 1, 18)); // NOI18N
jLabel1.setForeground(new java.awt.Color(255, 255, 255));
jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabel1.setText("CUSTOMERS DETAILS");
jLabel1.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED, java.awt.Color.darkGray, null, java.awt.Color.darkGray, java.awt.Color.black));
javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
jPanel2.setLayout(jPanel2Layout);
jPanel2Layout.setHorizontalGroup(
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 534, Short.MAX_VALUE)
);
jPanel2Layout.setVerticalGroup(
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 33, Short.MAX_VALUE)
);
button1.setBackground(new java.awt.Color(153, 0, 0));
button1.setFont(new java.awt.Font("Times New Roman", 1, 18)); // NOI18N
button1.setForeground(new java.awt.Color(255, 255, 255));
button1.setLabel("Log Out");
button1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
button1ActionPerformed(evt);
}
});
jLabel3.setFont(new java.awt.Font("Times New Roman", 1, 18)); // NOI18N
jLabel3.setForeground(new java.awt.Color(255, 255, 255));
jLabel3.setText("Rupees");
urupee.setFont(new java.awt.Font("Times New Roman", 1, 18)); // NOI18N
urupee.setForeground(new java.awt.Color(255, 255, 255));
urupee.setText("0.00");
javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
jPanel1.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(57, 57, 57)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel12)
.addComponent(jLabel3)))
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(48, 48, 48)
.addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 121, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGap(106, 106, 106)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(units, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(uaddress)
.addComponent(uphone, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(ugender, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(urupee))
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(uid, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(uname, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel21)
.addComponent(jLabel22))
.addGap(65, 65, 65))))
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(130, 130, 130)
.addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 180, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(60, 60, 60)
.addComponent(button1, javax.swing.GroupLayout.PREFERRED_SIZE, 184, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(232, Short.MAX_VALUE))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
.addGap(0, 0, Short.MAX_VALUE)
.addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(133, 133, 133))
);
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(32, 32, 32)
.addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(44, 44, 44)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(uid)
.addComponent(jLabel2))
.addGap(3, 3, 3)
.addComponent(jLabel21)
.addGap(18, 18, 18)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel4)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel22)
.addComponent(uname)))
.addGap(54, 54, 54)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel8)
.addComponent(uphone))
.addGap(46, 46, 46)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(ugender)
.addComponent(jLabel6))
.addGap(44, 44, 44)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel10)
.addComponent(uaddress))
.addGap(50, 50, 50)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(units)
.addComponent(jLabel12))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 47, Short.MAX_VALUE)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel3)
.addComponent(urupee))
.addGap(43, 43, 43)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(button1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(33, 33, 33))
);
btn_home.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED, java.awt.Color.darkGray, null, java.awt.Color.darkGray, java.awt.Color.black));
btn_home.setText("Menu");
btn_home.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
btn_home.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btn_homeActionPerformed(evt);
}
});
jMenuItem2.setText("Homepage");
jMenuItem2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem2ActionPerformed(evt);
}
});
btn_home.add(jMenuItem2);
jMenuItem3.setText("Close");
jMenuItem3.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem3ActionPerformed(evt);
}
});
btn_home.add(jMenuItem3);
jMenuBar1.add(btn_home);
setJMenuBar(jMenuBar1);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
);
pack();
}// </editor-fold>//GEN-END:initComponents
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
// TODO add your handling code here:
PaymentProcedure p=new PaymentProcedure();
p.setVisible(true);
dispose();
}//GEN-LAST:event_jButton1ActionPerformed
private void button1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_button1ActionPerformed
// TODO add your handling code here:
if(JOptionPane.showConfirmDialog(this,"Are yousure you want to logout ?")==JOptionPane.YES_OPTION){
homepage h=new homepage();
h.setVisible(true);
dispose();
}
}//GEN-LAST:event_button1ActionPerformed
private void btn_homeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn_homeActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_btn_homeActionPerformed
private void jMenuItem3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem3ActionPerformed
// TODO add your handling code here:
dispose();
}//GEN-LAST:event_jMenuItem3ActionPerformed
private void jMenuItem2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem2ActionPerformed
// TODO add your handling code here:
homepage h=new homepage();
h.setVisible(true);
dispose();
}//GEN-LAST:event_jMenuItem2ActionPerformed
/**
* @param args the command line arguments
*/
public static void main(String args[]) {
/* Set the Nimbus look and feel */
//<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
/* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
* For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
*/
try {
for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
if ("Nimbus".equals(info.getName())) {
javax.swing.UIManager.setLookAndFeel(info.getClassName());
break;
}
}
} catch (ClassNotFoundException ex) {
java.util.logging.Logger.getLogger(CustomerDetailsPage.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (InstantiationException ex) {
java.util.logging.Logger.getLogger(CustomerDetailsPage.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (IllegalAccessException ex) {
java.util.logging.Logger.getLogger(CustomerDetailsPage.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (javax.swing.UnsupportedLookAndFeelException ex) {
java.util.logging.Logger.getLogger(CustomerDetailsPage.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
}
//</editor-fold>
//</editor-fold>
/* Create and display the form */
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new CustomerDetailsPage().setVisible(true);
}
});
}
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JMenu btn_home;
private java.awt.Button button1;
private javax.swing.JButton jButton1;
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel10;
private javax.swing.JLabel jLabel12;
private javax.swing.JLabel jLabel2;
private javax.swing.JLabel jLabel21;
private javax.swing.JLabel jLabel22;
private javax.swing.JLabel jLabel3;
private javax.swing.JLabel jLabel4;
private javax.swing.JLabel jLabel6;
private javax.swing.JLabel jLabel8;
private javax.swing.JMenu jMenu1;
private javax.swing.JMenu jMenu10;
private javax.swing.JMenu jMenu11;
private javax.swing.JMenu jMenu12;
private javax.swing.JMenu jMenu13;
private javax.swing.JMenu jMenu14;
private javax.swing.JMenu jMenu15;
private javax.swing.JMenu jMenu16;
private javax.swing.JMenu jMenu17;
private javax.swing.JMenu jMenu18;
private javax.swing.JMenu jMenu19;
private javax.swing.JMenu jMenu20;
private javax.swing.JMenu jMenu21;
private javax.swing.JMenu jMenu22;
private javax.swing.JMenu jMenu23;
private javax.swing.JMenu jMenu24;
private javax.swing.JMenu jMenu25;
private javax.swing.JMenu jMenu26;
private javax.swing.JMenu jMenu3;
private javax.swing.JMenu jMenu4;
private javax.swing.JMenu jMenu5;
private javax.swing.JMenu jMenu6;
private javax.swing.JMenu jMenu7;
private javax.swing.JMenu jMenu8;
private javax.swing.JMenu jMenu9;
private javax.swing.JMenuBar jMenuBar1;
private javax.swing.JMenuBar jMenuBar10;
private javax.swing.JMenuBar jMenuBar11;
private javax.swing.JMenuBar jMenuBar12;
private javax.swing.JMenuBar jMenuBar13;
private javax.swing.JMenuBar jMenuBar2;
private javax.swing.JMenuBar jMenuBar3;
private javax.swing.JMenuBar jMenuBar4;
private javax.swing.JMenuBar jMenuBar5;
private javax.swing.JMenuBar jMenuBar6;
private javax.swing.JMenuBar jMenuBar7;
private javax.swing.JMenuBar jMenuBar8;
private javax.swing.JMenuBar jMenuBar9;
private javax.swing.JMenuItem jMenuItem1;
private javax.swing.JMenuItem jMenuItem2;
private javax.swing.JMenuItem jMenuItem3;
private javax.swing.JPanel jPanel1;
private javax.swing.JPanel jPanel2;
private javax.swing.JLabel uaddress;
private javax.swing.JLabel ugender;
private javax.swing.JLabel uid;
private javax.swing.JLabel uname;
private javax.swing.JLabel units;
private javax.swing.JLabel uphone;
private javax.swing.JLabel urupee;
// End of variables declaration//GEN-END:variables
}