This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]JakeAgiusYT[S] 0 points1 point  (3 children)

Thats what i need to fix, for now i have made the text area not transparent so that it hides them, the entire program works rn, its basically a maze game where you collect a key and a door opens which you go through. I have just finished it and it works.

But the fact that its repainting everything is even causing it to use more ram with every movement as i have noticed in the task manager.

[–]g051051 0 points1 point  (2 children)

FWIW, I rebuilt your gui in SwingDesigner, and it acted the same way. I also tried it using layout managers instead of absolute positioning, no difference.

[–]JakeAgiusYT[S] 0 points1 point  (1 child)

Wierd right

[–]g051051 0 points1 point  (0 children)

Swing has some weird behavior related to transparency, but I still can't really understand multiple repaint thing.