public UsernameSelector(UsernameSelectorReceiver _callback)
	{
		setDefaultCloseOperation(EXIT_ON_CLOSE);
		
		callback = _callback;
		setLayout(new GridLayout(2,1));
		
		JPanel topPanel = new JPanel();
		
		topPanel.setLayout(new GridLayout(1,2));
		topPanel.add(new JLabel("Username:"));
		topPanel.add(username);
		
		add(topPanel);
		
		JButton okButton = new JButton("OK");
		okButton.addActionListener(new ActionListener()
		{
			@Override
			public void actionPerformed(ActionEvent event) {
				String name = username.getText();
				if ( !name.equals("") )
				{
					callback.getUsernameFromUI(name);
					dispose();
				}
			}
			
		});
		add(okButton);
		
		setSize(300,100);
		setVisible(true);
	}