Jump to content
Software FX Community
ArtemC

Chart Listeners on a Timer

Recommended Posts

Hi,

I downloaded the ChartFX 7.0 Desktop trial and am trying to replace old charting component with it. Due to gui hierarchy of our client app the frame that holds the chart is set to invisible first, then all of the resources are cleared manually due to cross references and then the frame is disposed.

The Chart component receives the same key/mouse event that we use for closing an AWT exception is thrown. Here is the stack trace:

Exception in thread "AWT-EventQueue-0" java.awt.IllegalComponentStateException: component must be showing on the screen to determine its location

at java.awt.Component.getLocationOnScreen_NoTreeLock(Unknown Source)

at java.awt.Component.getLocationOnScreen(Unknown Source)

at com.softwarefx.sfxnet.internal.df.j(SourceFile:705)

at com.softwarefx.chartfx.desktop.internal.HighlightAttributes.a(SourceFile:212)

at com.softwarefx.chartfx.desktop.internal.Draw.h(SourceFile:788)

at com.softwarefx.sfxnet.internal.os.actionPerformed(SourceFile:1093)

at javax.swing.Timer.fireActionPerformed(Unknown Source)

at javax.swing.Timer$DoPostEvent.run(Unknown Source)

at java.awt.event.InvocationEvent.dispatch(Unknown Source)

at java.awt.EventQueue.dispatchEvent(Unknown Source)

at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForFilter(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)

Does anyone happen to have any idea on how to fix this?

Thanks.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...