# Search:

Type: Posts; User: Proletariat

## Search: Search took 0.25 seconds.

by Proletariat
Replies
3
Views
473

### 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...

by Proletariat
Replies
3
Views
473

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. ## Thread: The operator + is undefined for the argument type(s) String, void

by Proletariat
Replies
1
Views
4,372

### 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...

by Proletariat
Replies
16
Views
807

### 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

by Proletariat
Replies
16
Views
807

### 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 –...

by Proletariat
Replies
16
Views
807

### 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,...

by Proletariat
Replies
16
Views
807

### 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...

by Proletariat
Replies
16
Views
807

### 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...

by Proletariat
Replies
16
Views
807

### 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,...

by Proletariat
Replies
16
Views
807

### 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 ,

by Proletariat
Replies
16
Views
807

### 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...

by Proletariat
Replies
16
Views
807

### 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