- new GUIWire(submodelModifiable, cpB2, and2.getInputPins().get(1), new Point[0]);
- new GUIWire(submodelModifiable, cpB2, and1.getInputPins().get(1), new Point(25, 22.5));
- new GUIWire(submodelModifiable, and1.getOutputPins().get(0), Y1, new Point[0]);
- new GUIWire(submodelModifiable, and2.getOutputPins().get(0), Y2, new Point[0]);
- new GUIWire(submodelModifiable, and3.getOutputPins().get(0), Y3, new Point[0]);
- new GUIWire(submodelModifiable, and4.getOutputPins().get(0), Y4, new Point[0]);
+ new GUIWire(submodelModifiable, cpB2, and2.getPin("B"), new Point[0]);
+ new GUIWire(submodelModifiable, cpB2, and1.getPin("B"), new Point(25, 22.5));
+ new GUIWire(submodelModifiable, and1.getPin("Y"), Y1, new Point[0]);
+ new GUIWire(submodelModifiable, and2.getPin("Y"), Y2, new Point[0]);
+ new GUIWire(submodelModifiable, and3.getPin("Y"), Y3, new Point[0]);
+ new GUIWire(submodelModifiable, and4.getPin("Y"), Y4, new Point[0]);