Before I spend time attempting to figure out your 230 lines of code, why don't you tell me where your problem is? What attempts have you made to debug this yourself, and what values do you get that you do not understand?
This is partly because I don't want to spend my time figuring out stuff that is not related to the SPECIFIC problem, and partly because we do get people here from time to time that want us to do their programming for them. I don't want to spend my time doing that when I might be spending time helping people who are trying to help themselves and just need some (specific) questions answered.
Put another way -- I don't find the question specific enough. Other people might. But I think you're more likely to get help from more people if you narrow what you're asking for.
Joined: Feb 07, 2011
Alright The applet puts ten pictures on the JPanel randomly, then you can drag the ten pictures around. they are 2 sets of five, one being animals. The other is the letter associated with the animal, z for zebra. Which is running correctly. The next thing I would like to do is check to see if the user actually put the z next to the zebra, not the letter o next to the zebra. So what I guess I am asking is the logic behind it, not for actual code, I just don't know where to start.
was trying rectangle, and seeing if it contains picture && picture but i was not getting the response I was expecting.
Joined: May 29, 2005
Ok, I'm going to try one guess, even though I still don't have enough information.
You have code that (you say) handles a drag of a picture from one place to another. And you want to know whether that picture and another picture ended up next to each other. Can't you, at the end of a drag operation, put the location of the dragged picture somewhere, and then look at it when it's time to figure out if it's where it's supposed to be?
You've given me (us) a start on what your program is attempting to do, and the fact that you "don't know where to start". Well, I'm not sure either, since what your program is to do is still pretty vague in my mind. If you want a place to start, then perhaps start by telling us the data structures and algorithms you've already got.
Joined: Feb 07, 2011
Resolved, still not what I would like but it does what I wanted.
Thanks To everyone that helped me jog my brain for ideas.