Name: mf23781 Date: 11/06/98
There is a testcase available a Java Bean MyButton.class.
Here is the text from the readme.txt in the test case :-
MyButton is just a button that fires a MessageEvent
to a MessageListener via the showMessageBox(MessageEvent e)
method.
ReceiveEvent implements MessageListener and puts up
a dialog with the message in MessageEvent when it gets
the event from showMessageBox.
This works wonderful in the java world. You can use the
MyButtonTest.html in appletviewer to test this. It's a
blow and go demo, you shouldn't need to do anything but
load the html file unless I screwed up something.
HERE'S THE PROBLEM:
When running this as an ActiveX control in VB5, the
dialog will be displayed, but only half painted, and
then VB and the dialog will hang.
I think the problem is this: ReceiveEvent.showMessageBox
displays a modal dialog. Modal means Dialog.show doesn't
return until the user hits OK. But the user can't hit OK
because the dialog hangs. Is it hanging because it's locked
out the main UI thread ?
======================================================================
- duplicates
-
JDK-4192193 Modal Dialog : Visual basic hangs when a bean creates a modal dialog
-
- Resolved
-