• Post Reply Bookmark Topic Watch Topic
  • New Topic

add dynamic tabs to Accordion menu

 
Tai Yo
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.
 
Tim Cooke
Sheriff
Posts: 3291
153
Clojure IntelliJ IDE 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.
 
Darryl Burke
Bartender
Posts: 5152
11
Java Netbeans IDE Opera
  • 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!