public void itemStateChanged(ItemEvent event)
    {
    if (event.getStateChange() == ItemEvent.SELECTED)
      {
      String fileToRead = (String)comboBox.getSelectedItem();

      if (!comboBox.getSelectedItem().equals(Files.REVERT))
        fileToRead += Files.PRESET_EXTENSION;

      if (FileParser.readFile(fileToRead))
        FileParser.writeFile(Files.CONFIG);
      }
    }