本文介绍了我为此做托盘,但希望能够做到这一点,为此给我代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Q1.创建一个充当客户端的移动GUI,如下图1所示.创建一个Server类并使用RMI/Remoting提供以下功能:

ü当用户输入号码,然后单击添加联系人"按钮时,将提示用户输入姓名,当用户输入姓名时,姓名和号码应发送到服务器.

ü服务器将名称和号码插入"contactList_yourId"表中.

ü如果用户未输入数字,则应向用户显示相应的消息,如图2所示.

ü当用户输入号码并单击呼叫"按钮时

该号码应发送到服务器.服务器搜索数据库并返回适当的响应:

例如. 打来…….如果表中不存在该号码,则应返回9456633233"(contactList_yourId"

例如,如果表中存在号码和对应的名称,则应返回"Calling….mscst".

ü当用户单击结束"按钮时,呼叫持续时间将显示在屏幕上.通话时长和号码将发送到服务器.

ü服务器将记录插入到表中:"Call_Log_yourid".

ü当用户单击"C"按钮时,应清除移动设备的屏幕.

Q1. Create a Mobile GUI which acts as a client as shown in the Figure1 below. Create a Server class and using the RMI/Remoting, which provides the following functionalities:

ü When the user enters a number and then clicks on "Add contact" button, the user should be prompted to enter the Name, when the user enters the name, the name and number should be sent to the Server.

ü The server will insert the name and number in a table "contactList_yourId".

ü If the user has not entered a number the appropriate message should be displayed to the user as shown in figure 2.

ü When the user enters a number and Clicks on the "Call" Button

The number should be sent to the server. The server searches the database and returns an appropriate response:

Eg. "Calling…. 9456633233" should be returned, if the number does not exist in the table(contactList_yourId"

Eg."Calling….mscst" should be returned, if the number and corresponding name exists in the table.

ü When the user clicks on the End button the Call Duration is displayed on the screen. The Call duration and Number is sent to the server.

ü The server inserts the record into the table: "Call_Log_yourid".

ü When the user clicks on the "C" button the screen of the mobile should be cleared.

推荐答案


这篇关于我为此做托盘,但希望能够做到这一点,为此给我代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-28 09:47