Good evening! I'm trying to complete the drawCircles() class included below so that it will draw 9 or more circles in a row in Java Eclipse. The start up program only draws the first and smallest circle, but this isn't where the error I'm trying to fix stems from. At the beginning of my class, there is a list of imports-
On each of these lines, I am receiving this error: "The import java.awt cannot be resolved." A similar error appears in my other class of this code on the import-
On this line, the error is "The import "javax.swing" cannot be resolved." How can I fix these errors? Thank you! (Full code included below)
Well, that's interesting. Can you check a setting in Eclipse for me in the preferences?
Right click your project and choose properties. Then go to Java Build path. There should be something there about the version of Java. What does it say? (For example Java SE 1.8).
Then go to the Eclipse overall preferences (under the window pull down on Windows or the Eclipse pull down on Mac). Go to Java > Installed JREs. What does it say the location of that version of Java is?