Search:

Type: Posts; User: KevinWorkman

Search: Search took 0.12 seconds.

  1. Replies
    4
    Views
    2,289

    Re: Problem with JPanel

    Efficiency has nothing to do with it. Calling getGraphics() is just plain wrong. Did you read the link I gave you?
  2. Replies
    4
    Views
    2,289

    Re: Problem with JPanel

    Sorry, but that is absolutely NOT the way to do it. If you're calling getGraphics() on a Component, you're doing something very very wrong.

    Instead, extend JPanel (or JComponent) and override its...
Results 1 to 2 of 2