Click to See Complete Forum and Search --> : JPopupMenu works but JMenuItems not appearing


Dominic Zaza
February 17th, 1999, 08:36 AM
I have added a JPopupMenu to my JTable off the event of the right mouse

button.

My JPopupMenu displays but the JMenuItems within it are not appearing.

I have made a call to the JPopupMenu to set lightweight to false.

However, while stepping through the code I noticed it is creating a MEDIUM_WEIGHT_POPUP instead of a HEAVY_WEIGHT_POPUP.

I noticed that if I right click close enough to the edge of the border, that

the code detects this and thus creates a HEAVY_WEIGHT_POPUP. From then on in,

it works fine. My problem is to force to create a HEAVY_WEIGHT_POPUP from the onset.


Any ideas...

Thanks in advance.


-Dominic