Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Drawing multiple circles in a panel



Jason Smalridge wrote:

>  I did get it to work (almost) the way I want after reading your code.
>The only problem now is that the colors don't change with each drawing
>of the arcs. It just keeps repainting the same colors as was chosen for
>the first set of arcs for every set of arcs made after.
>  Any idea why?

The colors don't change because you don't change the colors.

In your code, the field colorArray of type int[][] seems to be used for
mapping colors,  but you never store anything in this array, as far as I
can tell.  If you DO store something there, it's happening in code you
haven't posted.  It may be my personal weakness, but I can't debug code
I've never seen.

This omission, along with the code you have posted, tells me that your
program is getting complex enough that just posting code is no longer going
to work.  For one thing, we can't see what you're seeing when you run the
program, because we don't have the complete program.  For another, things
are obviously happening in code you haven't posted, and we have no idea
what those things might be.

If you want useful advice, your best bet is to put a zip-file or other
archive on some web-server, then post its URL to the list.  Interested
parties can then download it, run the code (since it will be complete), and
then comment, either on-list or off-list.

By the way, if you're taking a course, you should ask your instructor for
assistance.  That's one of the most valuable resources you have when taking
a course: don't ignore it.

  -- GG

p.s. You don't have to quote entire previous postings as an aid to memory
or posterity, especially if you're not going to comment on specific
statements.  This entire list is archived.  For example, see the latest
April postings here:
  <http://lists.apple.com/archives/java-dev/2005/Apr/index.html>

Extensive quoting and requoting that serves no real purpose is simply
annoying, especially to subscribers of the digest form.


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.