> Ive got a swing application with quite a lot of code. With several JFrames
> being created at various stages.
[quoted text clipped - 44 lines]
> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
> at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
>> Ive got a swing application with quite a lot of code.
..
>> Anybody any ideas on how to find the problem here??
..
>> Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException
>> at javax.swing.LayoutComparator.compare(LayoutComparator.java:72)
...
>> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
>> at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
>>
> Can we see the relevant code segments?
Since the OP has 'quite a lot of code' and every one of those
stack trace lines referred to a Sun class, it might be a bit
tricky for the OP to determine what he 'relevant code segments' are.
OTOH, preparing an SSCCE that displays (or resolves) the
problem might be worthwhile.
<http://www.physci.org/codes/sscce.jsp>

Signature
Andrew Thompson
physci.org 1point1c.org javasaver.com lensescapes.com athompson.info
"..When after all, it was you and me."
The Rolling Stones 'Sympathy For The Devil'