×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Text
Posted by: sumesh tg
Added: Nov 10, 2016 11:56 AM
Views: 1
  1.         Stage stageParent = (Stage) btnSaveSend.getScene().getWindow();
  2.                     stageParent.hide();
  3.                     secondStage.setOnHiding(new EventHandler<WindowEvent>() {
  4.                         @Override
  5.                         public void handle(WindowEvent event) {
  6.                             stageParent.show();
  7.                         }
  8.                     });
  9.                     secondStage.show();