Skip to content
Advertisement

Tag: repaint

How do I print a shape in a loop? [closed]

Closed. This question needs debugging details. It is not currently accepting answers. Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question. Closed 1 year ago. Improve this question I am trying to print shapes in a loop, but when I run

Java AWT Window doesn’t get repainted

I’ve derived a class from window, but whenever I call setValue() (which calls repaint) it doesn’t get redrawn (the method is called, but nothing changes on the screen). The first value is drawn, which is 0 by default. Here’s the class: Why does it not get repainted properly? Answer From the oracle docs If [the update] method is reimplemented, super.update(g)

Advertisement