🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Get width of JPopupMenu

#10223
From: David Sykes
Date: Fri, 29 Oct 1999 00:00
12 lines
845 bytes
Hello all,

I have a JPopupMenu that I would like to place to the left of a given
control. Unfortunately, all of the getSize(), getWidth(), getBounds()
methods return a width of 0 before the menu is displayed.

Does anybody know of a way to get the width of the popup _BEFORE_ it is
displayed?

Thanks in advance,
David Sykes
edv consulting
Technical Details
Message-ID: <7vbpgd$osv4@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,49b67961a3be5cd1,start
X-Google-Attributes: gid111d45,public
From: "David Sykes" <SykesD@bigfoot.com>
Subject: Get width of JPopupMenu
Date: 1999/10/29
Message-ID: <7vbpgd$osv4@forums.borland.com>
X-Deja-AN: 541993798
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Organization: Another Netscape Collabra Server User
X-MSMail-Priority: Normal
Newsgroups: borland.public.jbuilder.java.swing