This week's book giveaway is in the Java 9 forum.
We're giving away four copies of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications and have Sander Mak & Paul Bakker on-line!
See this thread for details.
Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Quick question print method  RSS feed

 
Gabriel White
Ranch Hand
Posts: 233
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey yall, I'm pretty new to applets and I have a quick question/comment. I need to change my paint method so that it displays all of the circles except the last one, which I am supposed to make blue. (Display the most recently created circle in blue.) Right now my applet just shows the lastInstance of the default color, which is red. Here is an example of how it should look: example
Anyway, I can click around and get the red one to repaint() itself all over where I click, but how do I get it to display again and again. My vector is called myCircles.
Thanks in advance
Here is my code:

Gabe
 
Gabriel White
Ranch Hand
Posts: 233
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Never mind, I got it. In case you want to know:

Thanks
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!