/** UpdateThread is used to read PDUs from the BehaviorStreamBuffer class and update the display of PDU lists on the screen. This is a bare-bones class that basically just calls a method in the main AwtPduViewer applet class. It's just a way to kick off a thread.

HISTORY

11Apr97 DMcG New

@author Don McGregor (http://www.npsnet.org/~mcgredo)

@version 1.0 @see AwtPduViewer */ package mil.navy.nps.awt; import java.lang.Thread; public class UpdateThread extends Thread { private AwtPduViewer viewer; // pointer back to the thing we're updating public UpdateThread(AwtPduViewer pViewer) { viewer = pViewer; // set this up to be a daemon thread, vs. a user thread. This lets the // app terminate nicely when the main thread is killed. this.setDaemon(true); return; } public void run() { // calls an endlessly looping screen update in the applet viewer viewer.updateDisplay(); System.out.println("exiting screen update thread"); } }