setLocationRelativeTo « Dialog « Java Swing Q&A





1. Why does JDialog 'jump' on setLocationRelativeTo()?    stackoverflow.com

Have a class that extends JDialog. It's initialized entirely on EDT (just in case). Now,

public PropsDialog (JFrame parentFrame) {
    super(parentFrame);
    // boring
    pack();
 ...