# IgnitionDesigner cannot be cast to javax.swing.JComponent

**URL:** <https://forum.inductiveautomation.com/t/ignitiondesigner-cannot-be-cast-to-javax-swing-jcomponent/5761>\
**Category:** Ignition\
**Created:** [January 29, 2013, 6:18pm UTC](https://forum.inductiveautomation.com/t/ignitiondesigner-cannot-be-cast-to-javax-swing-jcomponent/5761 "2013-01-29T18:18:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cbabb](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cbabb/32/49029_2.png) [@cbabb](https://forum.inductiveautomation.com/u/cbabb)\
**Post date:** [January 29, 2013, 6:18pm UTC](https://forum.inductiveautomation.com/t/ignitiondesigner-cannot-be-cast-to-javax-swing-jcomponent/5761/1 "2013-01-29T18:18:04Z")

</div>

hey guys…

Version 7.5.5 (b1255), Java version 7u11

The problem of being in the designer in preview mode and then clicking on a component in the project browser, other than the root container, still exists and generates the javax.swing.JComponent error

The error window is no longer popping up, but this error still shows up in the console:

`Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: com.inductiveautomation.ignition.designer.IgnitionDesigner cannot be cast to javax.swing.JComponent
	at com.inductiveautomation.factorypmi.application.components.util.FPMILayout.getOffsettingParent(FPMILayout.java:577)
	at com.inductiveautomation.factorypmi.designer.workspace.WindowWorkspace$Delegate.getOffsettingParent(WindowWorkspace.java:2729)
	at com.inductiveautomation.factorypmi.designer.workspace.WindowWorkspace$Delegate.convertRectSpecial(WindowWorkspace.java:2673)
	at com.inductiveautomation.factorypmi.designer.workspace.WindowWorkspace$Delegate.getBounds(WindowWorkspace.java:2653)
	at com.inductiveautomation.ignition.designer.designable.tools.SelectionTool.getStatusBarText(SelectionTool.java:393)
	at com.inductiveautomation.ignition.designer.designable.AbstractDesignableWorkspace.updateStatusBarText(AbstractDesignableWorkspace.java:157)
	at com.inductiveautomation.ignition.designer.designable.AbstractDesignableWorkspace$3.itemSelectionChanged(AbstractDesignableWorkspace.java:134)
	at com.inductiveautomation.ignition.designer.designable.AbstractDesignableWorkspace.fireSelectedItemsChanged(AbstractDesignableWorkspace.java:261)
	at com.inductiveautomation.ignition.designer.designable.AbstractDesignableWorkspace.setSelectedItems(AbstractDesignableWorkspace.java:244)
	at com.inductiveautomation.factorypmi.designer.model.navtree.AbstractTopLevelContainerNode.onChildrenSelected(AbstractTopLevelContainerNode.java:275)
	at com.inductiveautomation.ignition.designer.navtree.model.AbstractNavTreeNode.dispatchSelectionEvent(AbstractNavTreeNode.java:624)
	at com.inductiveautomation.ignition.designer.navtree.model.AbstractNavTreeNode.dispatchSelectionEvent(AbstractNavTreeNode.java:620)
	at com.inductiveautomation.ignition.designer.navtree.model.AbstractNavTreeNode.dispatchSelectionEvent(AbstractNavTreeNode.java:620)
	at com.inductiveautomation.ignition.designer.navtree.NavTreePanel$SelectionListener.valueChanged(NavTreePanel.java:437)
	at javax.swing.JTree.fireValueChanged(Unknown Source)
	at javax.swing.JTree$TreeSelectionRedirector.valueChanged(Unknown Source)
	at javax.swing.tree.DefaultTreeSelectionModel.fireValueChanged(Unknown Source)
	at javax.swing.tree.DefaultTreeSelectionModel.notifyPathChange(Unknown Source)
	at javax.swing.tree.DefaultTreeSelectionModel.setSelectionPaths(Unknown Source)
	at javax.swing.tree.DefaultTreeSelectionModel.setSelectionPath(Unknown Source)
	at javax.swing.JTree.setSelectionPath(Unknown Source)
	at javax.swing.plaf.basic.BasicTreeUI.selectPathForEvent(Unknown Source)
	at javax.swing.plaf.basic.BasicTreeUI$Handler.handleSelection(Unknown Source)
	at javax.swing.plaf.basic.BasicTreeUI$Handler.mousePressedDND(Unknown Source)
	at javax.swing.plaf.basic.BasicTreeUI$Handler.mousePressed(Unknown Source)
	at java.awt.AWTEventMulticaster.mousePressed(Unknown Source)
	at java.awt.AWTEventMulticaster.mousePressed(Unknown Source)
	at java.awt.Component.processMouseEvent(Unknown Source)
	at javax.swing.JComponent.processMouseEvent(Unknown Source)
	at java.awt.Component.processEvent(Unknown Source)
	at java.awt.Container.processEvent(Unknown Source)
	at java.awt.Component.dispatchEventImpl(Unknown Source)
	at java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.awt.Component.dispatchEvent(Unknown Source)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
	at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
	at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
	at java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.awt.Window.dispatchEventImpl(Unknown Source)
	at java.awt.Component.dispatchEvent(Unknown Source)
	at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.awt.EventQueue.access$200(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
	at java.awt.EventQueue$4.run(Unknown Source)
	at java.awt.EventQueue$4.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
	at java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForFilter(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)`

---

<div class="post-metadata">

**Author:** ![James.Lorenz](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/james.lorenz/32/3290_2.png) [@James.Lorenz](https://forum.inductiveautomation.com/u/James.Lorenz)\
**Post date:** [January 29, 2013, 6:31pm UTC](https://forum.inductiveautomation.com/t/ignitiondesigner-cannot-be-cast-to-javax-swing-jcomponent/5761/2 "2013-01-29T18:31:32Z")

</div>

There is already a bug ticket in our system for this, we’ll update this thread (and [this](http://www.inductiveautomation.com/forum/viewtopic.php?f=72&t=8861) thread) when the bug is fixed.

---

<div class="post-metadata">

**Author:** ![Carl.Gould](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/carl.gould/32/7262_2.png) [@Carl.Gould](https://forum.inductiveautomation.com/u/Carl.Gould)\
**Post date:** [March 14, 2013, 5:39pm UTC](https://forum.inductiveautomation.com/t/ignitiondesigner-cannot-be-cast-to-javax-swing-jcomponent/5761/3 "2013-03-14T17:39:17Z")

</div>

This was fixed in 7.5.6
