Search:

Type: Posts; User: KevinWorkman

Search: Search took 0.12 seconds.

  1. Re: Cant get the ball to bounce around the canvass

    Then I guess I'm not sure what you mean by stuttering. But again, without seeing any code, I'm just guessing anyway. I'd take a look at it if you posted an SSCCE in a new thread, but it seems like...
  2. Re: Cant get the ball to bounce around the canvass

    Without seeing the actual code, I can't really comment, but I promise that extending a JPanel and overriding paintComponent() works just fine. If I had to hazard a guess, I'd bet that you're updating...
  3. Re: Cant get the ball to bounce around the canvass

    Honestly, it sounds like you were doing something wrong (probably the "active rendering" you're talking about). It's a common problem, and it keeps popping up because people try to complicate things...
  4. Re: Cant get the ball to bounce around the canvass

    If you say so. I've never had any problems using JComponents, and in my humble opinion, doing "active rendering" introduces a bunch of other stuff that just confuses the basics- especially for...
  5. Re: Cant get the ball to bounce around the canvass

    I guess it depends on what you mean by "direct rendering". Most people extend JPanel or JComponent, override paintComponent(), do all drawing in there, then call repaint() whenever they update the...
  6. Re: Cant get the ball to bounce around the canvass

    You said you're using Canvas, which is an AWT component. That's the old GUI classes, and usually people don't use them unless they have a reason to. People use Swing now.
  7. Re: Cant get the ball to bounce around the canvass

    Also, your if statements look all wrong. First off, they're nested inside each other, when I'm pretty sure that's not what you want. Secondly, I don't think you want to simply set the deltaX to...
Results 1 to 7 of 7