content: /*
   * 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 havayolubilgisistemi;
  
  import java.net.URL;
  import javax.swing.ImageIcon;
  import javax.swing.JLabel;
  import javax.swing.UIManager;
  import javax.swing.UnsupportedLookAndFeelException;
  
  /**
   *
   * @author AsusTuf
   */
  public class Bilet extends javax.swing.JFrame {
  
      public Bilet(){initComponents();}
  
      public Bilet(Ucus ucus , Yolcu yol) {
          initComponents();
          try {
              UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
          } catch (UnsupportedLookAndFeelException | ClassNotFoundException | InstantiationException | IllegalAccessException e) {
              e.printStackTrace();
          }
          // Bilet Bilgileri Doldur 
          noLabel.setText(yol.Koltuk);
          yolcuadiLabel.setText(yol.getName());
          ucakadiLabel.setText(ucus.ucak.name);
          sirketLabel.setText(ucus.ucak.sirketadi);
          sirket1Label.setText(ucus.ucak.sirketadi);
          saatLabel.setText(ucus.saat.toString());
          nereyeLabel.setText(ucus.nereye);
          nereyeLabel2.setText(ucus.nereye);
          nerdenLabel.setText(ucus.nerden);
          tarihLabel.setText(ucus.formattedDate);
          KMLabel1.setText(Double.toString(ucus.KM));
          ImageIcon icon = createImageIcon("Qr.png");
          jLabel6 =new JLabel(icon);
          getContentPane().add(jLabel6);
          
      }
      private ImageIcon createImageIcon(String path) {
          URL imgUrl = getClass().getResource(path);
          if (imgUrl != null) {
              return new ImageIcon(imgUrl);
          } else {
              System.err.println("Could not find file: " + path);
              return null;
          }
      }
  
      /**
       * 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() {
  
          jPanel1 = new javax.swing.JPanel();
          sirketLabel = new javax.swing.JLabel();
          jLabel3 = new javax.swing.JLabel();
          jLabel4 = new javax.swing.JLabel();
          sirket1Label = new javax.swing.JLabel();
          jLabel16 = new javax.swing.JLabel();
          jLabel17 = new javax.swing.JLabel();
          jPanel2 = new javax.swing.JPanel();
          jLabel6 = new javax.swing.JLabel();
          jPanel3 = new javax.swing.JPanel();
          jLabel1 = new javax.swing.JLabel();
          jLabel9 = new javax.swing.JLabel();
          jPanel4 = new javax.swing.JPanel();
          jLabel7 = new javax.swing.JLabel();
          saatLabel = new javax.swing.JLabel();
          jPanel5 = new javax.swing.JPanel();
          jLabel8 = new javax.swing.JLabel();
          noLabel = new javax.swing.JLabel();
          jPanel6 = new javax.swing.JPanel();
          nerdenLabel = new javax.swing.JLabel();
          nereyeLabel = new javax.swing.JLabel();
          ucakadiLabel = new javax.swing.JLabel();
          yolcuadiLabel = new javax.swing.JLabel();
          ucakadiLabel1 = new javax.swing.JLabel();
          nereyeLabel1 = new javax.swing.JLabel();
          nerdenLabel1 = new javax.swing.JLabel();
          yolcuadiLabel1 = new javax.swing.JLabel();
          jPanel7 = new javax.swing.JPanel();
          KMLabel1 = new javax.swing.JLabel();
          jLabel2 = new javax.swing.JLabel();
          jLabel5 = new javax.swing.JLabel();
          jPanel8 = new javax.swing.JPanel();
          tarihLabel = new javax.swing.JLabel();
          jLabel10 = new javax.swing.JLabel();
          jLabel12 = new javax.swing.JLabel();
          nereyeLabel2 = new javax.swing.JLabel();
          jButton1 = new javax.swing.JButton();
          jLabel11 = new javax.swing.JLabel();
  
          setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
          setBackground(new java.awt.Color(255, 255, 255));
          setResizable(false);
  
          jPanel1.setBackground(new java.awt.Color(255, 0, 0));
  
          sirketLabel.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N
          sirketLabel.setForeground(new java.awt.Color(255, 255, 255));
          sirketLabel.setText("Sirket");
  
          jLabel3.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
          jLabel3.setForeground(new java.awt.Color(255, 255, 255));
          jLabel3.setText("boarding Pass | Biniş Kartı");
  
          jLabel4.setFont(new java.awt.Font("Tahoma", 0, 36)); // NOI18N
          jLabel4.setForeground(new java.awt.Color(255, 255, 255));
          jLabel4.setText("|");
  
          sirket1Label.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N
          sirket1Label.setForeground(new java.awt.Color(255, 255, 255));
          sirket1Label.setText("Sirket");
  
          jLabel16.setIcon(new javax.swing.ImageIcon(getClass().getResource("/havayolubilgisistemi/ucak (1).jpg"))); // NOI18N
          jLabel16.setText(" ");
  
          jLabel17.setIcon(new javax.swing.ImageIcon(getClass().getResource("/havayolubilgisistemi/ucak (1).jpg"))); // NOI18N
          jLabel17.setText(" ");
  
          javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
          jPanel1.setLayout(jPanel1Layout);
          jPanel1Layout.setHorizontalGroup(
              jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
              .addGroup(jPanel1Layout.createSequentialGroup()
                  .addContainerGap()
                  .addComponent(jLabel16)
                  .addGap(23, 23, 23)
                  .addComponent(sirketLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 179, javax.swing.GroupLayout.PREFERRED_SIZE)
                  .addGap(163, 163, 163)
                  .addComponent(jLabel3)
                  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                  .addComponent(jLabel4)
                  .addGap(18, 18, 18)
                  .addComponent(jLabel17, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)
                  .addGap(32, 32, 32)
                  .addComponent(sirket1Label, javax.swing.GroupLayout.PREFERRED_SIZE, 199, javax.swing.GroupLayout.PREFERRED_SIZE)
                  .addContainerGap())
          );
          jPanel1Layout.setVerticalGroup(
              jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
              .addGroup(jPanel1Layout.createSequentialGroup()
                  .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                      .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                          .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
                          .addComponent(jLabel17)
                          .addComponent(sirket1Label, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE))
                      .addGroup(jPanel1Layout.createSequentialGroup()
                          .addGap(14, 14, 14)
                          .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                              .addComponent(sirketLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)
                              .addComponent(jLabel3)))
                      .addGroup(jPanel1Layout.createSequentialGroup()
                          .addContainerGap()
                          .addComponent(jLabel16, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)))
                  .addContainerGap(15, Short.MAX_VALUE))
          );
  
          jPanel2.setBackground(new java.awt.Color(255, 255, 255));
          jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 4));
  
          jLabel6.setIcon(new javax.swing.ImageIcon(getClass().getResource("/havayolubilgisistemi/Qr.png"))); // NOI18N
  
          jPanel3.setBackground(new java.awt.Color(255, 255, 255));
          jPanel3.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 3));
  
          jLabel1.setText("  GATE /KAPI");
  
          jLabel9.setFont(new java.awt.Font("Tahoma", 1, 36)); // NOI18N
          jLabel9.setText("311");
  
          javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
          jPanel3.setLayout(jPanel3Layout);
          jPanel3Layout.setHorizontalGroup(
              jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
              .addGroup(jPanel3Layout.createSequentialGroup()
                  .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                  .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                      .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 86, javax.swing.GroupLayout.PREFERRED_SIZE)
                      .addGroup(jPanel3Layout.createSequentialGroup()
                          .addGap(10, 10, 10)
                          .addComponent(jLabel9)))
                  .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
          );
          jPanel3Layout.setVerticalGroup(
              jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
              .addGroup(jPanel3Layout.createSequentialGroup()
                  .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
                  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 13, Short.MAX_VALUE)
                  .addComponent(jLabel9)
                  .addContainerGap(18, Short.MAX_VALUE))
          );
  
          jPanel4.setBackground(new java.awt.Color(255, 255, 255));
          jPanel4.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 3));
  
          jLabel7.setText("TIME | SAATI");
  
          saatLabel.setFont(new java.awt.Font("Tahoma", 1, 36)); // NOI18N
          saatLabel.setText("11:10");
  
          javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
          jPanel4.setLayout(jPanel4Layout);
          jPanel4Layout.setHorizontalGroup(
              jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
              .addGroup(jPanel4Layout.createSequentialGroup()
                  .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                      .addGroup(jPanel4Layout.createSequentialGroup()
                          .addGap(32, 32, 32)
                          .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 86, javax.swing.GroupLayout.PREFERRED_SIZE))
                      .addGroup(jPanel4Layout.createSequentialGroup()
                          .addGap(23, 23, 23)
                          .addComponent(saatLabel)))
                  .addContainerGap(26, Short.MAX_VALUE))
          );
          jPanel4Layout.setVerticalGroup(
              jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
              .addGroup(jPanel4Layout.createSequentialGroup()
                  .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
                  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                  .addComponent(saatLabel)
                  .addContainerGap(18, Short.MAX_VALUE))
          );
  
          jPanel5.setBackground(new java.awt.Color(255, 255, 255));
          jPanel5.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 3));
  
          jLabel8.setText("SEAT / KOLTUK");
  
          noLabel.setFont(new java.awt.Font("Tahoma", 1, 36)); // NOI18N
          noLabel.setText("17F");
  
          javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
          jPanel5.setLayout(jPanel5Layout);
          jPanel5Layout.setHorizontalGroup(
              jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
              .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel5Layout.createSequentialGroup()
                  .addContainerGap()
                  .addComponent(jLabel8, javax.swing.GroupLayout.DEFAULT_SIZE, 96, Short.MAX_VALUE)
                  .addContainerGap())
              .addGroup(jPanel5Layout.createSequentialGroup()
                  .addGap(23, 23, 23)
                  .addComponent(noLabel)
                  .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
          );
          jPanel5Layout.setVerticalGroup(
              jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
              .addGroup(jPanel5Layout.createSequentialGroup()
                  .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
                  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 18, Short.MAX_VALUE)
                  .addComponent(noLabel)
                  .addContainerGap())
          );
  
          jPanel6.setBackground(new java.awt.Color(255, 255, 255));
          jPanel6.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 3));
  
          nerdenLabel.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N
          nerdenLabel.setText("Istanbul");
  
          nereyeLabel.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N
          nereyeLabel.setText("Istanbul");
  
          ucakadiLabel.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N
          ucakadiLabel.setText("Ucak Adi");
  
          yolcuadiLabel.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N
          yolcuadiLabel.setText("Adi");
  
          ucakadiLabel1.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N
          ucakadiLabel1.setText("Ucak Adi :");
  
          nereyeLabel1.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N
          nereyeLabel1.setText("Nereye :");
  
          nerdenLabel1.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N
          nerdenLabel1.setText("Nerden :");
  
          yolcuadiLabel1.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N
          yolcuadiLabel1.setText("Adi :");
  
          javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);
          jPanel6.setLayout(jPanel6Layout);
          jPanel6Layout.setHorizontalGroup(
              jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
              .addGroup(jPanel6Layout.createSequentialGroup()
                  .addContainerGap()
                  .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                      .addComponent(nerdenLabel1)
                      .addComponent(nereyeLabel1)
                      .addGroup(jPanel6Layout.createSequentialGroup()
                          .addComponent(yolcuadiLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE)
                          .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                          .addComponent(yolcuadiLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 269, javax.swing.GroupLayout.PREFERRED_SIZE)))
                  .addGap(0, 20, Short.MAX_VALUE))
              .addGroup(jPanel6Layout.createSequentialGroup()
                  .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                      .addGroup(jPanel6Layout.createSequentialGroup()
                          .addGap(33, 33, 33)
                          .addComponent(nereyeLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                      .addGroup(jPanel6Layout.createSequentialGroup()
                          .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                              .addGroup(jPanel6Layout.createSequentialGroup()
                                  .addGap(33, 33, 33)
                                  .addComponent(nerdenLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 286, javax.swing.GroupLayout.PREFERRED_SIZE))
                              .addGroup(jPanel6Layout.createSequentialGroup()
                                  .addContainerGap()
                                  .addComponent(ucakadiLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE)
                                  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                  .addComponent(ucakadiLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 121, javax.swing.GroupLayout.PREFERRED_SIZE)))
                          .addGap(0, 0, Short.MAX_VALUE)))
                  .addContainerGap())
          );
          jPanel6Layout.setVerticalGroup(
              jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
              .addGroup(jPanel6Layout.createSequentialGroup()
                  .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                  .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                      .addComponent(yolcuadiLabel1)
                      .addComponent(yolcuadiLabel))
                  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                  .addComponent(nerdenLabel1)
                  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                  .addComponent(nerdenLabel)
                  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                  .addComponent(nereyeLabel1)
                  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                  .addComponent(nereyeLabel)
                  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                  .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                      .addComponent(ucakadiLabel1)
                      .addComponent(ucakadiLabel))
                  .addContainerGap())
          );
  
          jPanel7.setBackground(new java.awt.Color(255, 255, 255));
          jPanel7.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 3));
  
          KMLabel1.setFont(new java.awt.Font("Tahoma", 1, 36)); // NOI18N
          KMLabel1.setText("1712");
  
          jLabel2.setText("Mesafe");
  
          jLabel5.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N
          jLabel5.setText("KM");
  
          javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);
          jPanel7.setLayout(jPanel7Layout);
          jPanel7Layout.setHorizontalGroup(
              jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
              .addGroup(jPanel7Layout.createSequentialGroup()
                  .addComponent(KMLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                  .addComponent(jLabel5)
                  .addContainerGap())
              .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel7Layout.createSequentialGroup()
                  .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                  .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)
                  .addGap(35, 35, 35))
          );
          jPanel7Layout.setVerticalGroup(
              jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
              .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel7Layout.createSequentialGroup()
                  .addComponent(jLabel2)
                  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                  .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                      .addComponent(KMLabel1)
                      .addComponent(jLabel5)))
          );
  
          jPanel8.setBackground(new java.awt.Color(255, 255, 255));
          jPanel8.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 2));
  
          tarihLabel.setFont(new java.awt.Font("Tahoma", 1, 36)); // NOI18N
          tarihLabel.setText("12/12/2023");
  
          jLabel10.setText("DATE | TARIH");
  
          javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8);
          jPanel8.setLayout(jPanel8Layout);
          jPanel8Layout.setHorizontalGroup(
              jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
              .addGroup(jPanel8Layout.createSequentialGroup()
                  .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                      .addGroup(jPanel8Layout.createSequentialGroup()
                          .addContainerGap()
                          .addComponent(tarihLabel))
                      .addGroup(jPanel8Layout.createSequentialGroup()
                          .addGap(78, 78, 78)
                          .addComponent(jLabel10)))
                  .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
          );
          jPanel8Layout.setVerticalGroup(
              jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
              .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel8Layout.createSequentialGroup()
                  .addComponent(jLabel10)
                  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                  .addComponent(tarihLabel)
                  .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
          );
  
          jLabel12.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
          jLabel12.setText("TK 1665");
  
          nereyeLabel2.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N
          nereyeLabel2.setText("Istanbul");
  
          javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
          jPanel2.setLayout(jPanel2Layout);
          jPanel2Layout.setHorizontalGroup(
              jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
              .addGroup(jPanel2Layout.createSequentialGroup()
                  .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                      .addGroup(jPanel2Layout.createSequentialGroup()
                          .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                              .addGroup(jPanel2Layout.createSequentialGroup()
                                  .addGap(24, 24, 24)
                                  .addComponent(jLabel6))
                              .addGroup(jPanel2Layout.createSequentialGroup()
                                  .addGap(40, 40, 40)
                                  .addComponent(jLabel12)))
                          .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 35, Short.MAX_VALUE)
                          .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                              .addGroup(jPanel2Layout.createSequentialGroup()
                                  .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                  .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                  .addGap(18, 18, 18)
                                  .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                              .addGroup(jPanel2Layout.createSequentialGroup()
                                  .addComponent(jPanel8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                  .addGap(18, 18, 18)
                                  .addComponent(jPanel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                          .addGap(128, 128, 128))
                      .addGroup(jPanel2Layout.createSequentialGroup()
                          .addGap(0, 0, Short.MAX_VALUE)
                          .addComponent(nereyeLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 277, javax.swing.GroupLayout.PREFERRED_SIZE)
                          .addGap(212, 212, 212)))
                  .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                  .addContainerGap())
          );
          jPanel2Layout.setVerticalGroup(
              jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
              .addGroup(jPanel2Layout.createSequentialGroup()
                  .addGap(44, 44, 44)
                  .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                      .addGroup(jPanel2Layout.createSequentialGroup()
                          .addComponent(jLabel12)
                          .addGap(41, 41, 41)
                          .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 137, javax.swing.GroupLayout.PREFERRED_SIZE))
                      .addGroup(jPanel2Layout.createSequentialGroup()
                          .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                              .addComponent(jPanel8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                              .addComponent(jPanel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                          .addGap(22, 22, 22)
                          .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                              .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                              .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                              .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
                  .addGap(18, 18, 18)
                  .addComponent(nereyeLabel2)
                  .addContainerGap(115, Short.MAX_VALUE))
              .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
                  .addContainerGap()
                  .addComponent(jPanel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                  .addContainerGap())
          );
  
          jButton1.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
          jButton1.setText("Ana Safa");
          jButton1.addActionListener(new java.awt.event.ActionListener() {
              public void actionPerformed(java.awt.event.ActionEvent evt) {
                  jButton1ActionPerformed(evt);
              }
          });
  
          jLabel11.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N
          jLabel11.setText("Biletiniz Hazır Iyi Yolculuklar");
  
          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.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
              .addComponent(jPanel2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
              .addGroup(layout.createSequentialGroup()
                  .addContainerGap()
                  .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 135, javax.swing.GroupLayout.PREFERRED_SIZE)
                  .addGap(221, 221, 221)
                  .addComponent(jLabel11, javax.swing.GroupLayout.PREFERRED_SIZE, 358, javax.swing.GroupLayout.PREFERRED_SIZE)
                  .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
          );
          layout.setVerticalGroup(
              layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
              .addGroup(layout.createSequentialGroup()
                  .addContainerGap()
                  .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                      .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE)
                      .addComponent(jLabel11, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                  .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                  .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
          );
  
          pack();
      }// </editor-fold>//GEN-END:initComponents
  
      private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
          Baslangis basla= new Baslangis();
          basla.setVisible(true);
          setVisible(false);
      }//GEN-LAST:event_jButton1ActionPerformed
  
      /**
       * @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(Bilet.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
          } catch (InstantiationException ex) {
              java.util.logging.Logger.getLogger(Bilet.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
          } catch (IllegalAccessException ex) {
              java.util.logging.Logger.getLogger(Bilet.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
          } catch (javax.swing.UnsupportedLookAndFeelException ex) {
              java.util.logging.Logger.getLogger(Bilet.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 Bilet().setVisible(true);
              }
          });
      }
  
      // Variables declaration - do not modify//GEN-BEGIN:variables
      private javax.swing.JLabel KMLabel1;
      private javax.swing.JButton jButton1;
      private javax.swing.JLabel jLabel1;
      private javax.swing.JLabel jLabel10;
      private javax.swing.JLabel jLabel11;
      private javax.swing.JLabel jLabel12;
      private javax.swing.JLabel jLabel16;
      private javax.swing.JLabel jLabel17;
      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 jLabel9;
      private javax.swing.JPanel jPanel1;
      private javax.swing.JPanel jPanel2;
      private javax.swing.JPanel jPanel3;
      private javax.swing.JPanel jPanel4;
      private javax.swing.JPanel jPanel5;
      private javax.swing.JPanel jPanel6;
      private javax.swing.JPanel jPanel7;
      private javax.swing.JPanel jPanel8;
      private javax.swing.JLabel nerdenLabel;
      private javax.swing.JLabel nerdenLabel1;
      private javax.swing.JLabel nereyeLabel;
      private javax.swing.JLabel nereyeLabel1;
      private javax.swing.JLabel nereyeLabel2;
      private javax.swing.JLabel noLabel;
      private javax.swing.JLabel saatLabel;
      private javax.swing.JLabel sirket1Label;
      private javax.swing.JLabel sirketLabel;
      private javax.swing.JLabel tarihLabel;
      private javax.swing.JLabel ucakadiLabel;
      private javax.swing.JLabel ucakadiLabel1;
      private javax.swing.JLabel yolcuadiLabel;
      private javax.swing.JLabel yolcuadiLabel1;
      // End of variables declaration//GEN-END:variables
  }
  