@@ -0,0 +1,875 @@
+package jgame;%0A%0A/** Minimal replacement of java.awt.Rectangle. */%0Apublic class JGRectangle %7B%0A%0A%09public int x=0,y=0,width=0,height=0;%0A%0A%09public JGRectangle () %7B%7D%0A%0A%09public JGRectangle (int x,int y,int width,int height) %7B%0A%09%09this.x=x;%0A%09%09this.y=y;%0A%09%09this.width=width;%0A%09%09this.height=height;%0A%09%7D%0A%0A%09public JGRectangle(JGRectangle rec) %7B%0A%09%09this.x = rec.x;%0A%09%09this.y = rec.y;%0A%09%09this.width = rec.width;%0A%09%09this.height= rec.height;%0A%09%7D%0A%0A%09/** Copy contents of source rectangle into this rectangle. */%0A%09public void copyFrom(JGRectangle src) %7B%0A%09%09x=src.x;%0A%09%09y=src.y;%0A%09%09width=src.width;%0A%09%09height=src.height;%0A%09%7D%0A%0A%09public boolean intersects(JGRectangle rec) %7B%0A%09%09return    rec.x            %3C x+width%0A%09%09       && rec.x+rec.width  %3E x%0A%09%09       && rec.y            %3C y+height%0A%09%09       && rec.y+rec.height %3E y;%0A%09%7D%0A%09public String toString() %7B%0A%09%09return %22JGRectangle(%22+x+%22,%22+y+%22,%22+width+%22,%22+height+%22)%22;%0A%09%7D%0A%7D%0A

Create JGRectangle.java