Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Mar 2003
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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

  • #2
    Regular Coder Feyd's Avatar
    Join Date
    May 2002
    Location
    Los Angeles, CA Maxim: Subvert Society
    Posts
    403
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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/onlinebook...TextView/37522
    Moderator, Perl/CGI Forum
    shadowstorm.net - subvert society


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •