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);
constr.anchor = GridBagConstraints.CENTER;
constr.gridwidth = 1;
constr.weightx = 1.0;
add(b = new Button("Accept All"), constr);
b.addActionListener(new AcceptDomain());
constr.gridwidth = GridBagConstraints.REMAINDER;
add(b = new Button("Reject All"), constr);
b.addActionListener(new RejectDomain());
pack();
constr.anchor = GridBagConstraints.WEST;
constr.gridwidth = GridBagConstraints.REMAINDER;