Current Position:Home > Exception while adding a chrtpanel(component of JFreeChart) to JTextPane.

Exception while adding a chrtpanel(component of JFreeChart) to JTextPane.

Update:10-11Source: network consolidation
Advertisement
hi,
Please help for solving the following exception while adding a chrtpanel(component of JFreeChart) to JTextPane
java.lang.ArrayIndexOutOfBoundsException: No such child: 0
     at java.awt.Container.getComponent(Container.java:237)
     at javax.swing.text.ComponentView$Invalidator.cacheChildSizes(ComponentView.jav
a:399)
     at javax.swing.text.ComponentView$Invalidator.doLayout(ComponentView.java:383)
     at java.awt.Container.validateTree(Container.java:1092)
     at java.awt.Container.validate(Container.java:1067)
     at javax.swing.text.ComponentView$Invalidator.validateIfNecessary(ComponentView
.java:394)
     at javax.swing.text.ComponentView$Invalidator.getPreferredSize(ComponentView.ja
va:427)
     at javax.swing.text.ComponentView.getPreferredSpan(ComponentView.java:119)
     at javax.swing.text.FlowView$LogicalView.getPreferredSpan(FlowView.java:679)
     at javax.swing.text.FlowView.calculateMinorAxisRequirements(FlowView.java:214)
     at javax.swing.text.BoxView.checkRequests(BoxView.java:913)
     at javax.swing.text.BoxView.getMinimumSpan(BoxView.java:542)
     at javax.swing.text.BoxView.calculateMinorAxisRequirements(BoxView.java:881)
     at javax.swing.text.BoxView.checkRequests(BoxView.java:913)
     at javax.swing.text.BoxView.setSpanOnAxis(BoxView.java:325)
     at javax.swing.text.BoxView.layout(BoxView.java:682)
     at javax.swing.text.BoxView.setSize(BoxView.java:379)
     at javax.swing.plaf.basic.BasicTextUI$RootView.setSize(BasicTextUI.java:1599)
     at javax.swing.plaf.basic.BasicTextUI.getPreferredSize(BasicTextUI.java:801)
     at javax.swing.JComponent.getPreferredSize(JComponent.java:1275)
     at javax.swing.JEditorPane.getPreferredSize(JEditorPane.java:1212)
     at javax.swing.ScrollPaneLayout.layoutContainer(ScrollPaneLayout.java:769)
     at java.awt.Container.layout(Container.java:1020)
     at java.awt.Container.doLayout(Container.java:1010)
     at java.awt.Container.validateTree(Container.java:1092)
     at java.awt.Container.validateTree(Container.java:1099)
     at java.awt.Container.validateTree(Container.java:1099)
     at java.awt.Container.validateTree(Container.java:1099)
     at java.awt.Container.validateTree(Container.java:1099)
     at java.awt.Container.validateTree(Container.java:1099)
     at java.awt.Container.validateTree(Container.java:1099)
     at java.awt.Container.validateTree(Container.java:1099)
     at java.awt.Container.validateTree(Container.java:1099)
     at java.awt.Container.validateTree(Container.java:1099)
     at java.awt.Container.validate(Container.java:1067)
     at javax.swing.RepaintManager.validateInvalidComponents(RepaintManager.java:353
     at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQu
eueUtilities.java:116)
     at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
     at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
     at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.ja
va:201)
     at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
:151)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
     at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

The Best Answer

Advertisement
I tried with the following link
http://www.onjava.com/pub/a/onjava/2004/03/10/blackmamba.html?page=2
one place this one is getting solved. Some other places atill the exeception is present.
  • Exception while adding a chrtpanel(component of JFreeChart) to JTextPane. Update:10-11

    hi, Please help for solving the following exception while adding a chrtpanel(component of JFreeChart) to JTextPane java.lang.ArrayIndexOutOfBoundsException: No such child: 0      at java.awt.Container.getComponent(Container.java:237)      at javax.sw

  • Error While Adding a Software Component Update:10-11

    Hi All, While adding a software component in the SLD, i am getting the below error. Can anybody please suggest me the possible reason for the same. Storing changes to persistence failed. Please check both your J2EE engine and database are in a health

  • Proble in SC State while adding a software component into a Track Update:10-11

    Hi all, I have created a product, software component in SLD and added the dependencies to the software component in SLD and in CMS i created a track and include the software component which i have created in SLD. For this software component SC State

  • Adding a Custom Component to Check-In Operation Update:11-30

    Hi everyone, Our technical knowledge is very basic in UCM and ECM. We are trying to add a JSP component which must have some interaction with the user just before a Check-in operation which should be consumed in the client's web browser. Can anyone p

  • Declaratively adding a custom component Update:11-30

    I have extended a OAFlowLayout bean. When I add a region, the region style can be stated declaratively in the properties of the region. I would like my region to be added to that list. I imagine that I am extending JDeveloper and what it shows in the

  • Adding an application component - missing something obvious Update:11-30

    Hi, We just upgraded to portal (running server and portal on windows nt) and I am developing. We have reports already completed in reports 6i. However, I am having trouble adding them to the pages or even in the "other providers" listed in portl

  • Adding a same component in each tab of super tab navigator creates problem Update:11-30

    When a UI component is created once and added to each tab using super tab navigator in AS 3.0, the component is adding only to the last index of the tab. The component is missing in the previous tab. I have given the code below. Please help me why th

  • Not able to see sidekick on adding an external Component Update:11-30

    Hi, I am just trying to add a component in my page PFB the code for the same <div id="newEntry" style="display:none;" ><cq:include path="newEntryList" resourceType="/apps/myProj/components/blog/entryform" /

  • Adding a declarative component to another project Update:11-30

    Hi, I'm using JDev 11.1.1.1.0 I've followed the steps from this link, but I can't my component it in the Component Palette. I've added a file system connection and have the jar file available in the Resource Palette. Then I click "Add to project"

  • Error while adding ADF Business Component Update:10-11

    Hi All, I am using JDev 11.1.1.3 and trying to create a new Application. Under the Model Project of this Application when I am trying to add Business component I am getting following error: " *Wizard Open Error* *Illegal name. It is either a reserved