Article View: borland.public.jbuilder.java.swing
Article #12529JDialog (Close-)Exception in IE
From: Marco L�bbering
Date: Fri, 18 Dec 1998 00:00
Date: Fri, 18 Dec 1998 00:00
58 lines
2520 bytes
2520 bytes
Dear All,
I postet the same question a few weeks ago in the applet-issues group,
but nobody could help me there with this problem:
I have written an applet and it works fine with Netscape 4.05, 4.5 and
Hotjava. When I start this applet in IE 4.72 with Sevicepack 1 there is
an exception:
Everytime when I close a dialog the following Exception occures:
Exception occurred during event dispatching:
java.lang.NullPointerException
at java/awt/LightweightDispatcher.retargetMouseEvent
at java/awt/LightweightDispatcher.processMouseEvent
at java/awt/LightweightDispatcher.dispatchEvent
at java/awt/Container.dispatchEventImpl
at java/awt/Component.dispatchEvent
at java/awt/EventDispatchThread.run
Heres the code for the Dialog:
public boolean ShowYesNoDialog()
{
Busy(true);
JOptionPane AskDialog = new JOptionPane(){
public int getMaxCharactersPerLineCount() {return 80;}
};
String[] options ={"Yes","No"};
AskDialog.setMessageType(JOptionPane.QUESTION_MESSAGE);
AskDialog.setOptionType(JOptionPane.YES_NO_OPTION);
AskDialog.setMessage((String)Retrieval.RetrievalLabels.elementAt(14));
//Vector with the information wich is displayed in the dialog
AskDialog.setOptions(options);
JDialog dialog = AskDialog.createDialog(D3WWWClient.container1,
(String)Retrieval.RetrievalLabels.elementAt(13)); //Element 13 == title
dialog.setModal(true);
dialog.setSize(dialog.getSize().width+5,dialog.getSize().height+5);
//Solve sizebug in Hotjava
dialog.show();
//Which Button was klicked?:
Object selectedValue = AskDialog.getValue();
dialog.dispose();
Busy(false);
if
(selectedValue.equals((String)Retrieval.RetrievalLabels.elementAt(15)))
//Element15 =="YES"
return true;
else
return false;
}
Is there a fatal Error in my code? Or is it an IE-Bug?
I hope somebody helps me with this.
Thank you very much,
LMarco
Technical Details
Message-ID:
<367A202D.FF14EE84@gmx.net>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,bef22fa3795ee47e,start X-Google-Attributes: gid111d45,public From: "Marco L�bbering" <LMarco@gmx.net> Subject: JDialog (Close-)Exception in IE Date: 1998/12/18 Message-ID: <367A202D.FF14EE84@gmx.net> X-Deja-AN: 423560450 Content-Transfer-Encoding: 7bit Organization: Another Netscape Collabra Server User Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing