I was able to write code that made the correct shape. It turns out that our professor sent us the wrong template, which is why I found it so difficult. All is well that ends well, I suppose. :P
Type: Posts; User: Proletariat
I was able to write code that made the correct shape. It turns out that our professor sent us the wrong template, which is why I found it so difficult. All is well that ends well, I suppose. :P
My assignment sheet says, "The idea is to draw a shape grid. However, instead of drawing the complete grid, you will only draw in some areas and make a pattern (two types of triangle, and a diamond –...
Doesn't this line set the position?
g.fillOval(j*40+50, i*40+25, 40, 40);
I apologize for being so java illiterate. This is only our 2nd day of class and without a textbook and very few notes,...
You are correct. My code to make a the first shape is this:
I can't get the 2nd shape, which is to draw 1 on the first , 2 on the 2nd, and so on up until the user specified grid size, and then...
Post #6. I'm doing a multi step problem. The first part was to draw a triangle with ovals. http://s22.photobucket.com/albums/b310/Gizzy11/?action=view¤t=pic1.png I was able to do that. Now I'm...
I'm having such a hard time doing this. What I really need to do is reflect this image, or just flip it over the x-axis.: pic1.png picture by Gizzy11 - Photobucket
I know how to reverse a loop,...
I just have one more question, and I'll be able to complete my project.
Right now I have this code, and I need to reverse it:
It currently returns
,
0 ,
1 2 ,
3 4 5 ,
Thanks. It turns out that I needed a bracket instead of a ;. The template for this was provided by our professor, so that's why I'm using JFrame. The assignment is to draw two triangles and a diamond...
Hello all,
I'm just starting to learn Java for a class that I am taking. I've gotten stuck on one of the assignments
If you run this code, the ovals are painted horizontally, but not...