content: package havayolubilgisistemi;
  
  import java.awt.Color;
  import java.awt.event.ActionEvent;
  import java.awt.event.ActionListener;
  import java.time.LocalDateTime;
  import java.time.format.DateTimeFormatter;
  import javax.swing.UIManager;
  import javax.swing.UnsupportedLookAndFeelException;
  
  
  
  
  
  
  /**
   *
   * @author AsusTuf
   */
  public class Home extends javax.swing.JFrame {
  
      /**
       * Creates new form Home
       */
      
      public Home() { 
          initComponents();
          try {
              UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
          } catch (UnsupportedLookAndFeelException | ClassNotFoundException | InstantiationException | IllegalAccessException e) {
              e.printStackTrace();
          }
          Color backgroundColor = new Color(197, 255, 248);
          getContentPane().setBackground(backgroundColor);
          GitBtn.setEnabled(false);
          NeredenCBox.addActionListener(new ActionListener() {
              @Override
              public void actionPerformed(ActionEvent e) {
                  NereyeCBox.removeAllItems();
                  for (String air : HavaYolu.Airports) {
                      if(air!=(String) NeredenCBox.getSelectedItem())
                          NereyeCBox.addItem(air);
                  }
              }
          });
      }
  
      /**
       * 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() {
  
          YolcuBtn1 = new javax.swing.JButton();
          YolcuBtn2 = new javax.swing.JButton();
          canvas1 = new java.awt.Canvas();
          jPanel4 = new javax.swing.JPanel();
          jPanel1 = new javax.swing.JPanel();
          NeredenCBox = new javax.swing.JComboBox<>();
          label4 = new java.awt.Label();
          label1 = new java.awt.Label();
          label7 = new java.awt.Label();
          NereyeCBox = new javax.swing.JComboBox<>();
          jPanel2 = new javax.swing.JPanel();
          AdinizTxt = new javax.swing.JTextField();
          label3 = new java.awt.Label();
          label6 = new java.awt.Label();
          TarihBox = new javax.swing.JComboBox<>();
          YolcuTipCBox = new javax.swing.JComboBox<>();
          GitBtn = new javax.swing.JButton();
          jPanel3 = new javax.swing.JPanel();
          GeriButton = new javax.swing.JButton();
  
          YolcuBtn1.setFont(new java.awt.Font("Tahoma", 0, 24)); // NOI18N
          YolcuBtn1.setText("Yolcular");
          YolcuBtn1.addActionListener(new java.awt.event.ActionListener() {
              public void actionPerformed(java.awt.event.ActionEvent evt) {
                  YolcuBtn1ActionPerformed(evt);
              }
          });
  
          YolcuBtn2.setFont(new java.awt.Font("Tahoma", 0, 24)); // NOI18N
          YolcuBtn2.setText("Yolcular");
          YolcuBtn2.addActionListener(new java.awt.event.ActionListener() {
              public void actionPerformed(java.awt.event.ActionEvent evt) {
                  YolcuBtn2ActionPerformed(evt);
              }
          });
  
          setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
          setBackground(new java.awt.Color(0, 21, 36));
          setResizable(false);
          addWindowListener(new java.awt.event.WindowAdapter() {
              public void windowOpened(java.awt.event.WindowEvent evt) {
                  formWindowOpened(evt);
              }
          });
  
          jPanel4.setBackground(new java.awt.Color(150, 239, 255));
          jPanel4.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 3));
  
          jPanel1.setBackground(new java.awt.Color(95, 189, 255));
          jPanel1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 3));
  
          NeredenCBox.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 2));
          NeredenCBox.addActionListener(new java.awt.event.ActionListener() {
              public void actionPerformed(java.awt.event.ActionEvent evt) {
                  NeredenCBoxActionPerformed(evt);
              }
          });
  
          label4.setFont(new java.awt.Font("Lucida Fax", 1, 24)); // NOI18N
          label4.setText("Nereden");
  
          label1.setFont(new java.awt.Font("Lucida Fax", 1, 24)); // NOI18N
          label1.setText(">>");
  
          label7.setFont(new java.awt.Font("Lucida Fax", 1, 24)); // NOI18N
          label7.setText("Nereye");
  
          NereyeCBox.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 2));
          NereyeCBox.addActionListener(new java.awt.event.ActionListener() {
              public void actionPerformed(java.awt.event.ActionEvent evt) {
                  NereyeCBoxActionPerformed(evt);
              }
          });
  
          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(41, 41, 41)
                          .addComponent(label1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                      .addGroup(jPanel1Layout.createSequentialGroup()
                          .addGap(21, 21, 21)
                          .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                              .addComponent(label4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                              .addComponent(label7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                          .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                          .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                              .addComponent(NereyeCBox, javax.swing.GroupLayout.PREFERRED_SIZE, 212, javax.swing.GroupLayout.PREFERRED_SIZE)
                              .addComponent(NeredenCBox, javax.swing.GroupLayout.PREFERRED_SIZE, 212, javax.swing.GroupLayout.PREFERRED_SIZE))))
                  .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
          );
          jPanel1Layout.setVerticalGroup(
              jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
              .addGroup(jPanel1Layout.createSequentialGroup()
                  .addGap(70, 70, 70)
                  .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                      .addComponent(label4, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                      .addComponent(NeredenCBox, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE))
                  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                  .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                      .addGroup(jPanel1Layout.createSequentialGroup()
                          .addComponent(label1, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                          .addGap(19, 19, 19)
                          .addComponent(label7, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))
                      .addComponent(NereyeCBox, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE))
                  .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
          );
  
          label1.getAccessibleContext().setAccessibleName("Nereden");
  
          jPanel2.setBackground(new java.awt.Color(95, 189, 255));
          jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 3));
  
          AdinizTxt.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 2));
          AdinizTxt.addActionListener(new java.awt.event.ActionListener() {
              public void actionPerformed(java.awt.event.ActionEvent evt) {
                  AdinizTxtActionPerformed(evt);
              }
          });
  
          label3.setFont(new java.awt.Font("Lucida Fax", 1, 24)); // NOI18N
          label3.setText("Adiniz");
  
          label6.setFont(new java.awt.Font("Lucida Fax", 1, 24)); // NOI18N
          label6.setText("Tarih");
  
          TarihBox.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 2));
          TarihBox.addActionListener(new java.awt.event.ActionListener() {
              public void actionPerformed(java.awt.event.ActionEvent evt) {
                  TarihBoxActionPerformed(evt);
              }
          });
  
          YolcuTipCBox.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 2));
  
          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(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
                          .addGap(27, 27, 27)
                          .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                              .addComponent(label3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                              .addComponent(label6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                          .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 34, Short.MAX_VALUE)
                          .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                              .addComponent(AdinizTxt)
                              .addComponent(TarihBox, 0, 220, Short.MAX_VALUE)))
                      .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
                          .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                          .addComponent(YolcuTipCBox, javax.swing.GroupLayout.PREFERRED_SIZE, 220, javax.swing.GroupLayout.PREFERRED_SIZE)))
                  .addContainerGap())
          );
          jPanel2Layout.setVerticalGroup(
              jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
              .addGroup(jPanel2Layout.createSequentialGroup()
                  .addGap(73, 73, 73)
                  .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                      .addComponent(label3, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                      .addComponent(AdinizTxt, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE))
                  .addGap(84, 84, 84)
                  .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                      .addComponent(label6, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                      .addComponent(TarihBox, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE))
                  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 77, Short.MAX_VALUE)
                  .addComponent(YolcuTipCBox, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                  .addGap(36, 36, 36))
          );
  
          GitBtn.setBackground(new java.awt.Color(123, 102, 255));
          GitBtn.setFont(new java.awt.Font("Tahoma", 0, 36)); // NOI18N
          GitBtn.setText("Sefer Bul");
          GitBtn.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 3));
          GitBtn.addActionListener(new java.awt.event.ActionListener() {
              public void actionPerformed(java.awt.event.ActionEvent evt) {
                  GitBtnActionPerformed(evt);
              }
          });
  
          javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
          jPanel4.setLayout(jPanel4Layout);
          jPanel4Layout.setHorizontalGroup(
              jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
              .addGroup(jPanel4Layout.createSequentialGroup()
                  .addGap(98, 98, 98)
                  .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 110, Short.MAX_VALUE)
                  .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                  .addGap(87, 87, 87))
              .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()
                  .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                  .addComponent(GitBtn, javax.swing.GroupLayout.PREFERRED_SIZE, 171, javax.swing.GroupLayout.PREFERRED_SIZE)
                  .addGap(438, 438, 438))
          );
          jPanel4Layout.setVerticalGroup(
              jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
              .addGroup(jPanel4Layout.createSequentialGroup()
                  .addGap(28, 28, 28)
                  .addGroup(jPanel4Layout.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.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                  .addGap(18, 18, 18)
                  .addComponent(GitBtn, javax.swing.GroupLayout.PREFERRED_SIZE, 58, javax.swing.GroupLayout.PREFERRED_SIZE)
                  .addContainerGap())
          );
  
          jPanel3.setBackground(new java.awt.Color(150, 239, 255));
  
          GeriButton.setBackground(new java.awt.Color(150, 239, 255));
          GeriButton.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
          GeriButton.setText("Geri");
          GeriButton.addActionListener(new java.awt.event.ActionListener() {
              public void actionPerformed(java.awt.event.ActionEvent evt) {
                  GeriButtonActionPerformed(evt);
              }
          });
  
          javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
          jPanel3.setLayout(jPanel3Layout);
          jPanel3Layout.setHorizontalGroup(
              jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
              .addComponent(GeriButton, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE)
          );
          jPanel3Layout.setVerticalGroup(
              jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
              .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()
                  .addComponent(GeriButton, javax.swing.GroupLayout.PREFERRED_SIZE, 68, javax.swing.GroupLayout.PREFERRED_SIZE)
                  .addGap(0, 0, Short.MAX_VALUE))
          );
  
          javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
          getContentPane().setLayout(layout);
          layout.setHorizontalGroup(
              layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
              .addGroup(layout.createSequentialGroup()
                  .addContainerGap(586, Short.MAX_VALUE)
                  .addComponent(canvas1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                  .addGap(694, 694, 694))
              .addGroup(layout.createSequentialGroup()
                  .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                      .addGroup(layout.createSequentialGroup()
                          .addGap(83, 83, 83)
                          .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                      .addGroup(layout.createSequentialGroup()
                          .addGap(109, 109, 109)
                          .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                  .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
          );
          layout.setVerticalGroup(
              layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
              .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                  .addGap(23, 23, 23)
                  .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                  .addGap(18, 18, Short.MAX_VALUE)
                  .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                  .addGap(64, 64, 64)
                  .addComponent(canvas1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                  .addGap(42, 42, 42))
          );
  
          pack();
      }// </editor-fold>//GEN-END:initComponents
  
      private void NereyeCBoxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_NereyeCBoxActionPerformed
          // TODO add your handling code here:
      }//GEN-LAST:event_NereyeCBoxActionPerformed
  
      private void YolcuBtn1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_YolcuBtn1ActionPerformed
          // TODO add your handling code here:
      }//GEN-LAST:event_YolcuBtn1ActionPerformed
  
      private void YolcuBtn2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_YolcuBtn2ActionPerformed
          // TODO add your handling code here:
      }//GEN-LAST:event_YolcuBtn2ActionPerformed
      
      private void gonder(String nerden,String nereye,String tarih,Yolcu yol){
          Ucuslar ucus = new Ucuslar("Sefer",nerden,nereye,tarih,yol);
          ucus.setVisible(true);
          setVisible(false);
      }
      private void formWindowOpened(java.awt.event.WindowEvent evt) {
          
          for (String air : HavaYolu.Airports) { // Nereden Boxu Hava Limanlarının adlarını kapsar
              NeredenCBox.addItem(air);
          }
          YolcuTipCBox.addItem(Yolcu.tip[0]);  // Yolcu Tipi (Standart , VIP) 
          YolcuTipCBox.addItem(Yolcu.tip[1]);
          
          GitBtn.addActionListener(new ActionListener() {
              @Override
              public void actionPerformed(ActionEvent e) {
                  Yolcu yol=null;
                  if(!AdinizTxt.getText().isEmpty())
                      yol=new Yolcu(AdinizTxt.getText());
                      yol.Ytip=YolcuTipCBox.getSelectedItem().toString();
                  gonder((String) NeredenCBox.getSelectedItem(),(String) NereyeCBox.getSelectedItem(),(String) TarihBox.getSelectedItem(),yol);
                  
              }
          });
          AdinizTxt.addActionListener(new ActionListener() {
              @Override
              public void actionPerformed(ActionEvent e) {
                  String adi1 = AdinizTxt.getText();
                  if (!adi1.equals("") && !adi1.isEmpty()) {
                      GitBtn.setEnabled(true);
                  }
              }
          });
          LocalDateTime currentDateTime = LocalDateTime.now(); 
          DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd");
          for (int i = 1; i < 30; i++) {  // Tarih Boxu Doldur
              LocalDateTime dateTime = currentDateTime.plusDays(i);
              TarihBox.addItem(dateTime.format(formatter));
          }
      }
  
      private void TarihBoxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_TarihBoxActionPerformed
          // TODO add your handling code here:
      }//GEN-LAST:event_TarihBoxActionPerformed
  
      private void GitBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_GitBtnActionPerformed
          
      }//GEN-LAST:event_GitBtnActionPerformed
  
      private void AdinizTxtActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_AdinizTxtActionPerformed
          
          
          
      }//GEN-LAST:event_AdinizTxtActionPerformed
  
      private void NeredenCBoxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_NeredenCBoxActionPerformed
          // TODO add your handling code here:
      }//GEN-LAST:event_NeredenCBoxActionPerformed
  
      private void GeriButtonActionPerformed(java.awt.event.ActionEvent evt) {
          Baslangis basla= new Baslangis();
          basla.setVisible(true);
          setVisible(false);
      }
          
  
      /**
       * @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 ("Windows".equals(info.getName())) {
                      javax.swing.UIManager.setLookAndFeel(info.getClassName());
                      break;
                  }
              }
          } catch (ClassNotFoundException ex) {
              java.util.logging.Logger.getLogger(Home.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
          } catch (InstantiationException ex) {
              java.util.logging.Logger.getLogger(Home.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
          } catch (IllegalAccessException ex) {
              java.util.logging.Logger.getLogger(Home.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
          } catch (javax.swing.UnsupportedLookAndFeelException ex) {
              java.util.logging.Logger.getLogger(Home.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 Home().setVisible(true);
              }
          });
      }
  
      // Variables declaration - do not modify//GEN-BEGIN:variables
      private javax.swing.JTextField AdinizTxt;
      private javax.swing.JButton GeriButton;
      private javax.swing.JButton GitBtn;
      private javax.swing.JComboBox<String> NeredenCBox;
      private javax.swing.JComboBox<String> NereyeCBox;
      private javax.swing.JComboBox<String> TarihBox;
      private javax.swing.JButton YolcuBtn1;
      private javax.swing.JButton YolcuBtn2;
      private javax.swing.JComboBox<String> YolcuTipCBox;
      private java.awt.Canvas canvas1;
      private javax.swing.JPanel jPanel1;
      private javax.swing.JPanel jPanel2;
      private javax.swing.JPanel jPanel3;
      private javax.swing.JPanel jPanel4;
      private java.awt.Label label1;
      private java.awt.Label label3;
      private java.awt.Label label4;
      private java.awt.Label label6;
      private java.awt.Label label7;
      // End of variables declaration//GEN-END:variables
  }
  