Enclosing instance error...help
843810Jul 15 2004 — edited Jul 16 2004I 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