Swing paint method not getting called
Sometimes when I run my application the paint method does not get called from the JPanel I set as my contentpane of my JFrame
5 Replies
⌛
This post has been reserved for your question.
Hey @Noah | Nowipi! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose Post
button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
this is simplified code of what and when everything gets executed
the console shows sometimes only 'set content pane'
not paint
the docs say the paint method gets called when you show a component so I tried doing so
that's where the view.setVisible(true) comes from
Unknown User•11mo ago
Message Not Public
Sign In & Join Server To View
that's still super weird it only hapens like 1 in 10 times
and manually repaint calling didn't help
but yeah I think that did it
Post Closed
This post has been closed by <@270107388244262912>.