1
1
package ru .ifmo .cs .bcomp .ui .io ;
2
+
2
3
import ru .ifmo .cs .bcomp .IOCtrl ;
3
4
import ru .ifmo .cs .bcomp .ui .components .ComponentManager ;
4
- import ru .ifmo .cs .bcomp .ui .components .InputRegisterView ;
5
+ import ru .ifmo .cs .bcomp .ui .components .InputRegisterViewByte ;
6
+
5
7
import javax .swing .*;
6
8
import java .awt .*;
7
- import static ru .ifmo .cs .bcomp .ui .components .DisplayStyles .*;
9
+
10
+ import static ru .ifmo .cs .bcomp .ui .components .DisplayStyles .COLOR_BACKGROUND ;
8
11
9
12
public class SecondIO extends IODevice {
10
13
private ComponentManager componentManager ;
11
- private InputRegisterView input ;
14
+ private InputRegisterViewByte input ;
12
15
13
16
public SecondIO (IOCtrl ioCtrl , ComponentManager componentManager ) {
14
17
super (ioCtrl , "input" );
@@ -20,7 +23,7 @@ protected Component getContent() {
20
23
JPanel panel = new JPanel (new GridBagLayout ());
21
24
panel .setPreferredSize (new Dimension (500 , 150 ));
22
25
panel .setBackground (COLOR_BACKGROUND );
23
- input = new InputRegisterView (componentManager , ioctrl .getRegisters ()[0 ]);
26
+ input = new InputRegisterViewByte (componentManager , ioctrl .getRegisters ()[0 ]);
24
27
input .setProperties (0 , 0 , false , false );
25
28
input .setPreferredSize (input .getSize ());
26
29
input .setMinimumSize (input .getSize ());
0 commit comments