How are you *Sure* you're doing you event dispatching on the event
dispatching thread?
-----Original Message-----
From: Perico [mailto:[EMAIL PROTECTED]]
Sent: 16 January 2001 15:16
To: [EMAIL PROTECTED]
Subject: Show throws a NullPointerException.
Hello,
I've got a serious problem.
I have a little application in which sometimes I get a NullPointerException
when I invoke the show() method
in a class that extends JDialog. It implies that my GUI is definitely
frozen when this occurs.
Sometimes ago, I had a similar problem because I accessed GUI components
from outside the event dispatching thread. However, this time I'm
absolutely sure I do the 'show' in the event dispatching thread.
The exception trace I get is the following:
java.lang.NullPointerException at
java.util.WeakHashMap$WeakKey.create(Compiled Code) at
java.util.WeakHashMap$WeakKey.access$0(Compiled Code) at
java.util.WeakHashMap.get(Compiled Code) at
java.util.Collections$SynchronizedMap.get(Compiled Code) at
sun.awt.SunToolkit.targetToAppContext(Compiled Code) at
sun.awt.windows.WComponentPeer.postEvent(Compiled Code) at
sun.awt.windows.WToolkit.eventLoop(Native Method) at
sun.awt.windows.WToolkit.run(WToolkit.java:134) at
java.lang.Thread.run(Compiled Code)
Please if you have some idea about how can I solve this problem or where I
can get information about it, tell me.
Thanks a lot.
_______________________________________________
Swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/swing
**********************************************************************
This email is intended only for the addressee. This email
and any files transmitted with it may contain confidential
or privileged information. If you are not the named
addressee or the person responsible for delivering the
message to the named addressee, please contact
[EMAIL PROTECTED]
This email has been scanned by MAILsweeper.
**********************************************************************
_______________________________________________
Swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/swing