Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+18 votes

I have my Christmas tree code written, but it wont run because I don't have the graphics file in the src folder. Can someone help me find where to drop it in the program?

asked in CSC211_Winter2018 by (1 point)
+4

Are you talking about the DrawingPanel.java? Yes, it should be copied into the src folder... I'm not quite sure if I understand the question.

1 Answer

+11 votes

Firstly, make sure you download DrawingPanel.java from the Program 3G folder on moodle. Upon downloading the DrawingPanel.java file, you should drag it into the src folder of your "Program 3G" in Eclipse. This should be all you have to do in terms of file placement.
If you have done this and your program still doesn't run, you may have forgotten to include "import java.awt.*;" above "public class ChristmasTrees". Hopefully this helps.

answered by (1 point)
...