protected PasswordDialog(Frame owner, String loginName) {
		super(owner);
		this.setModalityType(ModalityType.DOCUMENT_MODAL);
		this.setTitle("");

		GridBagLayout layout = new GridBagLayout();
		GridBagConstraints c = new GridBagConstraints();
		this.setLayout(layout);

		c.gridwidth = GridBagConstraints.REMAINDER;
		label = new JLabel("" + loginName + "ĵ¼:");
		label.setFont(label.getFont().deriveFont(20.0F));
		label.setForeground(Color.red);
		layout.setConstraints(label, c);
		add(label);

		password = new JPasswordField(20);
		c.gridy = GridBagConstraints.RELATIVE;
		layout.setConstraints(password, c);
		add(password);

		JButton button = new JButton("ȷ");
		button.addActionListener(this);
		this.getRootPane().setDefaultButton(button);
		c.gridheight = GridBagConstraints.REMAINDER;
		layout.setConstraints(button, c);
		add(button);

		this.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
		pack();
	}