Hello,
I am given an assignment to create an oval using
java GUI and give it random colour, after that when I am pressing on this oval it should change its colour. This is where the problem comes from... I understand how to do GUI but the problem is I don't know where to attach actionListener I cannot attach it to the oval because it is not drawn, I thought may be I should attach it to the center of my oval. However, how can attach a Listener to point??? Please help me!!! Thank you in adavnce