Search:

Type: Posts; User: Norm

Search: Search took 0.12 seconds.

  1. Replies
    16
    Views
    1,158

    [SOLVED] Re: Double Buffering Problem

    Add printlns to show all the values that control the setting of the help variable so you can see the values that the computer sees.
  2. Replies
    16
    Views
    1,158

    [SOLVED] Re: Double Buffering Problem

    If there is a logic problem with the setting of variables, then you need to try debugging the code to sort out the logic.
    The way I debug is by adding lots of println statements to show what is...
  3. Replies
    16
    Views
    1,158

    [SOLVED] Re: Double Buffering Problem

    Try debugging the code by adding printlns to print the values of the variables as they are used and their values changed.
  4. Replies
    16
    Views
    1,158

    [SOLVED] Re: Double Buffering Problem

    I doubt that double buffering could change the values of boolean variables.
  5. Replies
    16
    Views
    1,158

    [SOLVED] Re: Double Buffering Problem

    When space bar is pressed: The green square starts moving and the two rows of text at the bottom are cleared.
    The green square stops moving when the green square touches the red square.
    Pressing...
  6. Replies
    16
    Views
    1,158

    [SOLVED] Re: Double Buffering Problem

    Sorry, I don't know how the program is supposed to function. There were 3 colored squares on start. Pressing the space bar caused one square to chase another. Pressing the arrows moved the chased...
  7. Replies
    16
    Views
    1,158

    [SOLVED] Re: Double Buffering Problem

    Strange. I made that one change: super.paint(g); //2);
    and the code seems to execute ok.

    EDIT: The code worked several times. Now the screen is flashing continually???

    Try...
  8. Replies
    16
    Views
    1,158

    [SOLVED] Re: Double Buffering Problem

    The call to super should pass g, not g2.
    That problem demonstrates how important good variable names are. The Graphics object for your image should have a unique name that wouldn't be confused with...
Results 1 to 8 of 8