- new GUIWire(submodelModifiable, cp1, nand1.getInputPins().get(0), new Point(15, 7.5));
- new GUIWire(submodelModifiable, cp2, nand2.getInputPins().get(0), new Point(15, 32.5));
- new GUIWire(submodelModifiable, cp3, nand3.getInputPins().get(0), new Point(15, 57.5));
- new GUIWire(submodelModifiable, cp4, nand4.getInputPins().get(0), new Point(15, 82.5));
- new GUIWire(submodelModifiable, cp1, nand1.getInputPins().get(1), new Point(15, 17.5));
- new GUIWire(submodelModifiable, cp2, nand2.getInputPins().get(1), new Point(15, 42.5));
- new GUIWire(submodelModifiable, cp3, nand3.getInputPins().get(1), new Point(15, 67.5));
- new GUIWire(submodelModifiable, cp4, nand4.getInputPins().get(1), new Point(15, 92.5));
- new GUIWire(submodelModifiable, nand1.getOutputPin(), Y1, new Point[0]);
- new GUIWire(submodelModifiable, nand2.getOutputPin(), Y2, new Point[0]);
- new GUIWire(submodelModifiable, nand3.getOutputPin(), Y3, new Point[0]);
- new GUIWire(submodelModifiable, nand4.getOutputPin(), Y4, new Point[0]);
+ new GUIWire(submodelModifiable, cp1, nand1.getPin("A"), new Point(15, 7.5));
+ new GUIWire(submodelModifiable, cp2, nand2.getPin("A"), new Point(15, 32.5));
+ new GUIWire(submodelModifiable, cp3, nand3.getPin("A"), new Point(15, 57.5));
+ new GUIWire(submodelModifiable, cp4, nand4.getPin("A"), new Point(15, 82.5));
+ new GUIWire(submodelModifiable, cp1, nand1.getPin("B"), new Point(15, 17.5));
+ new GUIWire(submodelModifiable, cp2, nand2.getPin("B"), new Point(15, 42.5));
+ new GUIWire(submodelModifiable, cp3, nand3.getPin("B"), new Point(15, 67.5));
+ new GUIWire(submodelModifiable, cp4, nand4.getPin("B"), new Point(15, 92.5));
+ new GUIWire(submodelModifiable, nand1.getPin("Y"), Y1, new Point[0]);
+ new GUIWire(submodelModifiable, nand2.getPin("Y"), Y2, new Point[0]);
+ new GUIWire(submodelModifiable, nand3.getPin("Y"), Y3, new Point[0]);
+ new GUIWire(submodelModifiable, nand4.getPin("Y"), Y4, new Point[0]);