Search:

Type: Posts; User: copeg

Search: Search took 0.09 seconds.

  1. Replies
    5
    Views
    1,696

    Re: Help with repaint

    The cercle references are remade every call to paint - they are not being reused. Thus every call to addX/Y is lost when the reference is assigned a new value


    That is exactly what you are doing...
  2. Replies
    5
    Views
    1,696

    Re: Help with repaint

    Please define "Doesn't work". For what its worth, you should consider drawing within a JPanel, and override the paintComponent method (as opposed to drawing directly in a JFrame using paint)
Results 1 to 2 of 2