Home : Course Map : Chapter 15 :
Demonstration Client Applet for the Experiment Simulation
JavaTech
Course Map
Chapter 15

Client/ServerDesign
Processing Steps
Data Server
Run Data Server
    Demo 1
Data Client
DataClient Applet
    Demo 2
Client/Server Sim
SimServer
    Demo 3
SimClient
Run SimClient
    Demo 4
Exercises

     About JavaTech
     Codes List
     Exercises
     Feedback
     References
     Resources
     Tips
     Topic Index
     Course Guide
     What's New

The applet below, which can also run as an application, works with the application SimServer, which must be started separately as an application. See the previous page : Client for Experiment Simulation for a discussion of the applet's code.

Note that this applet will generate a security exception when it attempts to open a socket to the SimServer unless the machine from which it is downloaded happens to be running the server. (Also, the host address would need to be changed to the address of the host from which the applet was downloaded.)

For your own experimentation, you should download the files for both the client and server to your machine. Then compile and run them locally. You can use the host address 127.0.0.1 to point to the local server.


SimClient Running as an Applet

SimClient.java

See SimClient page for a discussion of the code and the code listings.

 

Latest update: Dec. 11, 2004

  
  Part I Part II Part III
Java Core 1  2  3  4  5  6  7  8  9  10  11  12 13 14 15 16 17
18 19 20
21
22 23 24
Supplements

1  2  3  4  5  6  7  8  9  10  11  12

Tech 1  2  3  4  5  6  7  8  9  10  11  12
Physics 1  2  3  4  5  6  7  8  9  10  11  12

Java is a trademark of Sun Microsystems, Inc.