Thursday, January 19, 2012

Center dialog relatively to frame

            // Always pack before using setLocationRelativeTo
            myDialog.dialog.pack();
            myDialog.dialog.setLocationRelativeTo(frame);