private void createAdditionalCustomers(int seatsRemaining, int numberOfSeats, Customer customer, String travellerNames, String nameOfSeats, int flightID, String flight) {
          
        JPanel cusInputWest = new JPanel(new GridLayout(0,1));
        JPanel cusInputEast = new JPanel(new GridLayout(0,1));
        
        //Creates as many textfields as there are remaining seats.
        JTextField[] additionalCustomerNames = new JTextField[seatsRemaining];
        for(int j = 0; j<seatsRemaining; j++) {
            
            JTextField name = new JTextField("Full name");
            additionalCustomerNames[j] = name;
            
            if(j%2 == 0) {
            cusInputWest.add(new JLabel("Traveller" + (j+1)+":"));
            cusInputWest.add(name);
            }
            else {
                cusInputEast.add(new JLabel("Traveller" + (j+1)+":"));
                cusInputEast.add(name);
            }
 
        }
        //Adds the potentially two rows or name textfields to the window, and adds an empty panel for spacing.
        JPanel cusInput = new JPanel(new GridLayout(0,3));
        cusInput.add(cusInputWest);
        cusInput.add(new JPanel());
        cusInput.add(cusInputEast);
        
        //Makes the window with the textfields and OK and CANCEL buttons.
        JOptionPane inputDialog = new JOptionPane();
        int cusResult = inputDialog.showConfirmDialog(frame, cusInput, "Additional Travellers Names", inputDialog.OK_CANCEL_OPTION);
        if(cusResult == inputDialog.YES_OPTION) {
            
            //If any of the textfields havent been filled out properly, you will receive an error
            //bceAUSE anyError will be over 0.
            int anyErrors = 0;
            for(int k = 0; k<additionalCustomerNames.length; k++) {
                if(additionalCustomerNames[k].getText().equals("Full name") == true || additionalCustomerNames[k].getText().equals(null) == true || additionalCustomerNames[k].getText().equals("") == true) {
                anyErrors++;
                }
            }
            if(anyErrors > 0) {
                JOptionPane errorDialog = new JOptionPane();
                errorDialog.showMessageDialog(null, "Error! all the inputs were not names!");
                createAdditionalCustomers(seatsRemaining, numberOfSeats, customer, travellerNames, nameOfSeats, flightID, flight);
                anyErrors = 0;   
            }
            
            //For each traveller, the traveller's name is added to the string from createCustomer.
            for(int k = 0; k<additionalCustomerNames.length; k++) {
               travellerNames = travellerNames+(additionalCustomerNames[k].getText())+", ";
            }
            makeOrder(travellerNames, customer, nameOfSeats, numberOfSeats, flightID, flight);
        }
    }