Biblioteca Java - Blame information for rev 28

Subversion Repositories:
Rev:
Rev Author Line No. Line
28 mihai 1 /*
2  * AppTest.java
3  */
4 package exemple.fire.priority;
5  
6 import java.awt.Dimension;
7 import java.util.Vector;
8  
9 import javax.swing.JApplet;
10  
11 /**
12  * Class created by @author Mihai HULEA at Feb 22, 2005.
13  *
14  * This class is part of the labs project.
15  *
16  * Programul ilustreaza modul in care poate fi setata prioritatea unui thread.
17  *
18  * 1. Construiti un fisier HTML pentru lansarea in executie a appletului.
19  *
20  * 2. Executati applet-ul
21  *
22  */
23 public class AppTest extends JApplet {
24  
25     Vector v = new Vector();
26  
27     public void init(){
28         PriorityTest pt  = new PriorityTest(1,1, this.getGraphics());
29         pt.start();
30         v.add(pt);
31  
32         pt = new PriorityTest(10,3, this.getGraphics());
33         pt.start();
34         v.add(pt);    
35  
36         pt = new PriorityTest(20,5, this.getGraphics());
37         pt.start();
38         v.add(pt);  
39  
40         pt = new PriorityTest(30,8, this.getGraphics());
41         pt.start();
42         v.add(pt);  
43  
44         pt = new PriorityTest(40,10, this.getGraphics());
45         pt.start();
46         v.add(pt);  
47  
48         pt = new PriorityTest(60,2, this.getGraphics());
49         pt.start();
50         v.add(pt);  
51  
52         pt = new PriorityTest(70,2, this.getGraphics());
53         pt.start();
54         v.add(pt);  
55  
56         this.setSize(new Dimension(400,400));
57  
58     }
59  
60  
61 }