• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

add dynamic tabs to Accordion menu

 
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • 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: 4633
300
IntelliJ IDE Clojure Java
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
  • 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?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!