content: 
  import java.awt.Color;
  import java.sql.SQLException;
  import java.util.logging.Level;
  import java.util.logging.Logger;
  
  /*
   * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
   * Click nbfs://nbhost/SystemFileSystem/Templates/GUIForms/JFrame.java to edit this template
   */
  /**
   *
   * @author ahmed
   */
  public class StudentPage extends javax.swing.JFrame {
  
      /**
       * Creates new form StudentPage
       */
      public StudentPage() {
          initComponents();
          MainMenu.setVisible(false);
          this.setLocationRelativeTo(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();
          menu = new javax.swing.JPanel();
          e2 = new javax.swing.JLabel();
          MainMenu = new javax.swing.JPanel();
          stdprofile = new javax.swing.JPanel();
          jLabel14 = new javax.swing.JLabel();
          addcourse = new javax.swing.JPanel();
          a3 = new javax.swing.JLabel();
          deletecourse = new javax.swing.JPanel();
          a2 = new javax.swing.JLabel();
          jPanel35 = new javax.swing.JPanel();
          p3 = new javax.swing.JLabel();
          jPanel33 = new javax.swing.JPanel();
          p1 = new javax.swing.JLabel();
          jPanel5 = new javax.swing.JPanel();
          b5 = new javax.swing.JLabel();
          Hide1 = new javax.swing.JPanel();
          jLabel15 = new javax.swing.JLabel();
          exit = new javax.swing.JPanel();
          jLabel16 = new javax.swing.JLabel();
          jLabel2 = new javax.swing.JLabel();
  
          setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
          setResizable(false);
  
          jPanel1.setBackground(new java.awt.Color(0, 64, 128));
          jPanel1.setPreferredSize(new java.awt.Dimension(800, 700));
  
          menu.setBackground(new java.awt.Color(0, 64, 128));
          menu.addMouseListener(new java.awt.event.MouseAdapter() {
              public void mouseClicked(java.awt.event.MouseEvent evt) {
                  menuMouseClicked(evt);
              }
              public void mouseEntered(java.awt.event.MouseEvent evt) {
                  menuMouseEntered(evt);
              }
              public void mouseExited(java.awt.event.MouseEvent evt) {
                  menuMouseExited(evt);
              }
              public void mousePressed(java.awt.event.MouseEvent evt) {
                  menuMousePressed(evt);
              }
          });
  
          e2.setBackground(new java.awt.Color(204, 204, 204));
          e2.setFont(new java.awt.Font("Segoe UI", 1, 18)); // NOI18N
          e2.setForeground(new java.awt.Color(255, 255, 255));
          e2.setText("Menu");
  
          javax.swing.GroupLayout menuLayout = new javax.swing.GroupLayout(menu);
          menu.setLayout(menuLayout);
          menuLayout.setHorizontalGroup(
              menuLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
              .addGroup(menuLayout.createSequentialGroup()
                  .addContainerGap()
                  .addComponent(e2)
                  .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
          );
          menuLayout.setVerticalGroup(
              menuLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
              .addGroup(menuLayout.createSequentialGroup()
                  .addContainerGap()
                  .addComponent(e2)
                  .addContainerGap(7, Short.MAX_VALUE))
          );
  
          MainMenu.setBackground(new java.awt.Color(173, 216, 230));
          MainMenu.setPreferredSize(new java.awt.Dimension(220, 470));
  
          stdprofile.setBackground(new java.awt.Color(0, 64, 128));
          stdprofile.addMouseListener(new java.awt.event.MouseAdapter() {
              public void mouseEntered(java.awt.event.MouseEvent evt) {
                  stdprofileMouseEntered(evt);
              }
              public void mouseExited(java.awt.event.MouseEvent evt) {
                  stdprofileMouseExited(evt);
              }
              public void mousePressed(java.awt.event.MouseEvent evt) {
                  stdprofileMousePressed(evt);
              }
          });
  
          jLabel14.setBackground(new java.awt.Color(0, 0, 0));
          jLabel14.setFont(new java.awt.Font("Segoe UI", 1, 16)); // NOI18N
          jLabel14.setForeground(new java.awt.Color(255, 255, 255));
          jLabel14.setText("Student Profile");
          jLabel14.setPreferredSize(new java.awt.Dimension(120, 40));
          jLabel14.addMouseListener(new java.awt.event.MouseAdapter() {
              public void mouseEntered(java.awt.event.MouseEvent evt) {
                  jLabel14MouseEntered(evt);
              }
              public void mouseExited(java.awt.event.MouseEvent evt) {
                  jLabel14MouseExited(evt);
              }
          });
  
          javax.swing.GroupLayout stdprofileLayout = new javax.swing.GroupLayout(stdprofile);
          stdprofile.setLayout(stdprofileLayout);
          stdprofileLayout.setHorizontalGroup(
              stdprofileLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
              .addGroup(stdprofileLayout.createSequentialGroup()
                  .addContainerGap()
                  .addComponent(jLabel14, javax.swing.GroupLayout.PREFERRED_SIZE, 124, javax.swing.GroupLayout.PREFERRED_SIZE)
                  .addContainerGap(17, Short.MAX_VALUE))
          );
          stdprofileLayout.setVerticalGroup(
              stdprofileLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
              .addGroup(stdprofileLayout.createSequentialGroup()
                  .addContainerGap()
                  .addComponent(jLabel14, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)
                  .addContainerGap(20, Short.MAX_VALUE))
          );
  
          addcourse.setBackground(new java.awt.Color(0, 64, 128));
          addcourse.addMouseListener(new java.awt.event.MouseAdapter() {
              public void mouseEntered(java.awt.event.MouseEvent evt) {
                  addcourseMouseEntered(evt);
              }
              public void mouseExited(java.awt.event.MouseEvent evt) {
                  addcourseMouseExited(evt);
              }
              public void mousePressed(java.awt.event.MouseEvent evt) {
                  addcourseMousePressed(evt);
              }
          });
  
          a3.setFont(new java.awt.Font("Segoe UI", 1, 16)); // NOI18N
          a3.setForeground(new java.awt.Color(255, 255, 255));
          a3.setText("Add Course");
  
          javax.swing.GroupLayout addcourseLayout = new javax.swing.GroupLayout(addcourse);
          addcourse.setLayout(addcourseLayout);
          addcourseLayout.setHorizontalGroup(
              addcourseLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
              .addGroup(addcourseLayout.createSequentialGroup()
                  .addContainerGap()
                  .addComponent(a3, javax.swing.GroupLayout.PREFERRED_SIZE, 105, javax.swing.GroupLayout.PREFERRED_SIZE)
                  .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
          );
          addcourseLayout.setVerticalGroup(
              addcourseLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
              .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, addcourseLayout.createSequentialGroup()
                  .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                  .addComponent(a3)
                  .addGap(52, 52, 52))
          );
  
          deletecourse.setBackground(new java.awt.Color(0, 64, 128));
          deletecourse.addMouseListener(new java.awt.event.MouseAdapter() {
              public void mouseEntered(java.awt.event.MouseEvent evt) {
                  deletecourseMouseEntered(evt);
              }
              public void mouseExited(java.awt.event.MouseEvent evt) {
                  deletecourseMouseExited(evt);
              }
              public void mousePressed(java.awt.event.MouseEvent evt) {
                  deletecourseMousePressed(evt);
              }
          });
  
          a2.setFont(new java.awt.Font("Segoe UI", 1, 16)); // NOI18N
          a2.setForeground(new java.awt.Color(255, 255, 255));
          a2.setText("Delete Course");
  
          javax.swing.GroupLayout deletecourseLayout = new javax.swing.GroupLayout(deletecourse);
          deletecourse.setLayout(deletecourseLayout);
          deletecourseLayout.setHorizontalGroup(
              deletecourseLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
              .addGroup(deletecourseLayout.createSequentialGroup()
                  .addContainerGap()
                  .addComponent(a2, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE)
                  .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
          );
          deletecourseLayout.setVerticalGroup(
              deletecourseLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
              .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, deletecourseLayout.createSequentialGroup()
                  .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                  .addComponent(a2)
                  .addGap(17, 17, 17))
          );
  
          jPanel35.setBackground(new java.awt.Color(0, 64, 128));
          jPanel35.addMouseListener(new java.awt.event.MouseAdapter() {
              public void mouseEntered(java.awt.event.MouseEvent evt) {
                  jPanel35MouseEntered(evt);
              }
              public void mouseExited(java.awt.event.MouseEvent evt) {
                  jPanel35MouseExited(evt);
              }
              public void mousePressed(java.awt.event.MouseEvent evt) {
                  jPanel35MousePressed(evt);
              }
          });
  
          p3.setFont(new java.awt.Font("Segoe UI", 1, 16)); // NOI18N
          p3.setForeground(new java.awt.Color(255, 255, 255));
          p3.setText("Delete Section");
  
          javax.swing.GroupLayout jPanel35Layout = new javax.swing.GroupLayout(jPanel35);
          jPanel35.setLayout(jPanel35Layout);
          jPanel35Layout.setHorizontalGroup(
              jPanel35Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
              .addGroup(jPanel35Layout.createSequentialGroup()
                  .addContainerGap()
                  .addComponent(p3)
                  .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
          );
          jPanel35Layout.setVerticalGroup(
              jPanel35Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
              .addGroup(jPanel35Layout.createSequentialGroup()
                  .addContainerGap()
                  .addComponent(p3)
                  .addContainerGap(18, Short.MAX_VALUE))
          );
  
          jPanel33.setBackground(new java.awt.Color(0, 64, 128));
          jPanel33.addMouseListener(new java.awt.event.MouseAdapter() {
              public void mouseEntered(java.awt.event.MouseEvent evt) {
                  jPanel33MouseEntered(evt);
              }
              public void mouseExited(java.awt.event.MouseEvent evt) {
                  jPanel33MouseExited(evt);
              }
              public void mousePressed(java.awt.event.MouseEvent evt) {
                  jPanel33MousePressed(evt);
              }
          });
  
          p1.setFont(new java.awt.Font("Segoe UI", 1, 16)); // NOI18N
          p1.setForeground(new java.awt.Color(255, 255, 255));
          p1.setText("Add Section");
          p1.addMouseListener(new java.awt.event.MouseAdapter() {
              public void mouseEntered(java.awt.event.MouseEvent evt) {
                  p1MouseEntered(evt);
              }
              public void mouseExited(java.awt.event.MouseEvent evt) {
                  p1MouseExited(evt);
              }
          });
  
          javax.swing.GroupLayout jPanel33Layout = new javax.swing.GroupLayout(jPanel33);
          jPanel33.setLayout(jPanel33Layout);
          jPanel33Layout.setHorizontalGroup(
              jPanel33Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
              .addGroup(jPanel33Layout.createSequentialGroup()
                  .addContainerGap()
                  .addComponent(p1, javax.swing.GroupLayout.PREFERRED_SIZE, 119, javax.swing.GroupLayout.PREFERRED_SIZE)
                  .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
          );
          jPanel33Layout.setVerticalGroup(
              jPanel33Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
              .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel33Layout.createSequentialGroup()
                  .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                  .addComponent(p1)
                  .addGap(14, 14, 14))
          );
  
          jPanel5.setBackground(new java.awt.Color(0, 64, 128));
          jPanel5.addMouseListener(new java.awt.event.MouseAdapter() {
              public void mouseEntered(java.awt.event.MouseEvent evt) {
                  jPanel5MouseEntered(evt);
              }
              public void mouseExited(java.awt.event.MouseEvent evt) {
                  jPanel5MouseExited(evt);
              }
              public void mousePressed(java.awt.event.MouseEvent evt) {
                  jPanel5MousePressed(evt);
              }
          });
  
          b5.setFont(new java.awt.Font("Segoe UI", 1, 16)); // NOI18N
          b5.setForeground(new java.awt.Color(255, 255, 255));
          b5.setText("Show TimeTable");
  
          javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
          jPanel5.setLayout(jPanel5Layout);
          jPanel5Layout.setHorizontalGroup(
              jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
              .addGroup(jPanel5Layout.createSequentialGroup()
                  .addContainerGap()
                  .addComponent(b5, javax.swing.GroupLayout.PREFERRED_SIZE, 136, javax.swing.GroupLayout.PREFERRED_SIZE)
                  .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
          );
          jPanel5Layout.setVerticalGroup(
              jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
              .addGroup(jPanel5Layout.createSequentialGroup()
                  .addContainerGap()
                  .addComponent(b5)
                  .addContainerGap(16, Short.MAX_VALUE))
          );
  
          Hide1.setBackground(new java.awt.Color(0, 64, 128));
          Hide1.setPreferredSize(new java.awt.Dimension(120, 40));
          Hide1.addMouseListener(new java.awt.event.MouseAdapter() {
              public void mouseClicked(java.awt.event.MouseEvent evt) {
                  Hide1MouseClicked(evt);
              }
              public void mouseEntered(java.awt.event.MouseEvent evt) {
                  Hide1MouseEntered(evt);
              }
              public void mouseExited(java.awt.event.MouseEvent evt) {
                  Hide1MouseExited(evt);
              }
              public void mousePressed(java.awt.event.MouseEvent evt) {
                  Hide1MousePressed(evt);
              }
          });
  
          jLabel15.setFont(new java.awt.Font("Segoe UI", 1, 16)); // NOI18N
          jLabel15.setForeground(new java.awt.Color(255, 255, 255));
          jLabel15.setText("Hide");
  
          javax.swing.GroupLayout Hide1Layout = new javax.swing.GroupLayout(Hide1);
          Hide1.setLayout(Hide1Layout);
          Hide1Layout.setHorizontalGroup(
              Hide1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
              .addGroup(Hide1Layout.createSequentialGroup()
                  .addGap(51, 51, 51)
                  .addComponent(jLabel15, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)
                  .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
          );
          Hide1Layout.setVerticalGroup(
              Hide1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
              .addGroup(Hide1Layout.createSequentialGroup()
                  .addContainerGap()
                  .addComponent(jLabel15)
                  .addContainerGap(15, Short.MAX_VALUE))
          );
  
          javax.swing.GroupLayout MainMenuLayout = new javax.swing.GroupLayout(MainMenu);
          MainMenu.setLayout(MainMenuLayout);
          MainMenuLayout.setHorizontalGroup(
              MainMenuLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
              .addGroup(MainMenuLayout.createSequentialGroup()
                  .addContainerGap(56, Short.MAX_VALUE)
                  .addGroup(MainMenuLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                      .addComponent(stdprofile, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                      .addComponent(jPanel35, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                      .addComponent(jPanel33, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                      .addComponent(deletecourse, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                      .addComponent(addcourse, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                      .addComponent(jPanel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                      .addComponent(Hide1, javax.swing.GroupLayout.DEFAULT_SIZE, 148, Short.MAX_VALUE))
                  .addContainerGap(83, Short.MAX_VALUE))
          );
          MainMenuLayout.setVerticalGroup(
              MainMenuLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
              .addGroup(MainMenuLayout.createSequentialGroup()
                  .addGap(27, 27, 27)
                  .addComponent(stdprofile, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                  .addComponent(addcourse, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)
                  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                  .addComponent(deletecourse, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                  .addComponent(jPanel33, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)
                  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                  .addComponent(jPanel35, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                  .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                  .addComponent(Hide1, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)
                  .addContainerGap(111, Short.MAX_VALUE))
          );
  
          exit.setBackground(new java.awt.Color(0, 64, 128));
          exit.setForeground(new java.awt.Color(255, 255, 255));
          exit.setPreferredSize(new java.awt.Dimension(120, 40));
          exit.addMouseListener(new java.awt.event.MouseAdapter() {
              public void mouseEntered(java.awt.event.MouseEvent evt) {
                  exitMouseEntered(evt);
              }
              public void mouseExited(java.awt.event.MouseEvent evt) {
                  exitMouseExited(evt);
              }
              public void mousePressed(java.awt.event.MouseEvent evt) {
                  exitMousePressed(evt);
              }
          });
  
          jLabel16.setBackground(new java.awt.Color(255, 255, 255));
          jLabel16.setFont(new java.awt.Font("Segoe UI", 1, 18)); // NOI18N
          jLabel16.setForeground(new java.awt.Color(255, 255, 255));
          jLabel16.setText("Exit");
  
          javax.swing.GroupLayout exitLayout = new javax.swing.GroupLayout(exit);
          exit.setLayout(exitLayout);
          exitLayout.setHorizontalGroup(
              exitLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
              .addGroup(exitLayout.createSequentialGroup()
                  .addContainerGap()
                  .addComponent(jLabel16, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)
                  .addContainerGap(43, Short.MAX_VALUE))
          );
          exitLayout.setVerticalGroup(
              exitLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
              .addGroup(exitLayout.createSequentialGroup()
                  .addContainerGap()
                  .addComponent(jLabel16)
                  .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
          );
  
          jLabel2.setIcon(new javax.swing.ImageIcon("C:\\Users\\ahmed\\OneDrive\\Desktop\\download-removebg-preview (1) - Copy.png")); // NOI18N
  
          javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
          jPanel1.setLayout(jPanel1Layout);
          jPanel1Layout.setHorizontalGroup(
              jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
              .addGroup(jPanel1Layout.createSequentialGroup()
                  .addComponent(MainMenu, javax.swing.GroupLayout.PREFERRED_SIZE, 287, javax.swing.GroupLayout.PREFERRED_SIZE)
                  .addGap(34, 34, 34)
                  .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                      .addComponent(exit, javax.swing.GroupLayout.DEFAULT_SIZE, 94, Short.MAX_VALUE)
                      .addComponent(menu, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 123, Short.MAX_VALUE)
                  .addComponent(jLabel2)
                  .addGap(33, 33, 33))
          );
          jPanel1Layout.setVerticalGroup(
              jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
              .addComponent(MainMenu, javax.swing.GroupLayout.DEFAULT_SIZE, 476, Short.MAX_VALUE)
              .addGroup(jPanel1Layout.createSequentialGroup()
                  .addGap(15, 15, 15)
                  .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                      .addGroup(jPanel1Layout.createSequentialGroup()
                          .addComponent(menu, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                          .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                          .addComponent(exit, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE))
                      .addComponent(jLabel2))
                  .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
          );
  
          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, 721, Short.MAX_VALUE)
          );
          layout.setVerticalGroup(
              layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
              .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 476, Short.MAX_VALUE)
          );
  
          pack();
      }// </editor-fold>//GEN-END:initComponents
  
      private void jPanel5MouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jPanel5MouseEntered
          // TODO add your handling code here:
          b5.setForeground(new java.awt.Color(0, 64, 128));
      }//GEN-LAST:event_jPanel5MouseEntered
  
      private void jPanel5MouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jPanel5MouseExited
          // TODO add your handling code here:
          b5.setForeground(Color.WHITE);
      }//GEN-LAST:event_jPanel5MouseExited
  
      private void menuMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_menuMouseClicked
  
      }//GEN-LAST:event_menuMouseClicked
  
      private void menuMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_menuMouseEntered
          // TODO add your handling code here:
          e2.setForeground(new java.awt.Color(173, 216, 230));
  
      }//GEN-LAST:event_menuMouseEntered
  
      private void menuMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_menuMouseExited
          // TODO add your handling code here:
          e2.setForeground(Color.WHITE);
      }//GEN-LAST:event_menuMouseExited
  
      private void menuMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_menuMousePressed
  
          MainMenu.setVisible(true);
  
      }//GEN-LAST:event_menuMousePressed
  
      private void exitMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_exitMouseEntered
          // TODO add your handling code here:
          jLabel16.setForeground(new java.awt.Color(173, 216, 230));
      }//GEN-LAST:event_exitMouseEntered
  
      private void exitMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_exitMouseExited
          // TODO add your handling code here:
          jLabel16.setForeground(Color.WHITE);
      }//GEN-LAST:event_exitMouseExited
  
      private void exitMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_exitMousePressed
          Login x = null;
          try {
              x = new Login();
          } catch (SQLException ex) {
              Logger.getLogger(StudentPage.class.getName()).log(Level.SEVERE, null, ex);
          }
          x.setVisible(true);
          x.setLocationRelativeTo(null);//center
          this.dispose();
  
      }//GEN-LAST:event_exitMousePressed
  
      private void jLabel14MouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel14MouseEntered
          // TODO add your handling code here:
          jLabel14.setForeground(new java.awt.Color(0, 64, 128));
      }//GEN-LAST:event_jLabel14MouseEntered
  
      private void jLabel14MouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel14MouseExited
          // TODO add your handling code here:
          jLabel14.setForeground(Color.WHITE);
      }//GEN-LAST:event_jLabel14MouseExited
  
      private void stdprofileMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_stdprofileMouseEntered
          // TODO add your handling code here:
          jLabel14.setForeground(new java.awt.Color(0, 64, 128));
      }//GEN-LAST:event_stdprofileMouseEntered
  
      private void stdprofileMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_stdprofileMouseExited
          // TODO add your handling code here:
          jLabel14.setForeground(Color.WHITE);
      }//GEN-LAST:event_stdprofileMouseExited
  
      private void Hide1MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_Hide1MouseClicked
          // TODO add your handling code here:
      }//GEN-LAST:event_Hide1MouseClicked
  
      private void Hide1MouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_Hide1MouseEntered
          // TODO add your handling code here:
          jLabel15.setForeground(new java.awt.Color(0, 64, 128));
      }//GEN-LAST:event_Hide1MouseEntered
  
      private void Hide1MouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_Hide1MouseExited
          // TODO add your handling code here:
          jLabel15.setForeground(Color.WHITE);
      }//GEN-LAST:event_Hide1MouseExited
  
      private void Hide1MousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_Hide1MousePressed
          // TODO add your handling code here:
          MainMenu.setVisible(false);
          e2.setVisible(true);
      }//GEN-LAST:event_Hide1MousePressed
  
      private void addcourseMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_addcourseMouseEntered
          // TODO add your handling code here:
          a3.setForeground(new java.awt.Color(0, 64, 128));
      }//GEN-LAST:event_addcourseMouseEntered
  
      private void addcourseMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_addcourseMouseExited
          // TODO add your handling code here:
          a3.setForeground(Color.WHITE);
      }//GEN-LAST:event_addcourseMouseExited
  
      private void deletecourseMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_deletecourseMouseEntered
          // TODO add your handling code here:
          a2.setForeground(new java.awt.Color(0, 64, 128));
      }//GEN-LAST:event_deletecourseMouseEntered
  
      private void deletecourseMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_deletecourseMouseExited
          // TODO add your handling code here:
          a2.setForeground(Color.WHITE);
      }//GEN-LAST:event_deletecourseMouseExited
  
      private void jPanel35MouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jPanel35MouseExited
          // TODO add your handling code here:
          p3.setForeground(Color.WHITE);
      }//GEN-LAST:event_jPanel35MouseExited
  
      private void jPanel35MouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jPanel35MouseEntered
          // TODO add your handling code here:
          p3.setForeground(new java.awt.Color(0, 64, 128));
      }//GEN-LAST:event_jPanel35MouseEntered
  
      private void jPanel33MouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jPanel33MouseExited
          // TODO add your handling code here:
          p1.setForeground(Color.WHITE);
      }//GEN-LAST:event_jPanel33MouseExited
  
      private void jPanel33MouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jPanel33MouseEntered
          // TODO add your handling code here:
          p1.setForeground(new java.awt.Color(0, 64, 128));
  
      }//GEN-LAST:event_jPanel33MouseEntered
  
      private void p1MouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_p1MouseEntered
          // TODO add your handling code here:
          p1.setForeground(new java.awt.Color(0, 64, 128));
      }//GEN-LAST:event_p1MouseEntered
  
      private void p1MouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_p1MouseExited
          // TODO add your handling code here:
          p1.setForeground(Color.WHITE);
  
      }//GEN-LAST:event_p1MouseExited
  
      private void stdprofileMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_stdprofileMousePressed
          // TODO add your handling code here:
      }//GEN-LAST:event_stdprofileMousePressed
  
      private void addcourseMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_addcourseMousePressed
          // TODO add your handling code here:
          AddCourse f = new AddCourse();
          f.setVisible(true);
          f.setLocationRelativeTo(null);//center
          this.dispose();
      }//GEN-LAST:event_addcourseMousePressed
  
      private void deletecourseMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_deletecourseMousePressed
          // TODO add your handling code here:
          DeleteCourse f = new DeleteCourse();
          f.setVisible(true);
          f.setLocationRelativeTo(null);//center
          this.dispose();
      }//GEN-LAST:event_deletecourseMousePressed
  
      private void jPanel33MousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jPanel33MousePressed
          // TODO add your handling code here:
          AddSection f = new AddSection();
          f.setVisible(true);
          f.setLocationRelativeTo(null);//center
          this.dispose();
      }//GEN-LAST:event_jPanel33MousePressed
  
      private void jPanel35MousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jPanel35MousePressed
          // TODO add your handling code here:
          DeleteSection f = new DeleteSection();
          f.setVisible(true);
          f.setLocationRelativeTo(null);//center
          this.dispose();
      }//GEN-LAST:event_jPanel35MousePressed
  
      private void jPanel5MousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jPanel5MousePressed
          // TODO add your handling code here:
      }//GEN-LAST:event_jPanel5MousePressed
  
      /**
       * @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(StudentPage.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
          } catch (InstantiationException ex) {
              java.util.logging.Logger.getLogger(StudentPage.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
          } catch (IllegalAccessException ex) {
              java.util.logging.Logger.getLogger(StudentPage.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
          } catch (javax.swing.UnsupportedLookAndFeelException ex) {
              java.util.logging.Logger.getLogger(StudentPage.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 StudentPage().setVisible(true);
              }
          });
      }
  
      // Variables declaration - do not modify//GEN-BEGIN:variables
      private javax.swing.JPanel Hide1;
      private javax.swing.JPanel MainMenu;
      private javax.swing.JLabel a2;
      private javax.swing.JLabel a3;
      private javax.swing.JPanel addcourse;
      private javax.swing.JLabel b5;
      private javax.swing.JPanel deletecourse;
      private javax.swing.JLabel e2;
      private javax.swing.JPanel exit;
      private javax.swing.JLabel jLabel14;
      private javax.swing.JLabel jLabel15;
      private javax.swing.JLabel jLabel16;
      private javax.swing.JLabel jLabel2;
      private javax.swing.JPanel jPanel1;
      private javax.swing.JPanel jPanel33;
      private javax.swing.JPanel jPanel35;
      private javax.swing.JPanel jPanel5;
      private javax.swing.JPanel menu;
      private javax.swing.JLabel p1;
      private javax.swing.JLabel p3;
      private javax.swing.JPanel stdprofile;
      // End of variables declaration//GEN-END:variables
  }
  