java - JFrame using one component on two different panels makes it dissapear -
Actually I have two panels and a label. I want to show this label in precise position on both panels (I Card layout). But when I use the same component, it does not appear on any panel, but does it that it is being used only on a panel, do anyone know why?
Thank you.
No you can not do this The swing component can only have one parent.
But you can be able to create 2 JLAB objects, and give them the same model, so they always show / keep the same data.
Comments
Post a Comment