Out on HF and heard nobody, but didn't call CQ? Nobody heard you either. 73 de N7GH
Out on HF and heard nobody, but didn't call CQ? Nobody heard you either. 73 de N7GH
First off, I'd change the name of draw, which is a verb, to something like DrawPanel, which is a noun.Nick Tickolainen wrote:
No. Don't add data to a display class. That List needs to live somewhere but a display class is the wrong place for it. You need another class to model your app, and that is where the List should be.Nick Tickolainen wrote:You mean move my arraylist to the drawclass, something like this?. . .
myModel.drawShapes(g);A few minutes ago, I wrote:. . .
myModel.drawCircles(g);
. . .
And welcome to the Ranch
Nick Tickolainen wrote:You mean move my arraylist to the drawclass, something like this?
That kind of makes sense and there no error. You talked about a setter for the arraylist but i'm not quite sure what you meant.
Am i totally off?
Out on HF and heard nobody, but didn't call CQ? Nobody heard you either. 73 de N7GH
Out on HF and heard nobody, but didn't call CQ? Nobody heard you either. 73 de N7GH
Out on HF and heard nobody, but didn't call CQ? Nobody heard you either. 73 de N7GH
I've tried googling and looking up an answer to this question but all the information i could find doesn't really cover my problem specifically.
Les Morgan wrote:. . .
. . .
I knew that guy would be trouble! Thanks tiny ad!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
|