this.setVisible(false);
        public void actionPerformed(ActionEvent event) {            if (event.getSource() == applybutton) {                String newName = nameField.getText();                if (newName != null && !(newName.equals(""))) {                    notifyThis.setNameAndAdd(newName);                }                this.setVisible(false);            } else {                this.setVisible(false);            }        }