JBuilder - Capturar un dato de un jtext y pasarlo de una primera venta a a una tercera

 
Vista:
sin imagen de perfil
Val: 2
Ha mantenido su posición en JBuilder (en relación al último mes)
Gráfica de JBuilder

Capturar un dato de un jtext y pasarlo de una primera venta a a una tercera

Publicado por mgiuel (2 intervenciones) el 24/06/2019 02:28:30
HOLA CHICOS...BUSCO AYUDA....ESTOY HACIENDO UN PROGRAMA DE REGISTRO E HOTEL....EL PROBLEMA ES QUE QUIERO CREAR UN JFRAME DONDE IMPRIMA TODOS LOS DATOS DE LAS VENTANAS ANTERIORES.....MI PROBLEMA ES QUE SI TENGO UNA PRIMERA VENTANA DONDE GUARDO NOMBRES APELLIDOS ETC; Y TIENE UN BOTO DE SIGUIENTE DONDE REALIZO LA SELECCIÓN DE PISO Y HABITACION....DESEO QUE AL DARLE CONFIRMAR EN LA SEGUNDA VENTANA ME DEJE IMPRIMIR LOS DATOS DE LA PRIMA Y SEGUNDA VENTANA PERO NOSE COMO REALIZARLO

MI CODIGO ES ESTE ALMENOS PODER REALIZARLO CON EL PRIMER PSIO


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
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
package hotel;
 
 
import java.awt.Image;
import static java.awt.SystemColor.text;
import java.util.Date;
 
import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JOptionPane;
 
 
 
