D
daniel.w.gelder
Hi, I have a problem that i can't find mentioned in the archives here.
I have a JApplet that gets switched around between states and when the
states change I want to show different controls. I can
getContentPane().remove() the controls i don't want and then repaint()
and that works great. But when I getContentPane().add(newControl, 0)
(the 0 is to put it on top) then *sometimes* it shows and sometimes
not, differently across launches even. I can sometimes resize the
applet to make the stuff show, and then it does, but only after a lot
of jiggling the resize box. Different types of controls seem to work
different ways, for example I have a JSplitPane that doesn't show up
without jiggling, but if i put it in a JPanel first it shows up right
away.
It's not a threading issue, I do the work on a click.
Anyone ever heard of this?? Thanks.
I have a JApplet that gets switched around between states and when the
states change I want to show different controls. I can
getContentPane().remove() the controls i don't want and then repaint()
and that works great. But when I getContentPane().add(newControl, 0)
(the 0 is to put it on top) then *sometimes* it shows and sometimes
not, differently across launches even. I can sometimes resize the
applet to make the stuff show, and then it does, but only after a lot
of jiggling the resize box. Different types of controls seem to work
different ways, for example I have a JSplitPane that doesn't show up
without jiggling, but if i put it in a JPanel first it shows up right
away.
It's not a threading issue, I do the work on a click.
Anyone ever heard of this?? Thanks.