J2ME中文教程 7 开发无线网络应用程序[44]

[入库:2006年2月23日] [更新:2007年3月24日]

本文简介:

            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)

        {

本文关键:J2ME中文教程 7 开发无线网络应用程序
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top