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.awt.Color;
  import javax.swing.UIManager;
  import javax.swing.UnsupportedLookAndFeelException;
  
  /**
   *
   * @author AsusTuf
   */
  public class Baslangis extends javax.swing.JFrame {
  
      /**
       * Creates new form Baslangis
       */
      public Baslangis() {
          initComponents();
          try {
              UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
          } catch (UnsupportedLookAndFeelException | ClassNotFoundException | InstantiationException | IllegalAccessException e) {
              e.printStackTrace();
          }
          Color backgroundColor = new Color(197, 255, 248);
          getContentPane().setBackground(backgroundColor);
      }
  
      /**
       * 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();
          YolcuButton = new javax.swing.JButton();
          PersonelButton = new javax.swing.JButton();
          YoneticiButton = new javax.swing.JButton();
          jLabel1 = new javax.swing.JLabel();
          jLabel2 = new javax.swing.JLabel();
  
          setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
          setResizable(false);
  
          jPanel1.setBackground(new java.awt.Color(95, 189, 255));
          jPanel1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
  
          YolcuButton.setBackground(new java.awt.Color(150, 239, 255));
          YolcuButton.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N
          YolcuButton.setForeground(new java.awt.Color(153, 153, 255));
          YolcuButton.setText("Yolcu");
          YolcuButton.addActionListener(new java.awt.event.ActionListener() {
              public void actionPerformed(java.awt.event.ActionEvent evt) {
                  YolcuButtonActionPerformed(evt);
              }
          });
  
          PersonelButton.setBackground(new java.awt.Color(150, 239, 255));
          PersonelButton.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N
          PersonelButton.setForeground(new java.awt.Color(153, 153, 255));
          PersonelButton.setText("Personel");
          PersonelButton.addActionListener(new java.awt.event.ActionListener() {
              public void actionPerformed(java.awt.event.ActionEvent evt) {
                  PersonelButtonActionPerformed(evt);
              }
          });
  
          YoneticiButton.setBackground(new java.awt.Color(150, 239, 255));
          YoneticiButton.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N
          YoneticiButton.setForeground(new java.awt.Color(153, 153, 255));
          YoneticiButton.setText("Yönetici");
          YoneticiButton.addActionListener(new java.awt.event.ActionListener() {
              public void actionPerformed(java.awt.event.ActionEvent evt) {
                  YoneticiButtonActionPerformed(evt);
              }
          });
  
          jLabel1.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N
          jLabel1.setForeground(new java.awt.Color(153, 255, 255));
          jLabel1.setText("HOŞ GALDİNİZ");
  
          javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
          jPanel1.setLayout(jPanel1Layout);
          jPanel1Layout.setHorizontalGroup(
              jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
              .addGroup(jPanel1Layout.createSequentialGroup()
                  .addGap(287, 287, 287)
                  .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                      .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 204, javax.swing.GroupLayout.PREFERRED_SIZE)
                      .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                          .addComponent(YolcuButton, javax.swing.GroupLayout.PREFERRED_SIZE, 224, javax.swing.GroupLayout.PREFERRED_SIZE)
                          .addGroup(jPanel1Layout.createSequentialGroup()
                              .addGap(37, 37, 37)
                              .addComponent(PersonelButton, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE))
                          .addGroup(jPanel1Layout.createSequentialGroup()
                              .addGap(54, 54, 54)
                              .addComponent(YoneticiButton))))
                  .addContainerGap(311, Short.MAX_VALUE))
          );
          jPanel1Layout.setVerticalGroup(
              jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
              .addGroup(jPanel1Layout.createSequentialGroup()
                  .addContainerGap()
                  .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE)
                  .addGap(50, 50, 50)
                  .addComponent(YolcuButton, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)
                  .addGap(58, 58, 58)
                  .addComponent(PersonelButton)
                  .addGap(57, 57, 57)
                  .addComponent(YoneticiButton)
                  .addContainerGap(47, Short.MAX_VALUE))
          );
  
          jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/havayolubilgisistemi/logo2.png"))); // NOI18N
          jLabel2.setText(" ");
  
          javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
          getContentPane().setLayout(layout);
          layout.setHorizontalGroup(
              layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
              .addGroup(layout.createSequentialGroup()
                  .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                      .addGroup(layout.createSequentialGroup()
                          .addGap(218, 218, 218)
                          .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                      .addGroup(layout.createSequentialGroup()
                          .addGap(348, 348, 348)
                          .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 533, javax.swing.GroupLayout.PREFERRED_SIZE)))
                  .addContainerGap(238, Short.MAX_VALUE))
          );
          layout.setVerticalGroup(
              layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
              .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                  .addGap(29, 29, 29)
                  .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 203, javax.swing.GroupLayout.PREFERRED_SIZE)
                  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                  .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                  .addContainerGap(73, Short.MAX_VALUE))
          );
  
          pack();
      }// </editor-fold>//GEN-END:initComponents
  
      private void YolcuButtonActionPerformed(java.awt.event.ActionEvent evt) {
          // Yolcu Buttonu 
          Home home=new Home();
          home.setVisible(true);
          setVisible(false);
      }
  
      private void PersonelButtonActionPerformed(java.awt.event.ActionEvent evt) {
          // Personel Buttonu 
          PersonelBilgileri home=new PersonelBilgileri();
          home.setVisible(true);
          setVisible(false);
      }
  
      private void YoneticiButtonActionPerformed(java.awt.event.ActionEvent evt) {
          // Yonetici Buttonu 
          YoneticiPage home=new YoneticiPage(Yonetici.getYonet());
          home.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 ("Nimbus".equals(info.getName())) {
                      javax.swing.UIManager.setLookAndFeel(info.getClassName());
                      break;
                  }
              }
          } catch (ClassNotFoundException ex) {
              java.util.logging.Logger.getLogger(Baslangis.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
          } catch (InstantiationException ex) {
              java.util.logging.Logger.getLogger(Baslangis.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
          } catch (IllegalAccessException ex) {
              java.util.logging.Logger.getLogger(Baslangis.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
          } catch (javax.swing.UnsupportedLookAndFeelException ex) {
              java.util.logging.Logger.getLogger(Baslangis.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 Baslangis().setVisible(true);
              }
          });
      }
  
      // Variables declaration - do not modify//GEN-BEGIN:variables
      private javax.swing.JButton PersonelButton;
      private javax.swing.JButton YolcuButton;
      private javax.swing.JButton YoneticiButton;
      private javax.swing.JLabel jLabel1;
      private javax.swing.JLabel jLabel2;
      private javax.swing.JPanel jPanel1;
      // End of variables declaration//GEN-END:variables
  }
  