final TransparentLoginPanel pan = Singleton.get().getGuiController()
.displayUserPasswordJPanel();
// get properties initialized from file or by defaut
pan.setServer(System.getProperty(UserPropertiesDAO.SERVER_HOST_PROPERTY)+":"+System.getProperty(UserPropertiesDAO.SERVER_PORT_PROPERTY));
// action that gets executed in the update thread:
pan.addLoginActionListener(new ActionListener(){
@Override
public void actionPerformed(ActionEvent e) {
// this gets executed in jme thread
// do 3d system calls in jme thread only!
// SoundController.getInstance().playOnetime("sound/click.ogg", false, Vector3f.ZERO);