Eclipse "import not resolved" package problem?
I downloaded the Java2D demo package from java sun com/products/java-media/2D/samples/suite/Java2Dsamples.zip, unzipped it, and dragged the resulting src folder to a src folder in a new Java Project I created in Eclipse.
There are three "key" modules in the src folder proper:
DemoSurface.java
DemoPanel.java
CustomControls.java
These are referenced in virtually every module in several sub-folders under src, such as src\demos\Clipping\Areas.java
Areas.java begins with a "package" statement - "package demos.Clipping;"
A subsequent statement, "import DemoSurface;" is flagged as an error, "The import DemoSurface cannot be resolved."
I suspect this is because DemoSurface.java is in my project as belonging to the "default" package (there is no package statement in DemoSurface.java), but I'm not sure what the quick solution to the problem is under Eclipse. I hope there is some simple change I can make to the project configuration, but nothing I've tried so far has resolved the problem.
Can somebody help a newbie out?