hi new mates, its just my first time, here. hello. i hope i cant state my ideas properly.
im about to create a , you can say a complex GUI, which will have tons of animated and customized Components such as Panels(panes) Buttons etc.. , and as of now, im on the start, trying to create a sliding looking pop window made from JPanel, by using
Thread handling, i manage to make the panel 'appear' just like what i want, it slides from a certain point up to the desired dimension, via paintComponent and some Thread tweaking(well im not sure if what im doing is efficient or proper ), i was able to do the task, the problem is on 'removing'. for a certain command like 'click' , the 'window looking JPanel' will be removed vice versa of how it appeared, when i try to remove it, the code that i wrote REMOVES the 'window looking JPanel' but
at some point it LEAVES A
RESIDUE(a vertical line), while i was trying to look for some bugs before i jump into another task i stuck up with this one,, ill post the code below so it can be tested , this is as short as it goes, i hope it dont bother too much
the main class
the
CustomDialogPanel -
the panel that is used to portrait a pop window looking component
the only questions i got right now, despite of how i search with the help of google friend is that,
1.)
why does it leaves a residue of the panel?
2.)
even though i try to remove it from its parentComponent , why does it still leaves a residue?
// EDIT
when i try to minimize the window(hide it), then show it again, the residue disappears