All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class MyPackage.MyThread

java.lang.Object
   |
   +----java.lang.Thread
           |
           +----MyPackage.MyThread

public class MyThread
extends Thread
This class implements the Thread functionality need for the interface

Version:
1.0
Author:
Vicky Shiv

Variable Index

 o color
Varible to store the Color associated with the Thread
 o parent
Varible to store the Object Reference from which This thread is Invoked

Constructor Index

 o MyThread()
Default Constructor
 o MyThread(MyApplet, Color)
Constructor with two arguments

Method Index

 o run()
Run Method for the Thread

Variables

 o parent
 private MyApplet parent
Varible to store the Object Reference from which This thread is Invoked

 o color
 private Color color
Varible to store the Color associated with the Thread

Constructors

 o MyThread
 public MyThread()
Default Constructor

 o MyThread
 public MyThread(MyApplet obj,
                 Color j)
Constructor with two arguments

Parameters:
MyApplet - Reference to the Applet which call this constructor
Color - Color associated with the Thread

Methods

 o run
 public void run()
Run Method for the Thread

Overrides:
run in class Thread

All Packages  Class Hierarchy  This Package  Previous  Next  Index
1