• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

one component .. multiple panels

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

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 ...

Regards,
Sanjeev.
 
Ranch Hand
Posts: 1535
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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...
 
reply
    Bookmark Topic Watch Topic
  • New Topic