June 1999
Intermediate to advanced
368 pages
8h 21m
English
In this section we are going to take the ChannelWriter and ChannelReader applets one step further and create a simple “chat” applet by combining their functionality. Doing so requires only a few changes to our existing code.
We are going to call our new applet ChannelChat. The ChannelChat applet's user interface, shown in Figure 5.4, is a combination of the ChannelReader and ChannelWriter user interfaces. ChannelChat provides text fields for entering a channel and a message, a “Send” button for adding messages to the channel, and a “Read” button to start reading the channel. It also provides an output area where channel messages are displayed.
Read now
Unlock full access