Search:

Type: Posts; User: DOLZero

Search: Search took 0.09 seconds.

  1. Thread: JFrame errors

    by DOLZero
    Replies
    10
    Views
    1,654

    [SOLVED] Re: JFrame errors

    Ah, that's right. You helped me realize where I went wrong. When I was creating each environment object I was putting it in environment[i] in the loop, which i always increased by 1, whether it made...
  2. Thread: JFrame errors

    by DOLZero
    Replies
    10
    Views
    1,654

    [SOLVED] Re: JFrame errors

    Okay, I think I have got it narrowed down. It seems there is something going on in this bit of code here:


    for (int i = 0; i < environment.length; i++){...
  3. Thread: JFrame errors

    by DOLZero
    Replies
    10
    Views
    1,654

    [SOLVED] Re: JFrame errors

    I added in "system.out.prinrln(environment);" right before the line and it printed out "[LMark2.environment;@5d6d2633" in the console.

    Although I am not sure if that is exactly what you meant....
  4. Thread: JFrame errors

    by DOLZero
    Replies
    10
    Views
    1,654

    [SOLVED] Re: JFrame errors

    line 121 appears to be this line in the code:

    for (int i = 0; i < environment.length; i++){

    I am pretty sure that environment is already initialized as an array before the program ever reaches...
  5. Thread: JFrame errors

    by DOLZero
    Replies
    10
    Views
    1,654

    [SOLVED] Re: JFrame errors

    The errors happen whenever the program tries to paint graphics to the frame. With the timer code commented out, the errors only appear the one time:

    edit: errr, it appears twice:


    Exception in...
  6. Thread: JFrame errors

    by DOLZero
    Replies
    10
    Views
    1,654

    [SOLVED] JFrame errors

    I have been working on a program to run a basic 2 dimensional sidescrolling game. Right now I am trying to get the basic image window working. I was able to get a simple version to run, but now that...
Results 1 to 6 of 6