This week's book giveaway is in the Testing forum. We're giving away four copies of The Way of the Web Tester: A Beginner's Guide to Automating Tests and have Jonathan Rasmusson on-line! See this thread for details.
How to add a single component (say a Button) to multiple panels? The requirement is to show only one panel at a given instance but at the time of initialising the class I am adding all the components to the panels. (same components are added to 2 panels). But while showing the First panel the components added to the First panel are not shown and are only displayed if the shown panel is Second One.
Pls. clarify or help me out with this ...
posted 11 years ago
You can only add a component to one container. If you add it to another it is removed from the first and added to the second. You must make a new component for each use. You can however use the same reference...