import java.awt.Graphics; import java.awt.Color; /** * Squares with positions, colors, and borders. Intended to be * painted. */ public class BorderedSquare { // +--------+-------------------------------------------------- // | Fields | // +--------+ // The fields need to be added. // +--------------+-------------------------------------------- // | Constructors | // +--------------+ // The constructors need to be added. // +---------+------------------------------------------------- // | Methods | // +---------+ /** * Paint the current square. Currently implemented as a * "stub". Needs to be updated to use the fields defined * above. */ public void paint(Graphics paintBrush) { paintBrush.setColor(Color.red); paintBrush.fillRect(10,10,40,40); } // paint(Graphics) } // class BorderedSquare