Ah, sorry, I had a typo in my code...
it's supposed to be:
TimerPanel timer = new TimerPanel(input);
InputPanel input = new InputPanel(timer);
Type: Posts; User: AtlDynasty25
Ah, sorry, I had a typo in my code...
it's supposed to be:
TimerPanel timer = new TimerPanel(input);
InputPanel input = new InputPanel(timer);
You're probably right, it's probably a bad design. Like I said, I'm very new, so I'm kind of trying to play by ear... I guess I'll reevaluate my design. But I don't even know what a setter method...
Hi, I am new to programming, and trying to learn by making a few simple programs.
My problem involves passing a reference between classes.
I learned how to pass references via constructors, but...