@Override
    public void windowOpened(WindowEvent e) {
        if (e.getID() == WindowEvent.WINDOW_OPENED) {
            this.setLocationRelativeTo(null);
            this.setVisible(true);
        }
    }