Search:

Type: Posts; User: Proletariat

Search: Search took 0.09 seconds.

  1. Replies
    16
    Views
    1,962

    Re: Painting ovals

    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
  2. Replies
    16
    Views
    1,962

    Re: Painting ovals

    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 –...
  3. Replies
    16
    Views
    1,962

    Re: Painting ovals

    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,...
  4. Replies
    16
    Views
    1,962

    Re: Painting ovals

    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...
  5. Replies
    16
    Views
    1,962

    Re: Painting ovals

    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&current=pic1.png I was able to do that. Now I'm...
  6. Replies
    16
    Views
    1,962

    Re: Painting ovals

    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,...
  7. Replies
    16
    Views
    1,962

    Re: Painting ovals

    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 ,
  8. Replies
    16
    Views
    1,962

    Re: Painting ovals

    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...
  9. Replies
    16
    Views
    1,962

    Painting ovals

    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...
Results 1 to 9 of 9