TeeChart for Java (NetBeans, Eclipse, Android Studio, etc)
-
avi
- Newbie
![Newbie Newbie](./images/ranks/1star.gif)
- Posts: 2
- Joined: Mon Sep 08, 2014 12:00 am
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 Site Admin](./images/ranks/6stars.gif)
- Posts: 9562
- Joined: Tue Dec 05, 2006 12:00 am
- Location: Girona, Catalonia
-
Contact:
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](./download/file.php?id=4616&sid=cfaecc7328da399908acf1ac628c6ef2)
- 2014-09-22_1018.png (219.28 KiB) Viewed 31689 times
Am I missing anything?
-
avi
- Newbie
![Newbie Newbie](./images/ranks/1star.gif)
- Posts: 2
- Joined: Mon Sep 08, 2014 12:00 am
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 Site Admin](./images/ranks/6stars.gif)
- Posts: 9562
- Joined: Tue Dec 05, 2006 12:00 am
- Location: Girona, Catalonia
-
Contact:
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](./download/file.php?id=4620&sid=cfaecc7328da399908acf1ac628c6ef2)
- SeriesRegion.gif (944 Bytes) Viewed 31666 times