-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlabels.java
106 lines (83 loc) · 2.15 KB
/
labels.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
package Proj;
import java.awt.*;
import java.applet.*;
public class labels extends SBA1{
Label p = new Label("PC");
Label mar = new Label("MAR");
Label mdr = new Label("MDR");
Label y = new Label("Y");
Label mux = new Label("MUX");
Label alu = new Label("ALU");
Label z = new Label("Z");
Label temp = new Label("Temp");
Label r0 = new Label("R0");
Label r1 = new Label("R1");
Label r2 = new Label("R2");
Label ir = new Label("IR");
Label in = new Label("Insruction");
Label dec = new Label("Decoder and");
Label con = new Label("Control Logic");
Label a = new Label("A",Label.CENTER);
Label b=new Label("B",Label.CENTER);
Font f = new Font("Arial", Font.PLAIN, 18);
Font f1 = new Font("Arial", Font.PLAIN, 14);
public labels()
{
Color back= new Color(240,240,240);
setBackground(back);
p.setFont(f);
setLayout(null);
p.setBounds(511,63,40,25);
add(p);
mar.setFont(f);
mar.setBounds(510, 143, 50, 25);
add(mar);
mdr.setFont(f);
mdr.setBounds(510, 223, 50, 25);
add(mdr);
y.setFont(f);
y.setBounds(519, 303, 50, 25);
add(y);
mux.setFont(f);
mux.setBounds(467, 383, 50, 25);
add(mux);
a.setFont(f1);
a.setSize(10,15);
a.setBounds(462, 461, 50, 25);
add(a);
b.setFont(f1);
b.setBounds(546, 461, 50, 25);
add(b);
alu.setFont(f);
alu.setBounds(510, 488, 50, 25);
add(alu);
z.setFont(f);
z.setBounds(519, 584, 50, 25);
add(z);
temp.setFont(f);
temp.setBounds(759, 573, 50, 25);
add(temp);
r2.setFont(f);
r2.setBounds(767, 493, 50, 25);
add(r2);
r1.setFont(f);
r1.setBounds(767, 413, 50, 25);
add(r1);
r0.setFont(f);
r0.setBounds(767, 333, 50, 25);
add(r0);
ir.setFont(f);
ir.setBounds(767, 253, 50, 25);
add(ir);
in.setFont(f1);
in.setBounds(750, 100, 65, 20);
add(in);
dec.setFont(f1);
dec.setBounds(740, 120, 85, 20);
add(dec);
con.setFont(f1);
con.setBounds(740, 140, 85, 20);
add(con);
// callComp();
}
}