Article View: borland.public.jbuilder.java.swing
Article #11630Re: placement of JPopupMenu
From: Sjaak Wolfert
Date: Mon, 03 May 1999 00:00
Date: Mon, 03 May 1999 00:00
27 lines
1432 bytes
1432 bytes
Dear George, You can find examples at the Swing Connection http://java.sun.com/docs/books/tutorial/uiswing/components/index.html I once had a similar problem and it had to do with using Borland and Swing components. I thought I had a BevelPanel in my application and JPopupMenu seemed to popup behind this panel so it was not visible; only at the border of the panel when my window was not maximized. So I suggest to use only core Swing components and perhaps it will work. Sjaak Wolfert George Tryfon wrote in message <7g69ur$ks84@forums.borland.com>... >Is it possible to have a simple example of using JPopupMenu ? > >My problem is that I can only display it at the left top corner of the >screen. >How can I place it where my mouse cursor is ? >Also it needs to close of course when loosing focus. Do I need to add focus >listener ? > >Thank you again >George Tryfon >george@compucon.gr > >
Technical Details
Message-ID:
<7gji0t$3m06@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7g69ur$ks84@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,cc5145519bce95fb X-Google-Attributes: gid111d45,public From: "Sjaak Wolfert" <sjaak.wolfert@users.info.wau.nl> Subject: Re: placement of JPopupMenu Date: 1999/05/03 Message-ID: <7gji0t$3m06@forums.borland.com> X-Deja-AN: 473423804 References: <7g69ur$ks84@forums.borland.com> Organization: Another Netscape Collabra Server User X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3155.0 Newsgroups: borland.public.jbuilder.java.swing