I am trying to create a JPopupMenu that has a scrollbar so that I can display a large number of items.
There are a couple of implementations on the web that all have problems:
http://forums.sun.com/thread.jspa?threadID=5128630
Looks correct (except for issues with separators) but if you scroll it the highlighting and selection no longer work.
http://www.beginner-java-tutorial.com/scrollable-jpopupmenu.html
Does not look like a JPopupMenu (no L&F background or highlighting) but works except for the fact you can't put JMenuItems in it - instead you have to use some hacked button.
Can anyone point me to a working solution before I try and debug either of these or write my own?