public void createAndShow() {

		this.setTitle("Login");
		DefaultFormBuilder builder = new DefaultFormBuilder(new FormLayout(""));
		JPanel panel = new JPanel();
		builder.setBorder(BorderFactory.createEmptyBorder(20, 20, 20, 20));
		builder.appendColumn("right:pref");
		builder.append(createLoginPanel());
		builder.nextLine();
		builder.append(createLoginBtnPanel());
		panel.add(builder.getPanel());
		add(panel);
		pack();
		// Get the size of the screen
		Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();

		// Determine the new location of the window
		int w = getSize().width;
		int h = getSize().height;
		int x = (dim.width - w) / 2;
		int y = (dim.height - h) / 2;

		// Move the window
		setLocation(x, y);
		setVisible(true);

	}