Files in the sample application




  • contains the application's entry point
  • contains the UdpScreen class, which defines the UI
  • contains the fieldChangeListener() implementation that sends or clears the message that the user types when the user clicks the Send key or Clear button or clicks the menu item
  • contains helper methods to perform the above tasks


class that defines the thread that creates the connection and Datagram objects, sends the message that the user types to the server-side connection, and receives and displays the string RECEIVED from the server when the message is received


Java® class that is the server-side application, which receives messages from the client-side application, displays the message, and sends back the string RECEIVED when the server-side application has successfully received the message


DOS script file that compiles and starts the server-side application

Next topic: System requirements
Previous topic: Featured classes

Was this information helpful? Send us your comments.