Search:

Type: Posts; User: Proletariat

Search: Search took 0.12 seconds.

  1. Replies
    3
    Views
    1,155

    Re: Adding Fixed Point Numbers

    We are only allowed to have one field, the int field that I've already created. Our professor was helping us out with the assignment right before class ended, and so I didn't get down exactly what he...
  2. Replies
    3
    Views
    1,155

    Adding Fixed Point Numbers

    This code my look similar to another user's that posted earlier, because we are in the same class and our teacher helped us get started. I am trying to add two numbers. In this case, 1.07 and 2.07....
  3. The operator + is undefined for the argument type(s) String, void

    I'm writing a calendar program, and I'm trying to create buttons that add or subtract a year.

    I'm getting the error in the title for this code:


    private class ButtonListener implements...
  4. Replies
    16
    Views
    1,961

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

    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 –...
  6. Replies
    16
    Views
    1,961

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

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

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

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

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

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

    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 12 of 12