The moose likes Swing / AWT / SWT and the fly likes Problem in Jpopup Menu Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Problem in Jpopup Menu " Watch "Problem in Jpopup Menu " New topic

Problem in Jpopup Menu


Joined: Jul 24, 2002
Posts: 2
Hi everybody,
My problem is like this. I have Jpopupmenu object and im making it shown when i press right mouse button click. When i press mouse near the borders of the container, the part of it become invisible.
for eg, if my container object is occupying full screen and im pressing right click on the right border of the container, the popup is invisible.
What i want is, the popup menu should be visible and its location has to be properly set by calculating its x & y coordinates, even if u press near the right extreme border of the container (which occupies full screen) or pressing it at bottom of the screen.
can any one try to suggest how to solve this problem???
thanks in advance
Mahesh swami

Joined: Aug 13, 2002
Posts: 26
Try, Invoke JPopUpMenu.setDefaultLightWeightPopupEnabled(false).THis should work
I agree. Here's the link:
subject: Problem in Jpopup Menu
It's not a secret anymore!