setLocationByPlatform(true);
    private void initialize() {        //setResizable(false);        setModal(true);        setSize(500, 380);        setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);        clpText = new ClipboardPopup();        setContentPane(getjContentPane());                getRootPane().setDefaultButton(buttonOK);        setLocationByPlatform(true);    }