🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.java.gui
Article #51

repost: How to build a modal JPopupMenu()?

#51
From: Peter Meulmeester
Date: Tue, 02 Nov 1999 00:00
21 lines
1618 bytes
Hello,

I made an unfortunate typo in my last header, model instead of modal.

I need advice on a modal JPopupMenu(). For a quick port of a C program
I need to call this
popupmenu from the C code in a DLL. I have the popup & actions all figured
out, JNI
also works fine, it is purely a Java problem. I am using jdk1.2.2.

After I call myPopup.show(null, x, y); in Java the thread offcourse
continues. I need to wait after myPopup.show(null, x, y); untill the user
makes a
choice. Threads and how to stop them are not my strong points...

Any ideas on how to do this?
(I could build a modal dialog, but prefer a solution with the standard
JPopupMenu())

best regards,
Peter
Technical Details
Message-ID: <941528289.807878@newsreader2.wirehub.nl>
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,f1f22acc0bce05d6,start
X-Google-Attributes: gid111d45,public
X-Google-Thread: 10fd6d,f1f22acc0bce05d6,start
X-Google-Attributes: gid10fd6d,public
From: "Peter Meulmeester" <pmeulm@eta.nl>
Subject: repost: How to build a modal JPopupMenu()?
Date: 1999/11/02
Message-ID: <941528289.807878@newsreader2.wirehub.nl>
X-Deja-AN: 543420477
Cache-Post-Path: newsreader2.wirehub.nl!unknown@ip195-86-48-11.dyn.wirehub.net
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
X-Complaints-To: abuse@wirehub.net
X-Trace: thor.wirehub.nl 941528291 70766 195.86.128.19 (2 Nov 1999 07:38:11 GMT)
Organization: Wirehub! Internet, The Netherlands
X-MSMail-Priority: Normal
X-Cache: nntpcache 2.3.3 (see http://www.nntpcache.org/)
NNTP-Posting-Date: 2 Nov 1999 07:38:11 GMT
Newsgroups: comp.lang.java.gui,borland.public.jbuilder.java.swing