Example #1
0
 private void handleAction() {
   if (xmlLoader.getValue() != null) {
     AbstractGrid newScreen =
         ConfigManager.getAbstractGrid(
             ConfigManager.getString(
                 ConfigManager.scope(this.getClass().getName(), selected.iconName)),
             xmlLoader.getValue());
     nextScreen = newScreen;
   } else {
     Alert uhoh = new Alert(AlertType.ERROR);
     uhoh.setTitle("whoops");
     uhoh.setContentText("please select an XML file");
     uhoh.showAndWait();
   }
 }