There is another example program that is similar to your lab project this week. It involves sending objects over a network.
DrawingPanelNetwork