Search:

Type: Posts; User: arieltal

Search: Search took 0.09 seconds.

  1. Replies
    8
    Views
    1,408

    Re: how to create multiple objects

    use array's..

    Carton[] cartons = new Carton[25];
  2. Replies
    1
    Views
    1,403

    Re: Cant fix this error... Help!

    need to import it
  3. Re: java.lang.NullPointerExpectation:null (in java.awt.Container) when adding a JPane

    well according to your code the compiler is right, you have not initialized the variable textField1,
    you need to create a new object with the new keyword, and then you can add it.
    edit : the order...
  4. Re: Will someone help me with code? Creating classes, getters & setters. Beginner :(

    yes i see now i was mistaken about the string = "" , since it is an assignment and not comparison.. oopsi
  5. Re: java.lang.NullPointerExpectation:null (in java.awt.Container) when adding a JPane

    which line produces the error?
  6. Re: Will someone help me with code? Creating classes, getters & setters. Beginner :(

    firstly, the carWorker class, the constructor MUST be the same name as the class, you wrote public car(int....)
    it needs to be carWorker(int....)
    secondly, the toString method in the same class...
  7. Re: Will someone help me with code? Creating classes, getters & setters. Beginner :(

    what is your question sir?
  8. Replies
    2
    Views
    998

    [SOLVED] Re: iam not beeing printed to screen

    i think it's because you instansiate the background class before sprites_sheet class,
    the background class relies on the sprite_sheet variable - ml, which is null at the time..
  9. Replies
    6
    Views
    1,193

    Re: Can't make this circle disapear!

    i guess you need to tell that circle not to paint itself.. on a side note - you have a line that says:

    if (enemylhit=true)
    // something..
    that line will ALWAYS be true, since you need == for...
  10. Thread: Star Loop

    by arieltal
    Replies
    1
    Views
    1,424

    Re: Star Loop

    try using 2 different variables for length and width..
    good advice is to debug it, and trace what's happening.
  11. Replies
    1
    Views
    1,136

    Re: problem while compiliation

    maybe there's a problem with singleID definition, what IDE you use?
  12. Replies
    4
    Views
    968

    Re: My code is not working (method)

    kevin is right, but i would start by putting some code inside the main method.
  13. Replies
    2
    Views
    2,179

    Re: Inheritance and Polymorphism assignment!!

    not sure what the question is..
    but if you mean to implement equal, then you'll want to test for instanceof to see if the object is the same as the one that
    invoked the method, and then just test...
  14. Replies
    1
    Views
    1,587

    making the color dissapear.

    hello, i'm new to this forum, i hope to find some answers :)
    my problem is that i have a .png file, and i read the content to a BufferedImage object, then i move that into a
    pixel array, the file...
Results 1 to 14 of 14