public class Interfaz_Ingreso extends javax.swing.JFrame {
 
public String nombre;
    public Interfaz_Ingreso() {
        initComponents();
    ImageIcon imagen1 = new ImageIcon("Lobby.jpg");
    Icon fondo1 = new ImageIcon(imagen1.getImage().getScaledInstance(lbl.getWidth(), lbl.getHeight(), Image.SCALE_DEFAULT));
    lbl.setIcon(fondo1);
    this.repaint();
 
    }
 
 
 
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">
    private void initComponents() {
 
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        fecha_e = new com.toedter.calendar.JDateChooser();
        jDateChooser3 = new com.toedter.calendar.JDateChooser();
        Nombre = new javax.swing.JTextField();
        Apellidos = new javax.swing.JTextField();
        Celular = new javax.swing.JTextField();
        Cedula = new javax.swing.JTextField();
        cancel = new javax.swing.JButton();
        jLabel8 = new javax.swing.JLabel();
        pisos = new javax.swing.JComboBox<>();
        lbl = new javax.swing.JLabel();
        Confirmar_datos = new javax.swing.JButton();
        jLabel7 = new javax.swing.JLabel();
 
        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
 
        jLabel1.setFont(new java.awt.Font("Arial Black", 0, 12)); // NOI18N
        jLabel1.setForeground(new java.awt.Color(255, 255, 255));
        jLabel1.setText("Seleccione el dia de entrada:");
 
        jLabel2.setFont(new java.awt.Font("Arial Black", 0, 12)); // NOI18N
        jLabel2.setForeground(new java.awt.Color(255, 255, 255));
        jLabel2.setText("Seleccione el dia de salida:");
 
        jLabel3.setBackground(new java.awt.Color(0, 0, 0));
        jLabel3.setFont(new java.awt.Font("Arial", 1, 14)); // NOI18N
        jLabel3.setForeground(new java.awt.Color(255, 255, 255));
        jLabel3.setText("Nombre:");
 
        jLabel4.setBackground(new java.awt.Color(0, 0, 0));
        jLabel4.setFont(new java.awt.Font("Arial", 1, 14)); // NOI18N
        jLabel4.setForeground(new java.awt.Color(255, 255, 255));
        jLabel4.setText("Apellidos");
 
        jLabel5.setBackground(new java.awt.Color(0, 0, 0));
        jLabel5.setFont(new java.awt.Font("Arial", 1, 14)); // NOI18N
        jLabel5.setForeground(new java.awt.Color(255, 255, 255));
        jLabel5.setText("Celular:");
 
        jLabel6.setFont(new java.awt.Font("Arial", 1, 14)); // NOI18N
        jLabel6.setForeground(new java.awt.Color(255, 255, 255));
        jLabel6.setText("Documento  C.C:");
 
        Nombre.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                NombreActionPerformed(evt);
            }
        });
 
        Apellidos.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                ApellidosActionPerformed(evt);
            }
        });
 
        Celular.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                CelularActionPerformed(evt);
            }
        });
 
        Cedula.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                CedulaMouseClicked(evt);
            }
        });
 
        cancel.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        cancel.setText("Cancelar");
        cancel.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                cancelMouseClicked(evt);
            }
        });
        cancel.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cancelActionPerformed(evt);
            }
        });
 
        jLabel8.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
        jLabel8.setForeground(new java.awt.Color(255, 255, 255));
        jLabel8.setText("Seleccione el piso en el cual quiere reservar su habitacion: ");
 
        pisos.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "", "Piso 1", "Piso 2", "Piso 3" }));
        pisos.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                pisosActionPerformed(evt);
            }
        });
 
        Confirmar_datos.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        Confirmar_datos.setText("Confirmar");
        Confirmar_datos.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                Confirmar_datosMouseClicked(evt);
            }
        });
        Confirmar_datos.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                Confirmar_datosActionPerformed(evt);
            }
        });
 
        jLabel7.setFont(new java.awt.Font("Arial", 1, 18)); // NOI18N
        jLabel7.setForeground(new java.awt.Color(255, 255, 255));
        jLabel7.setText("  PANEL DE INGRESO DE DATOS Y RESERVACION");
 
        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(460, 460, 460)
                .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 210, javax.swing.GroupLayout.PREFERRED_SIZE))
            .addGroup(layout.createSequentialGroup()
                .addGap(670, 670, 670)
                .addComponent(jDateChooser3, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE))
            .addGroup(layout.createSequentialGroup()
                .addGap(180, 180, 180)
                .addComponent(Cedula, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE))
            .addGroup(layout.createSequentialGroup()
                .addGap(670, 670, 670)
                .addComponent(fecha_e, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE))
            .addGroup(layout.createSequentialGroup()
                .addGap(40, 40, 40)
                .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE))
            .addGroup(layout.createSequentialGroup()
                .addGap(40, 40, 40)
                .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE))
            .addGroup(layout.createSequentialGroup()
                .addGap(180, 180, 180)
                .addComponent(Apellidos, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE))
            .addGroup(layout.createSequentialGroup()
                .addGap(40, 40, 40)
                .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE))
            .addGroup(layout.createSequentialGroup()
                .addGap(180, 180, 180)
                .addComponent(Nombre, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE))
            .addGroup(layout.createSequentialGroup()
                .addGap(560, 560, 560)
                .addComponent(Confirmar_datos))
            .addGroup(layout.createSequentialGroup()
                .addGap(40, 40, 40)
                .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE))
            .addGroup(layout.createSequentialGroup()
                .addGap(40, 40, 40)
                .addComponent(jLabel8))
            .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 460, javax.swing.GroupLayout.PREFERRED_SIZE)
            .addGroup(layout.createSequentialGroup()
                .addGap(660, 660, 660)
                .addComponent(cancel, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE))
            .addGroup(layout.createSequentialGroup()
                .addGap(460, 460, 460)
                .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE))
            .addGroup(layout.createSequentialGroup()
                .addGap(430, 430, 430)
                .addComponent(pisos, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE))
            .addGroup(layout.createSequentialGroup()
                .addGap(180, 180, 180)
                .addComponent(Celular, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))
            .addComponent(lbl, javax.swing.GroupLayout.PREFERRED_SIZE, 820, javax.swing.GroupLayout.PREFERRED_SIZE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(50, 50, 50)
                .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(70, 70, 70)
                .addComponent(jDateChooser3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
            .addGroup(layout.createSequentialGroup()
                .addGap(200, 200, 200)
                .addComponent(Cedula, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
            .addGroup(layout.createSequentialGroup()
                .addGap(60, 60, 60)
                .addComponent(fecha_e, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
            .addGroup(layout.createSequentialGroup()
                .addGap(200, 200, 200)
                .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))
            .addGroup(layout.createSequentialGroup()
                .addGap(170, 170, 170)
                .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))
            .addGroup(layout.createSequentialGroup()
                .addGap(140, 140, 140)
                .addComponent(Apellidos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
            .addGroup(layout.createSequentialGroup()
                .addGap(140, 140, 140)
                .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))
            .addGroup(layout.createSequentialGroup()
                .addGap(110, 110, 110)
                .addComponent(Nombre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
            .addGroup(layout.createSequentialGroup()
                .addGap(400, 400, 400)
                .addComponent(Confirmar_datos, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))
            .addGroup(layout.createSequentialGroup()
                .addGap(110, 110, 110)
                .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))
            .addGroup(layout.createSequentialGroup()
                .addGap(270, 270, 270)
                .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))
            .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE)
            .addGroup(layout.createSequentialGroup()
                .addGap(400, 400, 400)
                .addComponent(cancel, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))
            .addGroup(layout.createSequentialGroup()
                .addGap(150, 150, 150)
                .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE))
            .addGroup(layout.createSequentialGroup()
                .addGap(270, 270, 270)
                .addComponent(pisos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
            .addGroup(layout.createSequentialGroup()
                .addGap(170, 170, 170)
                .addComponent(Celular, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
            .addComponent(lbl, javax.swing.GroupLayout.PREFERRED_SIZE, 450, javax.swing.GroupLayout.PREFERRED_SIZE)
        );
 
        pack();
    }// </editor-fold>
 
    private void ApellidosActionPerformed(java.awt.event.ActionEvent evt) {
        // TODO add your handling code here:
    }
 
    private void CelularActionPerformed(java.awt.event.ActionEvent evt) {
        // TODO add your handling code here:
    }
 
    private void cancelActionPerformed(java.awt.event.ActionEvent evt) {
Hotel_La_Playa login = new Hotel_La_Playa ();
login.setLocationRelativeTo(null);
        login.setTitle("HOTEL  LA PLAYA");
           login.setVisible(true);
           dispose();
    }
 
    private void cancelMouseClicked(java.awt.event.MouseEvent evt) {
        // TODO add your handling code here:
    }
 
    private void CedulaMouseClicked(java.awt.event.MouseEvent evt) {
        // TODO add your handling code here:
    }
 
    private void pisosActionPerformed(java.awt.event.ActionEvent evt) {
 
 
    }
 
    private void Confirmar_datosMouseClicked(java.awt.event.MouseEvent evt) {
       String nombre = Nombre.getText();
 if(!Nombre.getText().isEmpty()&&Apellidos.getText().isEmpty()&&Celular.getText().isEmpty()&&Cedula.getText().isEmpty()&&fecha_e.getDate()==null&&jDateChooser3.getDate()==null){
           JOptionPane.showMessageDialog(null, "     LO SIENTO, NO SE HAN INGRESADO TODOS LOS DATOS REQUERIDOS \n"
                   + "  POR FAVOR INGRESE TODOS LOS DATOS REQUERIDOS PARA CONTINUAR");
       }
if(!Nombre.getText().isEmpty()&&!Apellidos.getText().isEmpty()&&Celular.getText().isEmpty()&&Cedula.getText().isEmpty()&&fecha_e.getDate()==null&&jDateChooser3.getDate()==null){
           JOptionPane.showMessageDialog(null, "     LO SIENTO, NO SE HAN INGRESADO TODOS LOS DATOS REQUERIDOS \n"
                   + "  POR FAVOR INGRESE TODOS LOS DATOS REQUERIDOS PARA CONTINUAR");
       }
if(Nombre.getText().isEmpty()&&Apellidos.getText().isEmpty()&&!Celular.getText().isEmpty()&&Cedula.getText().isEmpty()&&fecha_e.getDate()==null&&jDateChooser3.getDate()==null){
           JOptionPane.showMessageDialog(null, "     LO SIENTO, NO SE HAN INGRESADO TODOS LOS DATOS REQUERIDOS \n"
                   + "  POR FAVOR INGRESE TODOS LOS DATOS REQUERIDOS PARA CONTINUAR");
       }
if(Nombre.getText().isEmpty()&&Apellidos.getText().isEmpty()&&Celular.getText().isEmpty()&&!Cedula.getText().isEmpty()&&fecha_e.getDate()==null&&jDateChooser3.getDate()==null){
           JOptionPane.showMessageDialog(null, "     LO SIENTO, NO SE HAN INGRESADO TODOS LOS DATOS REQUERIDOS \n"
                   + "  POR FAVOR INGRESE TODOS LOS DATOS REQUERIDOS PARA CONTINUAR");
       }
if(Nombre.getText().isEmpty()&&Apellidos.getText().isEmpty()&&Celular.getText().isEmpty()&&Cedula.getText().isEmpty()&&fecha_e.getDate()!=null&&jDateChooser3.getDate()==null){
           JOptionPane.showMessageDialog(null, "     LO SIENTO, NO SE HAN INGRESADO TODOS LOS DATOS REQUERIDOS \n"
                   + "  POR FAVOR INGRESE TODOS LOS DATOS REQUERIDOS PARA CONTINUAR");
       }
if(Nombre.getText().isEmpty()&&Apellidos.getText().isEmpty()&&Celular.getText().isEmpty()&&Cedula.getText().isEmpty()&&fecha_e.getDate()==null&&jDateChooser3.getDate()!=null){
           JOptionPane.showMessageDialog(null, "     LO SIENTO, NO SE HAN INGRESADO TODOS LOS DATOS REQUERIDOS \n"
                   + "  POR FAVOR INGRESE TODOS LOS DATOS REQUERIDOS PARA CONTINUAR");
       }
 
if(Nombre.getText().isEmpty()&&!Apellidos.getText().isEmpty()&&!Celular.getText().isEmpty()&&!Cedula.getText().isEmpty()&&fecha_e.getDate()!=null&&jDateChooser3.getDate()!=null){
           JOptionPane.showMessageDialog(null, "     LO SIENTO, NO SE HAN INGRESADO TODOS LOS DATOS REQUERIDOS \n"
                   + "  POR FAVOR INGRESE TODOS LOS DATOS REQUERIDOS PARA CONTINUAR");
       }
if(!Nombre.getText().isEmpty()&&Apellidos.getText().isEmpty()&&!Celular.getText().isEmpty()&&!Cedula.getText().isEmpty()&&fecha_e.getDate()!=null&&jDateChooser3.getDate()!=null){
           JOptionPane.showMessageDialog(null, "     LO SIENTO, NO SE HAN INGRESADO TODOS LOS DATOS REQUERIDOS \n"
                   + "  POR FAVOR INGRESE TODOS LOS DATOS REQUERIDOS PARA CONTINUAR");
       }
if(!Nombre.getText().isEmpty()&&!Apellidos.getText().isEmpty()&&Celular.getText().isEmpty()&&!Cedula.getText().isEmpty()&&fecha_e.getDate()!=null&&jDateChooser3.getDate()!=null){
           JOptionPane.showMessageDialog(null, "     LO SIENTO, NO SE HAN INGRESADO TODOS LOS DATOS REQUERIDOS \n"
                   + "  POR FAVOR INGRESE TODOS LOS DATOS REQUERIDOS PARA CONTINUAR");
       }
if(!Nombre.getText().isEmpty()&&!Apellidos.getText().isEmpty()&&!Celular.getText().isEmpty()&&Cedula.getText().isEmpty()&&fecha_e.getDate()!=null&&jDateChooser3.getDate()!=null){
           JOptionPane.showMessageDialog(null, "     LO SIENTO, NO SE HAN INGRESADO TODOS LOS DATOS REQUERIDOS \n"
                   + "  POR FAVOR INGRESE TODOS LOS DATOS REQUERIDOS PARA CONTINUAR");
       }
if(!Nombre.getText().isEmpty()&&!Apellidos.getText().isEmpty()&&!Celular.getText().isEmpty()&&!Cedula.getText().isEmpty()&&fecha_e.getDate()==null&&jDateChooser3.getDate()!=null){
           JOptionPane.showMessageDialog(null, "     LO SIENTO, NO SE HAN INGRESADO TODOS LOS DATOS REQUERIDOS \n"
                   + "  POR FAVOR INGRESE TODOS LOS DATOS REQUERIDOS PARA CONTINUAR");
       }
if(!Nombre.getText().isEmpty()&&!Apellidos.getText().isEmpty()&&!Celular.getText().isEmpty()&&!Cedula.getText().isEmpty()&&fecha_e.getDate()!=null&&jDateChooser3.getDate()==null){
           JOptionPane.showMessageDialog(null, "     LO SIENTO, NO SE HAN INGRESADO TODOS LOS DATOS REQUERIDOS \n"
                   + "  POR FAVOR INGRESE TODOS LOS DATOS REQUERIDOS PARA CONTINUAR");
       }if(!Nombre.getText().isEmpty()&&!Apellidos.getText().isEmpty()&&!Celular.getText().isEmpty()&&!Cedula.getText().isEmpty()&&fecha_e.getDate()==null&&jDateChooser3.getDate()==null){
           JOptionPane.showMessageDialog(null, "     LO SIENTO, NO SE HAN INGRESADO TODOS LOS DATOS REQUERIDOS \n"
                   + "  POR FAVOR INGRESE TODOS LOS DATOS REQUERIDOS PARA CONTINUAR");
       }
           if(!Nombre.getText().isEmpty()&&!Apellidos.getText().isEmpty()&&!Celular.getText().isEmpty()&&Cedula.getText().isEmpty()&&fecha_e.getDate()==null&&jDateChooser3.getDate()==null){
           JOptionPane.showMessageDialog(null, "     LO SIENTO, NO SE HAN INGRESADO TODOS LOS DATOS REQUERIDOS \n"
                   + "  POR FAVOR INGRESE TODOS LOS DATOS REQUERIDOS PARA CONTINUAR");
       }
 
             if(Nombre.getText().isEmpty()&&Apellidos.getText().isEmpty()&&Celular.getText().isEmpty()&&Cedula.getText().isEmpty()&&fecha_e.getDate()==null&&jDateChooser3.getDate()==null){
           JOptionPane.showMessageDialog(null, "                           NO SE HA INGRESSADO NINGUN DATO \n"
                   + "  POR FAVOR INGRESE LOS DATOS REQUERIDOS PARA CONTINUAR");
       }
 
if(!Nombre.getText().isEmpty()&&!Apellidos.getText().isEmpty()&&!Celular.getText().isEmpty()&&!Cedula.getText().isEmpty()&&fecha_e.getDate()!=null&&jDateChooser3.getDate()!=null){
                  String piso=null;
       piso=pisos.getSelectedItem().toString();
 
       if(pisos.getSelectedIndex()==0){
           JOptionPane.showMessageDialog(null, "NO SE HA SELECCIONADO EL PISO EN EL QUE QUIERE RESERVAR SU HABITACION \n"
                   + "      POR FAVOR SELECCIONE UNA DE LAS OPCIONES PARA CONTINUAR");
       }
       if(piso.equals("Piso 1")){
          Piso piso1 = new Piso ();
piso1.setLocationRelativeTo(null);
        piso1.setTitle("HOTEL  LA PLAYA");
           piso1.setVisible(true);
           dispose();
       }
              piso=pisos.getSelectedItem().toString();
 
       if(piso.equals("Piso 2")){
                 Piso_2 piso2 = new Piso_2 ();
piso2.setLocationRelativeTo(null);
        piso2.setTitle("HOTEL  LA PLAYA");
           piso2.setVisible(true);
           dispose();
       }
              piso=pisos.getSelectedItem().toString();
 
       if(piso.equals("Piso 3")){
                 piso_3 piso3 = new piso_3 ();
piso3.setLocationRelativeTo(null);
        piso3.setTitle("HOTEL  LA PLAYA");
           piso3.setVisible(true);
           dispose();
       }
       }
    }
 
    private void Confirmar_datosActionPerformed(java.awt.event.ActionEvent evt) {
        // TODO add your handling code here:
    }
 
    private void NombreActionPerformed(java.awt.event.ActionEvent evt) {
 
    }
 
    /**
     * @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(Interfaz_Ingreso.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(Interfaz_Ingreso.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(Interfaz_Ingreso.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(Interfaz_Ingreso.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>
        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new Interfaz_Ingreso().setVisible(true);
            }
        });
    }
 
    // Variables declaration - do not modify
    public javax.swing.JTextField Apellidos;
    public javax.swing.JTextField Cedula;
    public javax.swing.JTextField Celular;
    private javax.swing.JButton Confirmar_datos;
    public javax.swing.JTextField Nombre;
    private javax.swing.JButton cancel;
    private com.toedter.calendar.JDateChooser fecha_e;
    private com.toedter.calendar.JDateChooser jDateChooser3;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel lbl;
    private javax.swing.JComboBox<String> pisos;
    // End of variables declaration
}
 
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 
package hotel;
 
import static hotel.Panel_Datos_Finales.Tnombre;
import java.awt.Image;
import static java.awt.image.ImageObserver.HEIGHT;
import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JOptionPane;
 
/**
 *
 * @author Usuario
 */
public class Piso extends javax.swing.JFrame {
String nombre;
Interfaz_Ingreso a= new Interfaz_Ingreso();
Panel_Datos_Finales b = new Panel_Datos_Finales();
    public Piso() {
 
        initComponents();
       ImageIcon imagen1 = new ImageIcon("Pasillos1.jpg");
    Icon fondo1 = new ImageIcon(imagen1.getImage().getScaledInstance(lbl.getWidth(), lbl.getHeight(), Image.SCALE_DEFAULT));
    lbl.setIcon(fondo1);
    this.repaint();
    }
 
 
 
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">
    private void initComponents() {
 
        Hab_11 = new javax.swing.JComboBox<>();
        Camas_11 = new javax.swing.JComboBox<>();
        Nombre_1 = new javax.swing.JLabel();
        Habitaciones_1 = new javax.swing.JLabel();
        CAMAS_1 = new javax.swing.JLabel();
        CONFIRMACION_1 = new javax.swing.JButton();
        CANCELACION_1 = new javax.swing.JButton();
        RETROCESO_1 = new javax.swing.JButton();
        lbl = new javax.swing.JLabel();
 
        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
 
        Hab_11.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "", "Hab---101", "Hab---102", "Hab---103", "Hab---104", "Hab---105" }));
        Hab_11.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                Hab_11ActionPerformed(evt);
            }
        });
 
        Camas_11.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "", "1", "2" }));
 
        Nombre_1.setFont(new java.awt.Font("Arial Black", 1, 18)); // NOI18N
        Nombre_1.setForeground(new java.awt.Color(255, 255, 255));
        Nombre_1.setText("PRIMER PISO ");
 
        Habitaciones_1.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        Habitaciones_1.setForeground(new java.awt.Color(255, 255, 255));
        Habitaciones_1.setText("HABITACIONES ");
 
        CAMAS_1.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        CAMAS_1.setForeground(new java.awt.Color(255, 255, 255));
        CAMAS_1.setText("CANTIDAD DE CAMAS ");
 
        CONFIRMACION_1.setText("Confirmar");
        CONFIRMACION_1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                CONFIRMACION_1ActionPerformed(evt);
            }
        });
 
        CANCELACION_1.setText("Salir");
        CANCELACION_1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                CANCELACION_1ActionPerformed(evt);
            }
        });
 
        RETROCESO_1.setText("Volver");
        RETROCESO_1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                RETROCESO_1ActionPerformed(evt);
            }
        });
 
        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(160, 160, 160)
                .addComponent(Habitaciones_1, javax.swing.GroupLayout.PREFERRED_SIZE, 230, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(10, 10, 10)
                .addComponent(Hab_11, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE))
            .addGroup(layout.createSequentialGroup()
                .addGap(410, 410, 410)
                .addComponent(RETROCESO_1, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(50, 50, 50)
                .addComponent(CANCELACION_1))
            .addGroup(layout.createSequentialGroup()
                .addGap(310, 310, 310)
                .addComponent(CONFIRMACION_1))
            .addGroup(layout.createSequentialGroup()
                .addGap(400, 400, 400)
                .addComponent(Camas_11, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE))
            .addGroup(layout.createSequentialGroup()
                .addGap(160, 160, 160)
                .addComponent(CAMAS_1, javax.swing.GroupLayout.PREFERRED_SIZE, 190, javax.swing.GroupLayout.PREFERRED_SIZE))
            .addGroup(layout.createSequentialGroup()
                .addGap(10, 10, 10)
                .addComponent(Nombre_1, javax.swing.GroupLayout.PREFERRED_SIZE, 220, javax.swing.GroupLayout.PREFERRED_SIZE))
            .addComponent(lbl, javax.swing.GroupLayout.PREFERRED_SIZE, 650, javax.swing.GroupLayout.PREFERRED_SIZE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(120, 120, 120)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(Habitaciones_1, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(Hab_11, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(240, 240, 240)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(RETROCESO_1)
                    .addComponent(CANCELACION_1)))
            .addGroup(layout.createSequentialGroup()
                .addGap(400, 400, 400)
                .addComponent(CONFIRMACION_1))
            .addGroup(layout.createSequentialGroup()
                .addGap(190, 190, 190)
                .addComponent(Camas_11, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE))
            .addGroup(layout.createSequentialGroup()
                .addGap(190, 190, 190)
                .addComponent(CAMAS_1, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE))
            .addGroup(layout.createSequentialGroup()
                .addGap(10, 10, 10)
                .addComponent(Nombre_1, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE))
            .addComponent(lbl, javax.swing.GroupLayout.PREFERRED_SIZE, 460, javax.swing.GroupLayout.PREFERRED_SIZE)
        );
 
        pack();
    }// </editor-fold>
 
    private void RETROCESO_1ActionPerformed(java.awt.event.ActionEvent evt) {
    Interfaz_Ingreso ingreso = new Interfaz_Ingreso ();
ingreso.setLocationRelativeTo(null);
        ingreso.setTitle("HOTEL  LA PLAYA");
           ingreso.setVisible(true);
           dispose();
 
    }
 
    private void CANCELACION_1ActionPerformed(java.awt.event.ActionEvent evt) {
        Hotel_La_Playa login = new Hotel_La_Playa ();
login.setLocationRelativeTo(null);
        login.setTitle("HOTEL  LA PLAYA");
           login.setVisible(true);
           dispose();
    }
 
    private void CONFIRMACION_1ActionPerformed(java.awt.event.ActionEvent evt) {
String camas=null;
      String habitaciones=null;
      habitaciones=Hab_11.getSelectedItem().toString();
      camas=Camas_11.getSelectedItem().toString();
            if(Hab_11.getSelectedIndex()==0&&Camas_11.getSelectedIndex()==0){
     JOptionPane.showMessageDialog(null, "LO SIENTO NOSE HA SELECCIONADO NINGUNA OPCION A REGISTRAR \n"
             + "POR FAVOR ELIJA UNA OPCION EN CADA APARTADO PARA CONTINUAR");
}
if(Hab_11.getSelectedIndex()!=0&&Camas_11.getSelectedIndex()==0||Hab_11.getSelectedIndex()==0&&Camas_11.getSelectedIndex()!=0){
         JOptionPane.showMessageDialog(null, "POR FAVOR ELIJA UNA OPCION VALIDA EN TODOS LOS APARTADOS");
}
 
        if (habitaciones.equals("Hab---101") && camas.equals("1")){
Panel_Datos_Finales a = new Panel_Datos_Finales();
a.setVisible(true);
        }if (habitaciones.equals("Hab---102") && camas.equals("1")){
            JOptionPane.showMessageDialog(null, "Su habitacion es:"+habitaciones + "\n con: "+camas+" camas");
        }if (habitaciones.equals("Hab---103") && camas.equals("1")){
            JOptionPane.showMessageDialog(null, "Su habitacion es:"+habitaciones + "\n con: "+camas+" camas");
        }if (habitaciones.equals("Hab---104") && camas.equals("1")){
            JOptionPane.showMessageDialog(null, "Su habitacion es:"+habitaciones + "\n con: "+camas+" camas");
        }if (habitaciones.equals("Hab---105") && camas.equals("1")){
            JOptionPane.showMessageDialog(null, "Su habitacion es:"+habitaciones + "\n con: "+camas+" camas");
        }if (habitaciones.equals("Hab---101") && camas.equals("2")){
            JOptionPane.showMessageDialog(null, "Su habitacion es:"+habitaciones + "\n con: "+camas+" camas");
        }if (habitaciones.equals("Hab---102") && camas.equals("2")){
            JOptionPane.showMessageDialog(null, "Su habitacion es:"+habitaciones + "\n con: "+camas+" camas");
        }if (habitaciones.equals("Hab---103") && camas.equals("2")){
            JOptionPane.showMessageDialog(null, "Su habitacion es:"+habitaciones + "\n con: "+camas+" camas");
        }if (habitaciones.equals("Hab---104") && camas.equals("2")){
            JOptionPane.showMessageDialog(null, "Su habitacion es:"+habitaciones + "\n con: "+camas+" camas");
        }if (habitaciones.equals("Hab---105") && camas.equals("2")){
            JOptionPane.showMessageDialog(null, "Su habitacion es:"+habitaciones +  "\n con: "+camas+" camas");
        }        // TODO add your handling code here:
    }
 
    private void Hab_11ActionPerformed(java.awt.event.ActionEvent evt) {
        // TODO add your handling code here:
    }
 
    /**
     * @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(Piso.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(Piso.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(Piso.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(Piso.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>
 
        /* Create and display the form */
        java.awt.EventQueue.invokeLater(() -> {
            new Piso().setVisible(true);
        });
    }
 
    // Variables declaration - do not modify
    private javax.swing.JLabel CAMAS_1;
    private javax.swing.JButton CANCELACION_1;
    private javax.swing.JButton CONFIRMACION_1;
    private javax.swing.JComboBox<String> Camas_11;
    private javax.swing.JComboBox<String> Hab_11;
    private javax.swing.JLabel Habitaciones_1;
    private javax.swing.JLabel Nombre_1;
    private javax.swing.JButton RETROCESO_1;
    private javax.swing.JLabel lbl;
    // End of variables declaration
}
 
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 
 
