panel.add(ok);
box.add(ok); box.add(Box.createHorizontalStrut(6));
	public LoginDialog(View view, String host, String user, String password)	{		super(view,jEdit.getProperty("login.title"),true);		this.view = view;		Container content = getContentPane();		content.add(BorderLayout.NORTH,new JLabel(jEdit.getProperty(			"login.caption",new String[] { host })));		JPanel panel = new JPanel(new GridLayout(2,2));		panel.add(new JLabel(jEdit.getProperty("login.user")));		userField = new JTextField(user);		panel.add(userField);		panel.add(new JLabel(jEdit.getProperty("login.password")));		passwordField = new JPasswordField(password);		panel.add(passwordField);		content.add(BorderLayout.CENTER,panel);		panel = new JPanel();		ok = new JButton(jEdit.getProperty("common.ok"));		ok.addActionListener(this);		getRootPane().setDefaultButton(ok);		panel.add(ok);		cancel = new JButton(jEdit.getProperty("common.cancel"));		cancel.addActionListener(this);		panel.add(cancel);		content.add(panel, BorderLayout.SOUTH);		GUIUtilities.requestFocus(this,(user == null ? userField			: passwordField));		pack();		setLocationRelativeTo(view);		show();	}