krageon / HUSACCT

A fork of HUSACCT main for team 2, working on the 'graphics' component.
MIT License
0 stars 0 forks source link

Fix those stupid classcastexceptions #18

Open krageon opened 11 years ago

krageon commented 11 years ago

They occur everywhere and it looks terrible. An example, which could be replicated by double clicking a node a couple of times (ie zooming) in the test project:

WARN AWT-EventQueue-0 - Tried to draw modules for "Domain Layer", but it has no children. Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException at javax.swing.LayoutComparator.compare(Unknown Source) at javax.swing.LayoutComparator.compare(Unknown Source) at java.util.TimSort.gallopLeft(Unknown Source) at java.util.TimSort.mergeHi(Unknown Source) at java.util.TimSort.mergeAt(Unknown Source) at java.util.TimSort.mergeForceCollapse(Unknown Source) at java.util.TimSort.sort(Unknown Source) at java.util.TimSort.sort(Unknown Source) at java.util.Arrays.sort(Unknown Source) at java.util.Collections.sort(Unknown Source) at javax.swing.SortingFocusTraversalPolicy.enumerateAndSortCycle(Unknown Source) at javax.swing.SortingFocusTraversalPolicy.getFocusTraversalCycle(Unknown Source) at javax.swing.SortingFocusTraversalPolicy.getComponentAfter(Unknown Source) at javax.swing.LayoutFocusTraversalPolicy.getComponentAfter(Unknown Source) at java.awt.Component.getNextFocusCandidate(Unknown Source) at java.awt.DefaultKeyboardFocusManager.doRestoreFocus(Unknown Source) at java.awt.DefaultKeyboardFocusManager.restoreFocus(Unknown Source) at java.awt.DefaultKeyboardFocusManager.dispatchEvent(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.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)