private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton3ActionPerformed
        // TODO add your handling code here:
        if((int)addReservationParkingSpot.getSelectedItem() == 0){addReservationMessage.setText("Check Parking Spot");}
        else if((String) Hours.getSelectedItem() == "Hour"){addReservationMessage.setText("Check Start Time");}
        else if((String) Houre.getSelectedItem() == "Hour"){addReservationMessage.setText("Check End Time");}
        else if((String) month.getSelectedItem() == "Month"){addReservationMessage.setText("Check Month");}
        else if((String) year.getSelectedItem() == "Year"){addReservationMessage.setText("Check Year");}
        else if((String) day.getSelectedItem() == "Day"){addReservationMessage.setText("Check Day");}
        else if((String) addReservationUser.getSelectedItem() == null){addReservationMessage.setText("Check Username");}
        else
        {
        
            Garage gdb = AccessDatabase.readGarageDB();

            gdb.addReserved(new ParkingSession((int)addReservationParkingSpot.getSelectedItem(), Integer.valueOf((String)Hours.getSelectedItem()), Integer.valueOf((String)Houre.getSelectedItem()), Integer.valueOf((String)month.getSelectedItem()), Integer.valueOf((String)day.getSelectedItem()), (int)year.getSelectedIndex()-1, (String) addReservationUser.getSelectedItem()));

            AccessDatabase.writeGarageDB(gdb);

            addReservationMessage.setText("Added Reservation for: " + (String) addReservationUser.getSelectedItem());
            
            Garage gdb1 = AccessDatabase.readGarageDB();

            addReservationParkingSpot.removeAllItems();
            int [] availableSpots2 = gdb1.getAvailable();
            for(int i = 0; i < availableSpots2.length; i++)
            {
            addReservationParkingSpot.addItem(availableSpots2[i]);
            }

        }
    }//GEN-LAST:event_jButton3ActionPerformed