Hi,
I am having problems dealing with containers and components in my JApplet. I don't put my code because I think there is no need for it.
The main class owns the getContentPane().
Another class (let's call it class1) owns a JLayeredPane() and components that are added to it.
Another class (let's call it class2) only have components to show.
At the init(), the main class adds class1's JLayeredPane().
At a later time, class1 adds its components to its JLayeredPane(), and create a new object from class2.
Class2 is supposed to generate a variable number of components (the number of components and their properties change with time), but can't add them to class1's JLayeredPane().
How can I have the class2 components to be showed ?
Thanks for reading.