Avatar of harlanhugh
harlanhugh
 asked on

how to make a scrollable menu inside a sub menu

I have a menu that will show a sub menu. The sub menu could have 100 options. If this many exist the options will go off the screen and the user will not be able to select them. Is there any way of adding a scrollable pane inside a JMenu?

If not is there a way I can keep the parent JMenu visible when we show the new component which allows for a scrollable pane but is not a sub-menu of the parent JMenu.
Java

Avatar of undefined
Last Comment
harlanhugh

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Mick Barry

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
Jim Cakalic

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
harlanhugh

ASKER
thanks! we are compatible with Java 1.4 so that do not have the freedom to use a newer Java version; and, yes, 1.4 does not support menu scrolling.
finally we used BasicComboPopup (and JList) to replace the basic submenu Popup used in JMenu; worked. however, a lot of pains of tuning up its behavior.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck