附近其父
答
你可以这样做:
JDialog.setLocation(parent.getX() + parent.getWidth(), parent.getY() + parent.getHeight() - (parent.getHeight()/2 + JDialog.getHeight()/2));
答