private void addAdditionalTravellers(int seats, String nameOfSeats, int customerID) {
          
        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[] additionalTravellersNames = new JTextField[seats];
        for(int j = 0; j<seats; j++) {
            
            JTextField name = new JTextField("Full name");
            additionalTravellersNames[j] = name;
            
            //Adds the textfields to two rows.
            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);
            }
 
        }
        JPanel cusInput = new JPanel(new GridLayout(0,3));
        cusInput.add(cusInputWest);
        cusInput.add(new JPanel());
        cusInput.add(cusInputEast);
        
        JOptionPane inputDialog = new JOptionPane();
        int cusResult = inputDialog.showConfirmDialog(gui.returnFrame(), cusInput, "Additional Travellers Names", inputDialog.OK_CANCEL_OPTION);
        if(cusResult == inputDialog.YES_OPTION) {
            
            for(int k = 0; k<additionalTravellersNames.length; k++) {
                if(additionalTravellersNames[k].getText() == "Full name") {
                    JOptionPane errorDialog = new JOptionPane();
                    errorDialog.showMessageDialog(null, "Error! all the inputs were not names!");
                    addAdditionalTravellers(seats, nameOfSeats, customerID);
                }
            }
            try {
                //For each traveller, the traveller's name is added to the string existing names string on the order.
                Order order = new Order(database, customerID);
                Flight flight = new Flight(database, order.getFlight());
                int bookedSeatsTotal = flight.getBookedSeats() + seats;
                String travellerNames = order.getName();
                
                String originalNameOfSeats = order.getSeat();
                nameOfSeats = originalNameOfSeats + nameOfSeats;
            
            for(int k = 0; k<additionalTravellersNames.length; k++) {
               travellerNames = travellerNames+(additionalTravellersNames[k].getText())+", ";
               
               database.execute("UPDATE Orders SET namestring = '" + travellerNames + "' WHERE customerID = " + customerID); 
               database.execute("UPDATE Orders SET seatstring = '" + nameOfSeats + "' WHERE customerID = " + customerID);
               database.execute("UPDATE Flights SET bookedseats = " + bookedSeatsTotal + " WHERE id = " + order.getFlight());
               seatsDialog.dispose();
            }
            
            } catch (SQLException ex) {
                System.out.println("An error occured! Exception: " + ex);
            }
        }
    }