public static void main(String[] args) {
		DB database = new DB();
		if (database.init()) {// ɹݿ򿪵¼
			LoginFrame frame = new LoginFrame(database);
			frame.setVisible(true);
		} else
			JOptionPane.showMessageDialog(null, "ݿʧ", "",
					JOptionPane.ERROR_MESSAGE);
	}