Click here to Skip to main content
15,896,359 members
Articles / Programming Languages / Java

nested for loops to draw rectangles

Rate me:
Please Sign up or sign in to vote.
1.00/5 (1 vote)
13 Nov 2012CPOL 7.6K  
import javax.swing.JFrame;import java.awt.Color;import java.awt.Graphics;@SuppressWarnings("serial")public class RedAndBlackSteps extends JFrame{ public int startX, startY; public static int brickWidth, brickHeight, brickSpace; public static int numberOfRows; public...

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

Please Sign up or sign in to vote.
13 Nov 2012Christian Graus
You only set the color to red. Set it to black and it will be black

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions