• 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
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
  • paul wheaton
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Rob Spoor
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:

Problem with tabbed panes

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

I was trying to create tabbed pane each pane name 'AuthorOne' , 'Authortwo' and 'Authorthree' ; however all having the same fuctionality. That is, on clicking any one of the three tabs, you get to see the same panel. The panel that I have added to all three tabs is Panel1, however on running the code I see only author 3 tab...what happened to authorone and author2 tab. Please note that panel1 contains another 2 panels with buttons and textarea.

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

You may want the same panel object on each of the tabs, but you will need a separate instance of the panel for each. You are basically adding the same component to the tabbed pane three times, and renaming it each time. Thus, the last name is the one displayed.
Create three of whatever panel1 is, and add those three objects to the tabbed pane.

Hope that helps,

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

I thought of that, however panel1 contains panel2 and panel3 which again contains a number of components. So do I again rewrite the entire code?

Even if I do some thing like:



it dosen't seem to work,,,only the Author Three tab displays.
 
Author
Posts: 986
3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you don't want the tabs to actually control what appears underneath, you could try something like this:
 
I AM MIGHTY! Especially when I hold this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic