How to create scrollable JPopupMenu

I am trying to create a JPopupMenu that has a scrollbar so that I can display a large number of elements.

There are several implementations on the Internet that have problems:

Can someone point me to a working solution before I try to debug this or write it myself?

+3
source share
2 answers

My suggestion would be to not use the popup menu if it is large.

Most current OS user recommendations would also suggest this. A menu that will be large will become a nightmare for the user to find something if necessary to scroll, right?

How to enable a popup / dialog with a filtered list?

(e.g. CTRL + O popup filter tree in eclipse or CTRL + Space Content Assist list in eclipse)

+4
source

I agree with John Gardner, you should use dialogue. We used swingx filter components, they are very good for filtering ...

+1
source

Source: https://habr.com/ru/post/1702440/


All Articles