The Artima Developer Community
Sponsored Link

Java Answers Forum
Timer problem

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Tim

Posts: 1
Nickname: irish
Registered: Aug, 2003

Timer problem Posted: Aug 7, 2003 4:29 AM
Reply to this message Reply
Advertisement
I am developing an application that renders real time data. I am using JInternalFrames to provide a set of subscreens that will render multiple live feeds simultaneously. Each of these JInternalFrames implement the runnable interface and instaniates a 'Graph' class which extends panel and inturn implements a timer that draws the graph through its repaint method.
This works fine when there is only one of the JInternalFrames on the screen at a time, however a problem arises when more that one is placed on the screen. The graphs are getting drawn at a much slower rate (almost half the speed). This leads me to believe that only one timer is doing all the work, even though each subscreen is a thread that implements its own timer.

Could anyone see why this would be the case (if ye can follow what im on about)??

Topic: array problems! Previous Topic   Next Topic Topic: Moving images on JPanel

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use