Open martinjonsson01 opened 1 year ago
Since you have made CarController inherit from JPanel, it now acts as the control panel. You don't need to have a controlPanel variable anymore, just use this instead!
CarController
JPanel
controlPanel
this
https://github.com/ghazalghorabi/TDA553-lab1/blob/7f7560d90d9f5a941a3a87e81244aeb81788c392/CarController.java#L59-L65
Since you have made
CarController
inherit fromJPanel
, it now acts as the control panel. You don't need to have acontrolPanel
variable anymore, just usethis
instead!https://github.com/ghazalghorabi/TDA553-lab1/blob/7f7560d90d9f5a941a3a87e81244aeb81788c392/CarController.java#L59-L65