private void loadSettings()
        {
                int settingsLoaded = 0;
                try {
                        BufferedReader reader = new BufferedReader(new FileReader(SETTINGS_FILE));
                        String line;
                        int counter = 0;
                        while(true)
                        {
                                line = reader.readLine();
                                if(line == null || line.equals(SETTINGS_SENTINEL))
                                        break;

                                // Get the values specific to our interface
                                if(counter == SETTINGS_NICK) 
                                {
                                        nickText.setText(line);
                                        settingsLoaded++;
                                }
                                else if(counter == SETTINGS_CHAN)
                                {
                                        chanText.setText(line);
                                        settingsLoaded++;
                                }
                                else if(counter == SETTINGS_PASS)
                                {
                                        passText.setText(line);
                                        settingsLoaded++;
                                }
                                else if(counter == SETTINGS_SERVER)
                                {
                                        serverText.setText(line);
                                        settingsLoaded++;
                                }
                                counter++;
                        }
                        reader.close();
                } catch(IOException e) {
                        e.printStackTrace();
                }
                
                // If we didn't load in a setting, then the settings file is bad and we need to exit the program gracefully.
                if(settingsLoaded != NUM_TEXTBOXES)
                {
                        JOptionPane.showMessageDialog(null, "The settings file is improperly formatted.  There should be " +
                                        Integer.toString(NUM_TEXTBOXES - settingsLoaded) + " additional lines before the end of the file or the " +
                                        SETTINGS_SENTINEL + " character.  Exiting the bot...",
                                        "Improperly formatted settings file", JOptionPane.ERROR_MESSAGE);
                        System.exit(1);
                }
        }