JPopupMenu in a ScrollPane
At present there is a JButton and when I click the JButton, JPopupMenu will be dispalyed below the JButton (similar to the popup in combobox kind of stuff.....)I am adding many menu items in the JPopupMenu. Upto this everything is fine.
But, I want to put all the menu items to a scrollable JPopupMeny.Like if there are many menu items then I have to put those items in the scollable popup so that I can navigate using scrollbar when there are many meni items.
I think I can add a JScrollPane to the JPopupMenu and put a JList inside...But I havent implemented that and I wish to know whether I can finish this with JPopupMenu and MenuItems as I didn't like the solution I said :-).
Thanks in advance,