Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Scrollable Popup Menu

Status
Not open for further replies.

milage

Programmer
Jul 13, 2001
58
0
0
US
Hi,

I was wondering if it is possible to make a JPopupMenu scroll? If so how would this be done (Swing), would I have to put it into a ScrollPane or what and how would this be done?

Any help would be much appreciated!

Milage
 
I think this is possible by actually assigning it to a scroll pane. For example the datagrid object can store jcomboboxes for displaying multiple values pertaining to single entries ...so why not a popup menu. Could you though be more precise on the point of having this done? ... is it for some particular display or only for the sake of creating some mutant widget?
 
Well, it is just because the menu may have about 30 menu items in it which means it may get too big and hang of the form or the screen.

I could use a combobox to do it I spose but I would prefer to have a popup menu instead.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top