private void saveAdditionalSeats(JButton[] button, int flightID, int numberOfSeats, int methodChecker, int customerID) {
        int seats = 0;
        String nameOfSeats = new String();
        
        for(int i = 0; i<button.length; i++) {
            //Checks if the button is clicked and also if it wasnt booked to this order already.
            if(button[i].getBackground() == Color.BLUE && button[i].isEnabled() == true) {
            nameOfSeats = nameOfSeats+((button[i]).getText() + " ");
            seats++;
            }
        }
        //If you havent chosen any seats, you're asked to go back, otherwise it will end the process.
        if(seats == 0) {
            JOptionPane errorDialog = new JOptionPane();
            int errorResult = errorDialog.showConfirmDialog(gui.returnFrame(),"You did not choose any seats,"
                                                            + " do you wish to go back and select seats again?",
                                                            "No seats selected", errorDialog.OK_CANCEL_OPTION);
            if(errorResult == errorDialog.YES_OPTION) {
            flightseat.chooseSeats(flightID, numberOfSeats, flight, methodChecker, customerID);
            }
        }
        //If you have chosen seats, you will be shown how many and which, whereafter it will continue to adding addtional travellers.
        else if(seats > 0) {
            JOptionPane succesDialog = new JOptionPane();
            int succesResult = succesDialog.showConfirmDialog(gui.returnFrame(),"You have chosen: " + seats + " seat(s). Name of chosen seat(s): "+ nameOfSeats,
                                                            "Confirm your choice", succesDialog.OK_CANCEL_OPTION);
            if(succesResult == succesDialog.YES_OPTION) {
                addAdditionalTravellers(seats, nameOfSeats, customerID);
            }
            //If you're not happy with your choice or try to close the window, you're sent back to choosing seats.
            else {
                flightseat.chooseSeats(flightID, numberOfSeats, flight, methodChecker, customerID);
            }
        }
    }