content.add(box,BorderLayout.SOUTH);
content.add(panel,BorderLayout.SOUTH);
	public LoginDialog(View view, String host, String user, String password)	{		super(view,jEdit.getProperty("login.title"),true);		this.view = view;		JPanel content = new JPanel(new BorderLayout());		content.setBorder(new EmptyBorder(12,6,12,9));		setContentPane(content);		JLabel label = new JLabel(jEdit.getProperty(			"login.caption",new String[] { host }));		label.setBorder(new EmptyBorder(0,6,3,0));		content.add(BorderLayout.NORTH,label);		JPanel panel = createFieldPanel(user,password);		content.add(BorderLayout.CENTER,panel);		Box box = new Box(BoxLayout.X_AXIS);		box.add(Box.createGlue());		ok = new JButton(jEdit.getProperty("common.ok"));		ok.addActionListener(this);		getRootPane().setDefaultButton(ok);		box.add(ok);		box.add(Box.createHorizontalStrut(6));		cancel = new JButton(jEdit.getProperty("common.cancel"));		cancel.addActionListener(this);		box.add(cancel);		box.add(Box.createGlue());		content.add(box,BorderLayout.SOUTH);		GUIUtilities.requestFocus(this,(user == null ? userField			: passwordField));		pack();		setLocationRelativeTo(view);		show();	}