Search:

Type: Posts; User: Cornix

Search: Search took 0.11 seconds.

  1. Re: How does repaint work in combination with paintComponent (Graphics class)?

    The call to "super.paintComponent(g);" within your JPanel will invoke the default painting of panels. The default is to clear everything with the background color.
    In this case your panel will...
  2. Re: How does repaint work in combination with paintComponent (Graphics class)?

    repaint() does NOT paint the component. The only thing it does is mark your component to indicate that it needs to be repainted at some point in the future. When this will be is hard to say, its up...
Results 1 to 2 of 2