public InterfaceSelector(InterfaceSelectorReceiver callbackHandler) throws SocketException
	{
		setDefaultCloseOperation(EXIT_ON_CLOSE);
		
		this.callbackHandler = callbackHandler;
		
		ButtonGroup buttons = new ButtonGroup();
		setLayout(new GridLayout(0,1));
		setSize(100, 500);
		Enumeration<NetworkInterface> interfacelist = NetworkInterface.getNetworkInterfaces();
		while ( interfacelist.hasMoreElements() )
		{
			NetworkInterface thisInterface = interfacelist.nextElement();
			JRadioButton button = new JRadioButton(thisInterface.getName());
			buttons.add(button);
			add(button);
			buttonlist.add(button);
		}
		Button okButton = new Button("OK");
		okButton.addActionListener(this);
		add(okButton);
		setVisible(true);
	}