package hotel;
 
public class Panel_Datos_Finales extends javax.swing.JFrame {
 
    public Panel_Datos_Finales() {
        initComponents();
    }
 
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">
    private void initComponents() {
 
        lbl = new javax.swing.JLabel();
        Factura = new javax.swing.JLabel();
        jButton1 = new javax.swing.JButton();
        Tnombre = new javax.swing.JLabel();
 
        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
        getContentPane().add(lbl, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 462, 377));
 
        Factura.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        Factura.setText("Imprimir Factura");
        getContentPane().add(Factura, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 150, 160, 40));
 
        jButton1.setText("Aceptar");
        jButton1.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButton1MouseClicked(evt);
            }
        });
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });
        getContentPane().add(jButton1, new org.netbeans.lib.awtextra.AbsoluteConstraints(240, 150, 90, 40));
        getContentPane().add(Tnombre, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 30, 140, 40));
 
        pack();
    }// </editor-fold>
 
    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
Interfaz_Ingreso a =new Interfaz_Ingreso();
Tnombre.setText(a.nombre);
    }
 
    private void jButton1MouseClicked(java.awt.event.MouseEvent evt) {
        // TODO add your handling code here:
    }
 
    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(Panel_Datos_Finales.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(Panel_Datos_Finales.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(Panel_Datos_Finales.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(Panel_Datos_Finales.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>
 
        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new Panel_Datos_Finales().setVisible(true);
            }
        });
    }
 
    // Variables declaration - do not modify
    private javax.swing.JLabel Factura;
    public static javax.swing.JLabel Tnombre;
    private javax.swing.JButton jButton1;
    private javax.swing.JLabel lbl;
    // End of variables declaration
 
    void add(String text) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }
}
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder
Imágen de perfil de Cesar Jesus
Val: 2
Ha mantenido su posición en JBuilder (en relación al último mes)
Gráfica de JBuilder

Capturar un dato de un jtext y pasarlo de una primera venta a a una tercera

Publicado por Cesar Jesus (1 intervención) el 30/09/2019 05:45:13
Buen trabajo
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar