Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Enclosing instance error...help

843810Jul 15 2004 — edited Jul 16 2004
I have this error in my program and I have no idea how to fix it, it even has my Java Professor stumped.

RaceSort.java [56:1] an enclosing instance that contains Rectangle2D.Double is required
Shape s = new Rectangle2D.Double(x,y,barwidth,(height-y));


I have java.awt.geom.* imported and I don't have any other mentions of Shape or Rectangle2D.Double elsewhere in the program.

Thanks,
PJ
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 13 2004
Added on Jul 15 2004
9 comments
259 views