size of jpopupmenu

i m using jpopupmenu in my application, and i have used show() method to display the menu. but the size of the popup menu is so small that even the menus are not visible in it. how can i increase the size of the popup menu.
[230 byte] By [amitrana83a] at [2007-11-27 8:22:57]
# 1

You have a problem in you code. The popup menu sizes automatcially based on the preferred size of the components added to the menu.

If you need further help then you need to create a "Short, Self Contained, Compilable and Executable, Example Program (SSCCE)",

see http://homepage1.nifty.com/algafield/sscce.html,

that demonstrates the incorrect behaviour, because I can't guess exactly what you are doing based on the information provided.

Don't forget to use the "Code Formatting Tags",

see http://forum.java.sun.com/help.jspa?sec=formatting,

so the posted code retains its original formatting.

camickra at 2007-7-12 20:11:46 > top of Java-index,Desktop,Core GUI APIs...