Article View: borland.public.jbuilder.java.swing
Article #12453Re: JPopupMenu gets clipped
From: Vidur Dhanda
Date: Mon, 04 Jan 1999 00:00
Date: Mon, 04 Jan 1999 00:00
25 lines
1621 bytes
1621 bytes
I am quite certain that it is not a swing/awt issue. When the x,y is such that there is enough space for the popup, the complete popup shows. It really appears to be clipped to the component's bounds. What is the "standard" way of showing the popup? In the component that owns the popup or somewhere higher up along the hierarchy? Vidur Vasudevan Srinivasan wrote: > Hi > Are you sure you are not mixing awt and swing ? If you are mixing it, > then the invisible part of popup menu is probably over the awt > components. > > Vidur Dhanda wrote: > > > 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:
<36912DED.B85BA5F4@active-solutions-inc.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<368B8D61.4981F58@active-solutions-inc.com> <3690D095.DDBD27EA@netrisk.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: Vidur Dhanda <vdhanda@active-solutions-inc.com> Subject: Re: JPopupMenu gets clipped Date: 1999/01/04 Message-ID: <36912DED.B85BA5F4@active-solutions-inc.com> X-Deja-AN: 428764165 Content-Transfer-Encoding: 7bit References: <368B8D61.4981F58@active-solutions-inc.com> <3690D095.DDBD27EA@netrisk.com> To: Vasudevan Srinivasan <vasudevan@netrisk.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Active Solutions, Inc. Mime-Version: 1.0 Reply-To: vdhanda@active-solutions-inc.com Newsgroups: borland.public.jbuilder.java.swing