constr.gridwidth = GridBagConstraints.REMAINDER;
constr.anchor = GridBagConstraints.WEST;
add(new Label("The server would like to set the following cookie:"), constr);
Panel p = new Panel();
left_panel = new Panel();
left_panel.setLayout(new GridLayout(4, 1));
left_panel.add(new Label("Name=Value:"));
left_panel.add(new Label("Domain:"));
left_panel.add(new Label("Path:"));
left_panel.add(new Label("Expires:"));
ports_label = new Label("Ports:");
p.add(left_panel);
right_panel = new Panel();
right_panel.setLayout(new GridLayout(4, 1));
right_panel.add(name_value_label = new Label());
right_panel.add(domain_value = new Label());
right_panel.add(path_value = new Label());
right_panel.add(expires_value = new Label());
ports_value = new Label();
p.add(right_panel);
add(p, constr);
secure_note = new Label("This cookie will only be sent over secure connections");
discard_note = new Label("This cookie will be discarded at the end of the session");
c_url_note = new Label("");
comment_label = new Label("Comment:");
comment_value = new TextArea("", 3, 45, TextArea.SCROLLBARS_VERTICAL_ONLY);
comment_value.setEditable(false);
add(new Panel(), constr);
constr.gridwidth = 1;
constr.anchor = GridBagConstraints.CENTER;
constr.weightx = 1.0;
add(default_focus = new Button("Accept"), constr);
default_focus.addActionListener(new Accept());
Button b;
constr.gridwidth = GridBagConstraints.REMAINDER;
add(b = new Button("Reject"), constr);
b.addActionListener(new Reject());
constr.weightx = 0.0;
p = new Separator();
constr.fill = GridBagConstraints.HORIZONTAL;
add(p, constr);
constr.fill = GridBagConstraints.NONE;
constr.anchor = GridBagConstraints.WEST;
add(new Label("Accept/Reject all cookies from a host or domain:"), constr);
p = new Panel();
p.add(new Label("Host/Domain:"));
p.add(domain = new TextField(30));
add(p, constr);
add(new Label("domains are characterized by a leading dot (`.');"), constr);
add(new Label("an empty string matches all hosts"), constr);