Questions tagged [repaintmanager]
19 questions
0
votes
0 answers
Java paintDirtyRegions error (NullPointerException)
I am trying to switch cards in a CardLayout from my game JPanel to my gameOver JPanel. Instead of switching screens, the game crashes. Thanks to any suggestions you may have in advance.
My Game code:
public class Game extends JPanel implements…

TheAnonymous010
- 725
- 7
- 19
0
votes
1 answer
Swing Thread Violation
While debugging a strange behaviour in Swing I found this tools:
CheckThreadViolationRepaintManager edited version by Alex Ruiz. (You must understand what this class does before answering my Question, thanks)
And i fount a thread violation in my…

zeraDev
- 381
- 1
- 3
- 16
0
votes
1 answer
Java animation and the Repaint Manager
Just hoping people can help me understand properly how the RepaintManager works when trying to create animations. Basically I am creating a program that draws and updates creatures/images to a JFrame. Each creature object contains all the…

Joss
- 125
- 1
- 7
0
votes
0 answers
How to enlarge the clip of Swing Graphics2D set by the RepaintManager
I'm stuck with Swing repaint management. I would like to blur the background of a component. I use a BufferedImage to capture and blur stuff covered by my component. On paintComponent() I paint the blured image as background.
Everything works fine…

Stephen
- 46
- 3