🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #12451

Re: JPopupMenu gets clipped

#12451
From: Matt Krevs
Date: Tue, 05 Jan 1999 00:00
17 lines
1098 bytes
Maybe try calling

setDefaultLightWeightPopupEnabled(false)

I think this will make the popup a heavyweight component all the time and
will make it appear on top of other things.

Vidur Dhanda wrote in message <368B8D61.4981F58@active-solutions-inc.com>...
>When I need to show a JPopupMenu with .show (component, x, y), the
>easiest way is to pass the MouseEvent's source and x, y as the
>arguments.  However, if the mouse event happens near the edge of the
>component, then the popup menu gets clipped to the bounds of the
>component.  How can I avoid this?
>
>TIA
>Vidur
>
Technical Details
Message-ID: <76rdq9$8vn13@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <368B8D61.4981F58@active-solutions-inc.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,26f7a98056a183d5
X-Google-Attributes: gid111d45,public
From: "Matt Krevs" <mattkrevs@flex.com.au>
Subject: Re: JPopupMenu gets clipped
Date: 1999/01/05
Message-ID: <76rdq9$8vn13@forums.borland.com>
X-Deja-AN: 428781148
References: <368B8D61.4981F58@active-solutions-inc.com>
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.swing