This code comes from David Flanaghan's Java in a Nutshell book and downloaded from O'Reilly to here....
Show Java Server code: Server.java
Other Java Demos @ MU: Other Java Demos @ MU
CS406 tear-off Window test.
Open should open the java window
Close should close (shut down) the java window
The Options should tear off (click on the dotted lines)and do the open and close
This won't do jack, without a Java enabled browser...
This also won't do jack if the Java server is not running on cs.millersv.edu.
To run the Java Server, first, make sure it is not running by doing a ps -ef | grep Server.
If nothing shows up, then type:
%java $JAVAHOME/java/mucs.dir/demos/examples/section7/Server&
which should start up the server....
OR just click on the START SERVER anchor below...
Now we can write Internet games and other Java apps
that send info back and forth.
Server isn't running so: START SERVER