/Users/lyon/j4p/src/net/rmi/rmiimage/PapPanel.java

1    package net.rmi.rmiimage; 
2     
3    import java.awt.*; 
4     
5    class PapPanel extends 
6        Panel { 
7      CpuPanel cpuPanels[] = { 
8        new CpuPanel("192.107.38.221", "powerpc1", "601/100Mhz"), 
9        new CpuPanel("192.107.38.222", "powerpc2", "601/100Mhz"), 
10       new CpuPanel("192.107.38.223", "powerpc3", "601/100Mhz"), 
11       new CpuPanel("192.107.38.224", "powerpc4", "601/100Mhz"), 
12       new CpuPanel("192.107.38.225", "powerpc5", "601/100Mhz"), 
13       new CpuPanel("192.107.38.226", "powerpc6", "601/100Mhz"), 
14       new CpuPanel("192.107.38.227", "powerpc7", "601/100Mhz"), 
15       new CpuPanel("192.107.38.228", "powerpc8", "601/100Mhz"), 
16       new CpuPanel("192.107.38.229", "powerpc9", "601/100Mhz"), 
17       new CpuPanel("192.107.38.230", "powerpc10", "601/100Mhz"), 
18       new CpuPanel("192.107.38.231", "vinny", "x486/66mhz"), 
19       new CpuPanel("192.107.38.80", "dracula", "Sparc 5"), 
20       new CpuPanel("192.107.38.81", "goblin", "Sparc 5"), 
21       new CpuPanel("192.107.38.82", "vampire", "Sparc 5"), 
22       new CpuPanel("192.107.38.83", "slimmer", "Sparc 5"), 
23       new CpuPanel("192.107.38.84", "devil", "Sparc 5"), 
24       new CpuPanel("192.107.38.85", "genie", "Sparc 5"), 
25       new CpuPanel("192.107.38.86", "witch", "Sparc 5"), 
26       new CpuPanel("192.107.38.87", "goul", "Sparc 5"), 
27       new CpuPanel("192.107.38.88", "daemon", "Sparc 5"), 
28       new CpuPanel("192.107.38.89", "roadrunner", "Sparc 5"), 
29       new CpuPanel("192.107.38.92", "enterprise", "Sparc 5"), 
30       new CpuPanel("192.107.38.93", "india", "Sparc 5"), 
31       new CpuPanel("192.107.38.94", "galapagos", "Sparc 5"), 
32       new CpuPanel("192.107.38.95", "jordan", "Sparc 5"), 
33       new CpuPanel("192.107.38.96", "egypt", "Sparc 5"), 
34       new CpuPanel("192.107.38.97", "poland", "Sparc 5"), 
35       new CpuPanel("192.107.38.98", "badminton", "Sparc 5")}; 
36    
37     PapPanel( 
38         int numberOfCPUs) { 
39       setBackground(Color.white); 
40       setLayout( 
41           new GridLayout(0, 4)); 
42       for (int i = 0; 
43            i < cpuPanels.length; i++) 
44         add(cpuPanels[i]); 
45     } 
46   } 
47