private View createNewLangView(){
  JPlagCreator.showMessageDialog(Messages.getString("Preferences.New_language_setting"),Messages.getString("Preferences.New_language_setting_DESC"));
  view.dispose();
  view.destroy();
  view=null;
  System.gc();
  atujplag.updateServerInfo(this);
  View mainWindow=new View(atujplag);
  mainWindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  mainWindow.pack();
  mainWindow.setLocationRelativeTo(null);
  mainWindow.setVisible(true);
  return mainWindow;
}

private View createNewLangView ( ) { JPlagCreator . showMessageDialog ( Messages . getString ( "Preferences.New_language_setting" ) , Messages . getString ( "Preferences.New_language_setting_DESC" ) ) ; view . dispose ( ) ; view . destroy ( ) ; view = null ; System . gc ( ) ; atujplag . updateServerInfo ( this ) ; View mainWindow = new View ( atujplag ) ; mainWindow . setDefaultCloseOperation ( JFrame . EXIT_ON_CLOSE ) ; mainWindow . pack ( ) ; mainWindow . setLocationRelativeTo ( null ) ; mainWindow . setVisible ( true ) ; return mainWindow ; }
creates a new view object and destroys the old one because of a language change
