Home » Newcomers » Newcomers » How to create a project using drawline method?
| |
Re: How to create a project using drawline method? [message #1015248 is a reply to message #1015239] |
Wed, 27 February 2013 21:34 |
Marco da Silva Messages: 3 Registered: February 2013 |
Junior Member |
|
|
sorry
I not being clear in my question.
This question is an exercise of the University, I am starting learning java, I need to use something in the syntax.
g.setColor(Color.black);
g.drawLine(x, y, x, y + tam);
g.drawLine(x, y + tam, x + tam, y + tam);
g.drawLine(x + tam, y + tam, x + tam, y);
g.drawLine(x + tam, y, x, y);
dormir(30);
g.setColor(Color.white);
g.drawLine(x, y, x, y + tam);
g.drawLine(x, y + tam, x + tam, y + tam);
g.drawLine(x + tam, y + tam, x + tam, y);
g.drawLine(x + tam, y, x, y);
More I need to draw the square with red and black stripes, most can not.
|
|
| | |
Goto Forum:
Current Time: Fri May 03 01:38:04 GMT 2024
Powered by FUDForum. Page generated in 0.07591 seconds
|