Class Stat_window

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--Stat_window

public class Stat_window
extends java.lang.Thread
implements java.awt.event.ActionListener

Class Stat_window


Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Stat_window(java.awt.Frame f, java.util.Hashtable ht)
          The Constructor takes two arguments.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          The void actionPerformed(ActionEvent e) function is invoked when the User presses the "Ok" button in the statistics window.
 void run()
          The void run() function starts two new threads which calculates the statistics and then shows the statistics in a Dilog window
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Stat_window

public Stat_window(java.awt.Frame f,
                   java.util.Hashtable ht)
The Constructor takes two arguments. The Frame f is the parent frame and The Hashtable ht is the Hashtable from where to read data about participants. This Hashtable should store data about participants.
Method Detail

run

public void run()
The void run() function starts two new threads which calculates the statistics and then shows the statistics in a Dilog window
Overrides:
run in class java.lang.Thread

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
The void actionPerformed(ActionEvent e) function is invoked when the User presses the "Ok" button in the statistics window. This terminates the thread.
Specified by:
actionPerformed in interface java.awt.event.ActionListener