• 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

add dynamic tabs to Accordion menu

 
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
By using this sample I have created Accordion menu.
The layout of Accordion menu looks like this:
-----------
Tab 1
-Item1
-Item2
-Item3
----------
Tab 2
-Item1
-Item2
-Item3
----------

Also I have "Add tab" and "Delete tab" buttons that adding and deleting tabs dynamically.
The problem is appeared when I want to add more than +20 tabs.
In that case Accordion menu become invisible, because the size of tabs and its items become smaller and finally disappeared.
I don't have any idea how to solve this problem.
Any help is really appreciated.
 
Sheriff
Posts: 5555
326
IntelliJ IDE Python Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What would you want to happen instead?

Why would you want lots and lots of tabs anyway? It's a pretty poor user experience, just like when I have too many tabs open on my internet browser.
 
Tai Yo
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Each Item of Tab included jTextFields and jComboBoxes and user save their values to text file. There are can be 5 or 50 Items so it's depends from user.
 
Bartender
Posts: 5167
11
Netbeans IDE Opera Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What happens if you wrap your accordion in a JScrollPane?
 
Tai Yo
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
At this time I am trying to enclose accordion in a JScrollPane by this code:


But no influence, cannot wrap in JScrollPane. Maybe something is wrong with code?
 
reply
    Bookmark Topic Watch Topic
  • New Topic