public FromComboBox() {
   // TODO Auto-generated constructor stub
   initComponents();
   preferenceModel = PreferenceModel.getInstance();
   String fromLangString = preferenceModel.getFromLanguage().name();
   this.setSelectedItem(fromLangString);
   this.addActionListener(
       new ActionListener() {
         @Override
         public void actionPerformed(ActionEvent e) {
           // TODO Auto-generated method stub
           fromComboBoxActionPerformed(e);
         }
       });
 }
 protected void fromComboBoxActionPerformed(ActionEvent e) {
   // TODO Auto-generated method stub
   String fromLangString = this.getSelectedItem().toString();
   preferenceModel.setFromLanguage(Language.valueOf(fromLangString));
 }