Tools add

TeeChart for Java (NetBeans, Eclipse, Android Studio, etc)
Post Reply
avi
Newbie
Newbie
Posts: 2
Joined: Mon Sep 08, 2014 12:00 am

Tools add

Post by avi » Sun Sep 21, 2014 7:02 am

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

Yeray
Site Admin
Site Admin
Posts: 8703
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Tools add

Post by Yeray » Mon Sep 22, 2014 8:22 am

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 2614 times
Am I missing anything?
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

avi
Newbie
Newbie
Posts: 2
Joined: Mon Sep 08, 2014 12:00 am

Re: Tools add

Post by avi » Mon Sep 22, 2014 1:45 pm

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

Yeray
Site Admin
Site Admin
Posts: 8703
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Tools add

Post by Yeray » Tue Sep 23, 2014 12:06 pm

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 2591 times
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply