# Search:

Type: Posts; User: sanjam58

1. ## Thread: JAVA LOOP HELP!!!

by sanjam58
Replies
5
Views
633

### Re: JAVA LOOP HELP!!!

don't worry,, i will try to solve it myself... sorry for trouble...
2. ## Thread: JAVA LOOP HELP!!!

by sanjam58
Replies
5
Views
633

### Re: JAVA LOOP HELP!!!

My problem is , I don't know how to use the NumCounters method from the from the "AbacusModel class" inside the paint method of "AbacuPanel class" to create a loop so that the program can...
3. ## Thread: JAVA LOOP HELP!!!

by sanjam58
Replies
5
Views
633

### JAVA LOOP HELP!!!

In this program, I need help in creating a loop in the paint method of Abacus Panel Class whose purpose is to find out the number of counters and draw these counters in the row of the selected...
4. ## Thread: Help me calculate which element of the grid the mouse was in when it was clicked.

by sanjam58
Replies
9
Views
631

### Re: Help me calculate which element of the grid the mouse was in when it was clicked.

Thank you very much... your suggestion really helped me out... ^:)^
5. ## Thread: Help me calculate which element of the grid the mouse was in when it was clicked.

by sanjam58
Replies
9
Views
631

### Re: Help me calculate which element of the grid the mouse was in when it was clicked.

Can you help me figure out which part of my Arithmetic is faulty and suggestion to get it right because am really stuck in this problem though-out the day.
(Reference for assumming rows (x-axis)...
6. ## Thread: Help me calculate which element of the grid the mouse was in when it was clicked.

by sanjam58
Replies
9
Views
631

### Re: Help me calculate which element of the grid the mouse was in when it was clicked.

I am also new to co-ordinates and I am assuming rows (x-axis) and columns (y-axis)

Output on each square on top row (left to right)
(0,0)
(0,1)
(0,1)
(0,2)
(0,3)
(0,3)
(0,4)
7. ## Thread: Help me calculate which element of the grid the mouse was in when it was clicked.

by sanjam58
Replies
9
Views
631

### Re: Help me calculate which element of the grid the mouse was in when it was clicked.

According to my program, I have made a grid which consists of 5 columns and 7 rows.. when I click on the top right element it gives me output 0,4 which is wrong...because it is on row no.6 and...
8. ## Thread: Help me calculate which element of the grid the mouse was in when it was clicked.

by sanjam58
Replies
9
Views
631

### Help me calculate which element of the grid the mouse was in when it was clicked.

For example, if the user clicks in the top-left element, program could print out, on the console, "Mouse" clicked in element 0,0". So far this is what I have done. the program compiles but most of...
Results 1 to 8 of 8