public LoginFrame(DB database) {
		super("¼");
		this.database = database;

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

		nameField = new JTextField(20);
		passwordField = new JPasswordField(20);

		// ¼:JLabel+JTextField
		JLabel label = new JLabel("¼:");
		layout.setConstraints(label, c);
		add(label);
		c.gridwidth = GridBagConstraints.REMAINDER;
		c.gridx = GridBagConstraints.RELATIVE;
		layout.setConstraints(nameField, c);
		add(nameField);

		// ¼:JLabel+JPasswordField
		label = new JLabel(":");
		c.gridx = GridBagConstraints.RELATIVE;
		c.gridwidth = 1;
		layout.setConstraints(label, c);
		add(label);
		c.gridwidth = GridBagConstraints.REMAINDER;
		layout.setConstraints(passwordField, c);
		add(passwordField);

		// ¼ť
		JButton button = new JButton("¼");
		button.addActionListener(this);
		this.getRootPane().setDefaultButton(button);
		layout.setConstraints(button, c);
		add(button);

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