Article View: comp.lang.java.gui
Article #50need a model JPopupMenu()....
From: Peter Meulmeester
Date: Mon, 01 Nov 1999 00:00
Date: Mon, 01 Nov 1999 00:00
22 lines
1499 bytes
1499 bytes
Hello, I need a model JPopupMenu(). (unfortunatly). For a quick port of a C program I need to call this popupmenu from the C code. I have the popup & actions all figured out, JNI also works fine, using jdk1.2.2. But after I call myPopup.show(null, x, y); in Java the thread offcourse continues. Because I call the Java method where this menu is popped up from C (which needs an answer straight away) 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:
<941474546.451433@newsreader1.wirehub.nl>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,cd85dcc428bc89b9,start X-Google-Attributes: gid111d45,public X-Google-Thread: 10fd6d,cd85dcc428bc89b9,start X-Google-Attributes: gid10fd6d,public From: "Peter Meulmeester" <pmeulm@eta.nl> Subject: need a model JPopupMenu().... Date: 1999/11/01 Message-ID: <941474546.451433@newsreader1.wirehub.nl> X-Deja-AN: 543143858 Cache-Post-Path: newsreader1.wirehub.nl!unknown@ip195-86-48-181.dyn.wirehub.net X-Trace: louie.wirehub.nl 941474546 277 195.86.128.18 Organization: Wirehub! Internet, The Netherlands X-MSMail-Priority: Normal X-Priority: 3 X-Cache: nntpcache 2.3.3 (see http://www.nntpcache.org/) Newsgroups: comp.lang.java.gui,borland.public.jbuilder.java.swing X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300