Open martinjonsson01 opened 1 year ago
Since you have moved the control panel out of CarView and made it into CarController, all lines that reference controlPanel should be moved into the constructor of CarController.
CarView
CarController
controlPanel
https://github.com/ghazalghorabi/TDA553-lab1/blob/7f7560d90d9f5a941a3a87e81244aeb81788c392/CarView.java#L31-L41
Since you have moved the control panel out of
CarView
and made it intoCarController
, all lines that referencecontrolPanel
should be moved into the constructor ofCarController
.https://github.com/ghazalghorabi/TDA553-lab1/blob/7f7560d90d9f5a941a3a87e81244aeb81788c392/CarView.java#L31-L41