fails under XP

I have an application that runs fine under win2000 but under winXP I have the following error. The problem here is I cannot find whats causing the error in my code, I dont have any internal frames...

java.lang.ClassCastException

at com.sun.java.swing.plaf.windows.WindowsInternalFrameUI$XPBorder.paintBorder(Unknown Source)

at javax.swing.JComponent.paintBorder(Unknown Source)

at javax.swing.JComponent.paint(Unknown Source)

at javax.swing.JComponent.paintWithOffscreenBuffer(Unknown Source)

at javax.swing.JComponent.paintDoubleBuffered(Unknown Source)

at javax.swing.JComponent._paintImmediately(Unknown Source)

at javax.swing.JComponent.paintImmediately(Unknown Source)

at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)

at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source)

at java.awt.event.InvocationEvent.dispatch(Unknown Source)

at java.awt.EventQueue.dispatchEvent(Unknown Source)

at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.run(Unknown Source)

[1355 byte] By [parano279a] at [2007-9-30 0:17:30]
# 1
I hear that some people are having problems with the native look and feel on XP. Try the defaul look and feel if that is the case.
masnarea at 2007-7-16 4:46:27 > top of Java-index,Archived Forums,Swing...
# 2
Ok, I did like you said and it fixed the problem.. I commented the following line in my code...//UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());now it loads with metalLookAndFeel (default) but it works..thanks a lot..
parano279a at 2007-7-16 4:46:27 > top of Java-index,Archived Forums,Swing...
# 3
Just experiment with your setBorder() options if you want an XP look and feel
The-Suea at 2007-7-16 4:46:27 > top of Java-index,Archived Forums,Swing...