List of usage examples for java.awt Dialog getOwner
public Window getOwner()
From source file:Main.java
public static void centerInOwner(Dialog dialog) { Container parent = dialog.getOwner(); if (parent != null && parent.isShowing()) centerInParent(dialog, dialog.getParent()); else/*from w ww . j a v a 2 s . c o m*/ center(dialog); }