I am doing a Java course and have an assignment in which I have to write an application in which spots are drawn on a frame according to menu selections (size and colour). I have written the code for drawing the JFrame and inserting the menu elements, however I am stuck on how to draw the spots in the frame.
What I would like are some pointers or links on how to put spots or dots on the point clicked in a JFrame. Basically, I think I need pointers on how to use MouseAdapters. Code for a simple JFrame in which each click leaves a dot should be sufficient to get me on my way.
Thanks in advance