View Single Post
  #3 (permalink)  
Old 07-05-2009, 05:47 AM
Fubarable's Avatar
Fubarable Fubarable is offline
Moderator
 
Join Date: Jun 2008
Posts: 6,469
Rep Power: 8
Fubarable is on a distinguished road
Default
I've been looking at your code a bit more, and have some questions and comments for you.
1) It looks as if you are borrowing some other code you have found and are trying to add to it. Is this so? If so, where did you find the code?

2) When calling methods, make sure that you call them on the object (i.e., "image") and not the class (i.e., "Image").'

3) Again, you have added method calls that are hanging in the class but are not placed in any method or constructor. This simply won't work. Again, if you compile after placing each new line of code, you'll catch this as soon as it has happened and be able to promptly correct it.

4) You are trying to call methods that don't exist such as g.fillOvals(...) You should look up the Java API for the Graphics class to find the exact names and signatures of the methods that are available. You have to be extremely precise when programming and can't just make up method names and hope that they'll work.

5) I'm not sure what you're trying to do here:
Code:
list.add Rectangle;
as you're not calling the add() method without using parenthesis. What does "Rectangle" mean here?

Again, good luck.
Reply With Quote