Article View: comp.lang.java.gui
Article #49Re: repost: How to build a modal JPopupMenu()?
From: c22j
Date: Wed, 03 Nov 1999 00:00
Date: Wed, 03 Nov 1999 00:00
59 lines
2354 bytes
2354 bytes
It seems that you have an idea to open a Java dialog modal to a window in C. Can you tell me how to do this? I have a similar situation to open a Java Dialog/WindowFrame from a C window program. The Java window opened has to maintain the parent-child and modal relationship with the C window. I have had a difficult time to do the conversion between Java window class and C window handle. Opening a Java window by null owner/parent will cause a lot of problems although it hides the parent window from user's access. Let me know how you handle opening a Java dialog from C window program as you said that you could build a modal dialog (assumed in Java). Thanks in advance. James In article <941528289.807878@newsreader2.wirehub.nl>, "Peter Meulmeester" <pmeulm@eta.nl> wrote: > 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 > > Sent via Deja.com http://www.deja.com/ Before you buy.
Technical Details
Message-ID:
<7vprup$5gs$1@nnrp1.deja.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<941528289.807878@newsreader2.wirehub.nl>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,f1f22acc0bce05d6 X-Google-Attributes: gid111d45,public X-Google-Thread: 10fd6d,f1f22acc0bce05d6 X-Google-Attributes: gid10fd6d,public From: c22j@my-deja.com Subject: Re: repost: How to build a modal JPopupMenu()? Date: 1999/11/03 Message-ID: <7vprup$5gs$1@nnrp1.deja.com> X-Deja-AN: 544003100 References: <941528289.807878@newsreader2.wirehub.nl> X-Http-Proxy: 1.0 x25.deja.com:80 (Squid/1.1.22) for client 209.226.173.85 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Wed Nov 03 17:38:33 1999 GMT X-MyDeja-Info: XMYDJUIDc22j Newsgroups: comp.lang.java.gui,borland.public.jbuilder.java.swing X-Http-User-Agent: Mozilla/4.04 [en] (OS/2; U)