@slow coral has a question:
if u repaint do u have to add the object in again (this is such a short question pls just let me have it here)
1 messages · Page 1 of 1 (latest)
@slow coral has a question:
if u repaint do u have to add the object in again (this is such a short question pls just let me have it here)
<@&987246399047479336> please have a look, thanks.
can you give more context
what exactly do you mean by repaint? you talking about swing?
yep
i have added my graphics
and now im repainting it
do i have to add it again?
can you share your current code
im not sure if that helps tho
all im asking is if i have to add g again after i repaint g
/help-thread close
what are you adding g to?
the panel
yep
oh
i mean no
xD
g being the class
of public void paintComponent(Graphics g) {
well g is Graphics
im confused. you cant add Graphics to a container
im adding the class of paintComponent
ye :p
alr then something else is wrong with my code but i think i can figure that out :p
/help-thread close
Closed the thread.