Alert a = new Alert("Server", "Port 5000 is already taken.", null,
AlertType.ERROR);
a.setTimeout(Alert.FOREVER);
a.setCommandListener(this);
display.setCurrent(a);
} catch (Exception e)
{
e.printStackTrace();
}
}
public void commandAction(Command c, Displayable s)
{
if (c == sendCommand && !parent.isPaused())
{
if (address == null)
{
si.setText("No destination address");
} else
{
sender.send(address, tf.getString());
}
}
if (c == Alert.DISMISS_COMMAND)
{