Skip to content

Commit

Permalink
fix child windows appearing behind parent
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswhocodes committed Jan 16, 2022
1 parent 6de60cb commit f299017
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ public void handle(ActionEvent e)
if (openVMLCStage == null)
{
openVMLCStage = new VMLanguageConfigStage(VMLanguageList.this, config, lang);

StageManager.addAndShow(parent, openVMLCStage, VMLanguageList.this);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,10 @@ public void handle(WindowEvent arg0)

childStage.setX(childX);
childStage.setY(childY);

childStage.requestFocus();

childStage.toFront();
}

public static EventHandler<ActionEvent> getCloseHandler(final Stage stage)
Expand Down

0 comments on commit f299017

Please sign in to comment.