private JComboBox createNumberOfThreadsSelection(JPanel panel, Settings settings) {
        JLabel numberOfThreadsText = new JLabel("Number of threads to use");
        panel.add(numberOfThreadsText);

        String[] numberOfThreads = new String[16];
        for (int i = 0; i < numberOfThreads.length; i++) {
            numberOfThreads[i] = Integer.toString(i + 1);
        }
        JComboBox numberOfThreadsList = new JComboBox(numberOfThreads);
        numberOfThreadsList.setSelectedIndex(settings.getNumberOfThreads() - 1);
        panel.add(numberOfThreadsList);

        return numberOfThreadsList;
    }