| Networking     Use the starter code here.   Notes: 
  This is not a JApplet (cant do networking in an applet) but a similar class to JFrame called WatcherFrame so we extend that.I didnt implement runnable, but you couldone new method receiveUpdate
    
      Receive update will get called when you have received an update [note it receives an object, even if it might be a Dog, or whatever-> so you will need to cast it; ie (Dog d = (Dog)b;]to send an update
    
  There are several ways to start this:
    
      startServerAndClientjustApp -just the app as a standalonestartServerstartClient DISREGARD *****************************In a bluej project, you will need to import the library for networking here.                 (save it, then go to bluej, preferences, library, import it.).  |