Helpful Information
 
 
Category: Graphics and Multimedia discussions
Anyone knows how to use g.drawRect

Hi... need some help on how to use g.drawRect in a nested looping system. Problem encounted is i need to draw a set of rectangles to put in all 26 alphabets. and also into a layout keyboard. Pls help Thank you

Basically you'd just loop it through with the alphabet defined and use

g.drawRect(0, 0, width, height); in the loop to do variable sized rectangles. However, this goes a bit beyond plain graphics and multimedia as it is a programtic problem, not a graphics problem.

Take a look at some of these:
http://richardbowles.tripod.com/java/guide/graphics.htm
http://manuals.sybase.com/onlinebooks/group-pj/pjg0400e/pjguide/@Generic__BookTextView/37522










privacy (GDPR)