Page 1 of 1

Tools add

Posted: Sun Sep 21, 2014 7:02 am
by 17470153
Hello,
When trying to add tools to the chart at runtime i get

Code: Select all

java.lang.NullPointerException
	at javax.swing.ImageIcon.<init>(ImageIcon.java:181)
	at com.steema.teechart.editors.Renderer.getListCellRendererComponent(ToolsGallery.java:341)
	at javax.swing.plaf.basic.BasicListUI.updateLayoutState(BasicListUI.java:1344)
	at javax.swing.plaf.basic.BasicListUI.maybeUpdateLayoutState(BasicListUI.java:1294)
	at javax.swing.plaf.basic.BasicListUI.getPreferredSize(BasicListUI.java:561)
	at javax.swing.JComponent.getPreferredSize(JComponent.java:1634)
	at javax.swing.ScrollPaneLayout.layoutContainer(ScrollPaneLayout.java:769)
	at java.awt.Container.layout(Container.java:1421)
This is in my application, but it must also happen in the teechart examples\application1 beacuase the window is not opened there as well.

Please help,
Avi

Re: Tools add

Posted: Mon Sep 22, 2014 8:22 am
by yeray
Hello Avi,

The majority of tools in the demo are added at runtime and I've opened the Swing precompiled demo shipped with TeeChart Java Suite with sources v3.2014.0519 (\Examples\Swing\Features\TeeChart.Features.jar) and I moved along all the tools section without finding errors.
2014-09-22_1018.png
2014-09-22_1018.png (219.28 KiB) Viewed 40522 times
Am I missing anything?

Re: Tools add

Posted: Mon Sep 22, 2014 1:45 pm
by 17470153
hi Yeray,
In \Examples\Swing\Features\TeeChart.Features.jar
Go to whatever example you want - In the Commander --> Edit --> Tools --> Add - is not opening.

Avi

Re: Tools add

Posted: Tue Sep 23, 2014 12:06 pm
by yeray
Hello,

I see SeriesRegion.gif was missing in that build and it causes the Tools Gallery to fail.
Put this file into the "\src\Swing\com\steema\teechart\tools\icons" folder to fix it.
SeriesRegion.gif
SeriesRegion.gif (944 Bytes) Viewed 40499 times