private void initConfigPanel(JFrame parent) {
   JPanel configPanel = new JPanel(new GridLayout(0, 1));
   configPanel.setBorder(new EmptyBorder(10, 10, 10, 10));
   getContentPane().add(configPanel, BorderLayout.CENTER);
   for (int i = 0; i < PROPERTIES.getPopularPhrases().length; i++) {
     configPanel.add(createPopularPhrasePanel(i));
   }
 }
 private void saveConfiguration() {
   for (int i = 0; i < PROPERTIES.getPopularPhrases().length; i++) {
     PROPERTIES.setPopularPhrase(textFields.get(i).getText().trim(), i);
   }
 }