Facebook
From Khrd, 4 Years ago, written in Java.
Embed
Download Paste or View Raw
Hits: 237
  1.         public void changeMeasurementPane(String measurementPaneLocation) {
  2.  
  3.                 FXMLLoader loader = new FXMLLoader(this.getClass().getResource(measurementPaneLocation));
  4.                 StackPane stackPane = null;
  5.                 try {
  6.                         stackPane = loader.load();
  7.  
  8.                 } catch (IOException e) {
  9.  
  10.                         e.printStackTrace();
  11.                 }
  12.                 measurementStackPane.getChildren().clear();
  13.                 measurementStackPane.getChildren().add(stackPane);
  14.         }