addDialog.hide();
addDialog.setVisible(false);
    private void okButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_okButtonActionPerformed        String domain = domainTextField.getText();        domainTextField.setBackground("".equals(domain)?Color.RED:Color.WHITE);        String path = pathTextField.getText();        if ("".equals(path)) path = "/";        String name = nameTextField.getText();        nameTextField.setBackground("".equals(name)?Color.RED:Color.WHITE);        String value = valueTextField.getText();        if ("".equals(domain) || "".equals(name)) return;        Cookie cookie = new Cookie(new Date(), name + "=" + value + "; domain=" + domain + "; path="+path);        _logger.info("Cookie is " + cookie);        _model.addCookie(cookie);        addDialog.hide();    }//GEN-LAST:event_okButtonActionPerformed