public JPanel getPanel(){
        final JPanel panel = new JPanel(new BorderLayout());
        panel.setBorder(BorderFactory.createTitledBorder("Reading repetition"));
        // Create items that will be in this JPanel
        //final JCheckBox checkbox = new JCheckBox("Repeat line", isMessagesToBeRepeated);
        //final JSpinner numberSpinner = new JSpinner(new SpinnerNumberModel(numberOfMessagesToBeRepeated.intValue(), 1, 100, 1));
        // Create check box
        checkbox.addItemListener(new ItemListener() {
            @Override
            public void itemStateChanged(ItemEvent e) {
                int state = e.getStateChange();
                // Enable
                if(state == 1) {
                    isMessagesToBeRepeated = true;
                    // If the value is re-enabled - reset the counter to the number in the spinner
                    numberOfMessagesToBeRepeated = (Integer)numberSpinner.getValue();
                }
                // Disable
                if(state == 2) {
                    isMessagesToBeRepeated = false;
                }
            }
        });
        panel.add(checkbox, BorderLayout.WEST);
        // Display input times options
        JPanel panelDisplayMessage = new JPanel(new FlowLayout());
        JLabel label = new JLabel("Display message");
        panelDisplayMessage.add(label);
        //numberSpinner.setEditor(new JSpinner.NumberEditor(numberSpinner, "0000"));
        numberSpinner.addChangeListener(new ChangeListener() {
            @Override
            public void stateChanged(ChangeEvent e) {
                numberOfMessagesToBeRepeated = (Integer)numberSpinner.getValue();
            }
        });
        panelDisplayMessage.add(numberSpinner);
        label = new JLabel("more times");
        panelDisplayMessage.add(label);
        panel.add(panelDisplayMessage, BorderLayout.CENTER);
        // TODO: Move this button outside the repeatReadingLinePanel class - Change from loadPropertiesForClass to LoadPropertiesFromClasses
        // Reload the properties file
        if(GlobalProperties.getInstance().getPropertyAsBoolean("configurationWindow.displayReloadPropertiesButton")){
            final JButton reloadPropertiesFileButton = new JButton("Reload Properties");
            reloadPropertiesFileButton.addActionListener(new ActionListener() {
                @Override
                public void actionPerformed(ActionEvent e) {
                    // Reload changes for this class
                    GlobalProperties.getInstance().loadPropertiesForClass("repeatReadingLinePanel");
                    // Reset variable values
                    numberOfMessagesToBeRepeated = GlobalProperties.getInstance().getPropertyAsInteger("repeatReadingLinePanel.numberOfMessagesToBeRepeated", 3);
                    isMessagesToBeRepeated = GlobalProperties.getInstance().getPropertyAsBoolean("repeatReadingLinePanel.isMessagesToBeRepeated");
                    errorMessage = GlobalProperties.getInstance().getProperty("repeatReadingLinePanel.errorMessage", "Please read the line again");
                    // Make sure that the number of messages is valid
                    if(numberOfMessagesToBeRepeated < 1 || numberOfMessagesToBeRepeated > 100){
                        numberOfMessagesToBeRepeated = 3;
                    }
                    // Display the variable in the GUI
                    numberSpinner.setValue(numberOfMessagesToBeRepeated);
                    checkbox.setSelected(isMessagesToBeRepeated);
                    // If this button was taken away in the 'software.properties' file then reflect it in the GUI
                    if(!GlobalProperties.getInstance().getPropertyAsBoolean("configurationWindow.displayReloadPropertiesButton")){
                        panel.remove(reloadPropertiesFileButton);
                    }
                    // Repaint the GUI in case that the user took this button away
                    frame.repaint();
                }
            });
            panel.add(reloadPropertiesFileButton, BorderLayout.EAST);
        }
        // Return the panel
        return panel;
    }