AMGWFrame.setLocationRelativeTo(null);
    public void show() {        AMGWFrame.pack();        AMGWFrame.setResizable(false);        AMGWFrame.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);        AMGWFrame.setVisible(true);    }