Search:

Type: Posts; User: OutputStream

Search: Search took 0.20 seconds.

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

    I did all updating on the EDT. The JPanel looked fine when rendering, no frames were wrong.
  2. Re: Cant get the ball to bounce around the canvass

    All I had was a JFrame which I added one JPanel to. When I switched to a Canvas I just had one JFrame with one Canvas on it. The only thing I changed in the rendering process was how I obtained the...
  3. Re: Cant get the ball to bounce around the canvass

    Not saying JComponents are bad or anything, if it's working for you then stick to it.
    I had an old game project once which used JPanels and repaint() for rendering. However, I noticed it started...
  4. Re: Cant get the ball to bounce around the canvass

    JComponents uses passive rendering (which means you have to wait for the EDT to render the JComponent).
    With a Canvas, it's very easy to set up a BufferStrategy. You then use that BufferStrategy to...
  5. Re: Cant get the ball to bounce around the canvass

    I thought Canvas was the only way to get direct rendering with Java2D?
Results 1 to 5 of 5