๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #16221

Popup Menu

#16221
From: Martin Gaeckler
Date: Fri, 19 Mar 1999 00:00
27 lines
1366 bytes
Hi,

I have a simple applet that contains a Button, a Label, a TextField,
a GridControl and a JPopupMenu.

When the user clicks on the button I want to show the popup menu. The 
menu appears, but it is overlapped by the label and the edit control 
not the grid control. What can I do?

This is the function, that displays the menu:

	void MenuBtn_mousePressed(MouseEvent e)
	{
		this.getContentPane().add( filePopup );
		filePopup.show( this.getContentPane(), 0, 50 );
	}

I have also tried to use the MenuBtn instead of the content pane as
first argument of show. 

Martin

-- 
----------------------------------------------------------------------
Phone: +49-89-65 30 95 63                      Fax: +49-89-65 30 95 64
WWW:                               http://home.t-online.de/home/agilus
S-Mail:                                Arminiusstr. 3a D-81543 M๏ฟฝnchen
Technical Details
Message-ID: <36F273F0.8FDBDD59@mail.rmc.de>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f74b3,bd82ef26ca09ae49,start
X-Google-Attributes: gidf74b3,public
From: Martin Gaeckler <gaeckler@mail.rmc.de>
Subject: Popup Menu
Date: 1999/03/19
Message-ID: <36F273F0.8FDBDD59@mail.rmc.de>
X-Deja-AN: 456552245
Content-Transfer-Encoding: 8bit
X-Accept-Language: en
Content-Type: text/plain; charset=iso-8859-1
Organization: AGILUS mbH iG
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language