public void showPreferences(){
  if (preferencesStage == null) {
    preferencesStage=initStage(PREFERENCES_LAYOUT,"Preferences");
    PreferencesController preferencesController=(PreferencesController)controllers.get(PREFERENCES_LAYOUT);
    preferencesStage.setOnShowing(null);
  }
  showStage(preferencesStage);
}

public void showPreferences ( ) { if ( preferencesStage == null ) { preferencesStage = initStage ( PREFERENCES_LAYOUT , "Preferences" ) ; PreferencesController preferencesController = ( PreferencesController ) controllers . get ( PREFERENCES_LAYOUT ) ; preferencesStage . setOnShowing ( null ) ; } showStage ( preferencesStage ) ; }
shows the preferences window
