Hello everybody,
I have a problem with my application, because when I invoke Windows utility tool
Magnifier the following exception is thrown. Exception is thrown only when the
GLJPanel
object is seen on the screen so I thought that I should check first
here in this forum.
Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: java.awt.Container cannot be cast to javax.swing.JComponent at javax.swing.plaf.basic.BasicInternalFrameUI.installDefaults(BasicInternalFrameUI.java:124) at com.sun.java.swing.plaf.windows.WindowsInternalFrameUI.installDefaults(WindowsInternalFrameUI.java:35) at javax.swing.plaf.basic.BasicInternalFrameUI.installUI(BasicInternalFrameUI.java:92) at com.sun.java.swing.plaf.windows.WindowsInternalFrameUI.installUI(WindowsInternalFrameUI.java:45) at javax.swing.JComponent.setUI(JComponent.java:648) at javax.swing.JInternalFrame.setUI(JInternalFrame.java:370) at javax.swing.JInternalFrame.updateUI(JInternalFrame.java:386) at javax.swing.SwingUtilities.updateComponentTreeUI0(SwingUtilities.java:1206) at javax.swing.SwingUtilities.updateComponentTreeUI0(SwingUtilities.java:1221) at javax.swing.SwingUtilities.updateComponentTreeUI0(SwingUtilities.java:1221) at javax.swing.SwingUtilities.updateComponentTreeUI0(SwingUtilities.java:1221) at javax.swing.SwingUtilities.updateComponentTreeUI0(SwingUtilities.java:1221) at javax.swing.SwingUtilities.updateComponentTreeUI0(SwingUtilities.java:1221) at javax.swing.SwingUtilities.updateComponentTreeUI0(SwingUtilities.java:1221) at javax.swing.SwingUtilities.updateComponentTreeUI(SwingUtilities.java:1197) at com.sun.java.swing.plaf.windows.DesktopProperty.updateWindowUI(DesktopProperty.java:110) at com.sun.java.swing.plaf.windows.DesktopProperty.updateAllUIs(DesktopProperty.java:102) at com.sun.java.swing.plaf.windows.DesktopProperty.access$000(DesktopProperty.java:24) at com.sun.java.swing.plaf.windows.DesktopProperty$1.run(DesktopProperty.java:210) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEvent(EventQueue.java:598) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160) at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
The exception occurs always when:
- the
GLJPanel
is shown insideJInternalFrame
; - I invoke Windows accessory tool Magnifier (Windows XP SP2);
- Mustang Java builds are used (I have tested the latest builds b83, b85 and b86);
After the exception is thrown the decorations of the JInternalFrame are lost. I have
tested JOGL-1.0.0-beta4
and JOGL-1.0.0-beta5
and the exception is thrown
with both versions. The exception does not occur with tha Java SE 5.
Should I provide any further information? My simple question is, where should I
report this exception.
Kind regards,
Andrei