- new GUIWire(submodelModifiable, inPin, muxPin, new Point(inPin.getPos().x + 5, inPin.getPos().y),
- new Point(inPin.getPos().x + 5, muxPin.getPos().y));
- new GUIWire(submodelModifiable, getInputSubmodelPins().get(mux.length + i + 1), mux[i].getInputPins().get(2));
+ new GUIWire(submodelModifiable, inPinA, muxPin, new Point(inPinA.getPos().x + 5, inPinA.getPos().y),
+ new Point(inPinA.getPos().x + 5, muxPin.getPos().y));
+ new GUIWire(submodelModifiable, inPinB, mux[i].getInputPins().get(2), new Point(10 + 5 * i, inPinB.getPos().y),
+ new Point(10 + 5 * i, mux[i].getInputPins().get(2).getPos().y));