Skip to main content

java popupmenu height

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
No replies
darkcrawler
Offline
Joined: 2009-02-05
Points: 0

I have a Java swing popupmenu with a couple of menuItems.

Is there any way to increase the size of the popup keeping the same number of menuItems? For example, add 10px before the 1st menuItem and 10px after the last menuItem.

How can I do this? Can someone give me an hint?

Thanks