Skip to main content

Query regarding grey and white nodes

No replies
Anonymous

Hi

In JT Harness when we open a Test Suite the Tree on left side displays
"white folders" for folders containing Test Results and "Grey folders" for
folders which do not contain Test Results. Can someone please point me where
this code is...I tried finding but couldn't get it. I had a requirement for
deleting these nodes. I tried pruning the nodes but I am getting
ArrayIndexOutOfBounds exception.

Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException:
0 >= 0
at java.util.Vector.elementAt(Unknown Source)
at javax.swing.tree.DefaultMutableTreeNode.getChildAt(Unknown Source)
at javax.swing.tree.VariableHeightLayoutCache.treeNodesRemoved(Unknown S
ource)
at javax.swing.plaf.basic.BasicTreeUI$Handler.treeNodesRemoved(Unknown S
ource)
at com.sun.javatest.exec.TestTreeModel$Notifier.run(TestTreeModel.java:1
490)
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)
Exception in thread "AWT-EventQueue-0" Exception in thread "AWT-EventQueue-0" Ex
ception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 0
= 0
at java.util.Vector.elementAt(Unknown Source)
at javax.swing.tree.DefaultMutableTreeNode.getChildAt(Unknown Source)
at javax.swing.tree.VariableHeightLayoutCache.treeNodesRemoved(Unknown S
ource)
at javax.swing.plaf.basic.BasicTreeUI$Handler.treeNodesRemoved(Unknown S
ource)
at com.sun.javatest.exec.TestTreeModel$Notifier.run(TestTreeModel.java:1
490)
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)
java.lang.ArrayIndexOutOfBoundsException: 0 >= 0
at java.util.Vector.elementAt(Unknown Source)
at javax.swing.tree.DefaultMutableTreeNode.getChildAt(Unknown Source)
at javax.swing.tree.VariableHeightLayoutCache.treeNodesRemoved(Unknown S
ource)
at javax.swing.plaf.basic.BasicTreeUI$Handler.treeNodesRemoved(Unknown S
ource)
at com.sun.javatest.exec.TestTreeModel$Notifier.run(TestTreeModel.java:1
490)
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)
java.lang.ArrayIndexOutOfBoundsException: 0 >= 0
at java.util.Vector.elementAt(Unknown Source)
at javax.swing.tree.DefaultMutableTreeNode.getChildAt(Unknown Source)
at javax.swing.tree.VariableHeightLayoutCache.treeNodesRemoved(Unknown S
ource)
at javax.swing.plaf.basic.BasicTreeUI$Handler.treeNodesRemoved(Unknown S
ource)
at com.sun.javatest.exec.TestTreeModel$Notifier.run(TestTreeModel.java:1
490)
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)

Thanks in advance.

Regards,
Anuj
http://anuj-mehta.blogspot.com/
[att1.html]

Attachment not added (general error): "att1.html"