[Solved] : Question 12791

Complete a program by writing a method called drawGrid that draws a table / grid on the
window from (0,0) to (x,y) where x and y are integers passed to the method drawGrid as
parameters. A method call to drawGrid is given inside mousePressed so you can test your
program by pressing the mouse at different location in the display window. A sample output
is given along side.

A table consists of –
1. a red bordered rectangle with opposite
corners at (0,0) and (x,y)
2. black vertical and horizontal lines from (0,0)
to (x,0) and (0,0) to (0,y) respectively, with a
gap of GAP between them. GAP is a final int
defined at the top of the program.


Expert Answer


Answer to : Question 12791

Leave a Comment

About

We are the best freelance writing portal. Looking for online writing, editing or proofreading jobs? We have plenty of writing assignments to handle.

Quick Links

Browse Solutions

Place Order

About Us

× How can I help you?