This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
hi. I'm trying to draw an oval ..and it works. I can fill it, resize it using a slider to increase it's radius or decrease the radius. My problem right now is that even though it resizes, and I have it set to the middle of the panel, when I increase the radius past the panels hieght and width the circle stays in the middle, and it goes beyond the panels borders...not good. I want to be able to shift the circle's position up and to the left if the radius is greater than the panel's hieght and width. This is my code so far in the model-view approach.
"Shh, Zog....here come one Now!"
Joined: Apr 21, 2002
I've changed the forloop to look like this: But I still et no reaction... It has occured to me that the forloop is in contradiction with the cModel function. While the cModel may try to grow larger, the for loop is trying to shrink it...so My for loop is also wrong... Any ideas on how to get the circle to move the right and left when the circles size is greater than the panels height and width? [ March 13, 2003: Message edited by: Drake Silver ]