Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #13937
| From | Peter Cheung <cmk128@gmail.com> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: JOutlookBar |
| Date | 2012-04-26 20:17 -0700 |
| Organization | http://groups.google.com |
| Message-ID | <7588566.806.1335496661608.JavaMail.geo-discussion-forums@pbqv7> (permalink) |
| References | <33049662.264.1335479370702.JavaMail.geo-discussion-forums@pbcnk4> <15997725.898.1335482389670.JavaMail.geo-discussion-forums@pbbps5> |
Lew於 2012年4月27日星期五UTC+8上午7時19分49秒寫道: > On Thursday, April 26, 2012 3:29:30 PM UTC-7, Peter Cheung wrote: > > http://www.youtube.com/watch?v=p6PzTWYgezM > > how to make swing [sic] timer run faster? > > I use swing [sic] timer to draw the animation, but it runs slowly. > > Please provide code. > > Best is to prepare a Simple, Self-Contained Compilable Example. > http://sscce.org/ > > Unless you show us the code, here in the newsgroup, in an example that isolates the issue, it can be difficult to diagnose your problem. > > I would need to see how you're using the timer now to see what might be wrong. It could be a concurrency issue, or you might be running other things on the Event Dispatch Thread (EDT) that you shouldn't, there might be other demands on the system (e.g., from the video recording software), or you simply might not have enough computing power to run it faster. > > The solutions for those issues, if any of them pertain, is to make your code thread-safe, take things off the EDT, shut down other software and services while you record your video, or use a faster computer, respectively. > > -- > Lew The Swing timer is in here: http://code.google.com/p/peter-swing/source/browse/trunk/src/com/peterswing/advancedswing/outlookbar/OutlookBarLayout.java I already set it to 1ms, but it still runs slowly. So the animation is not smooth. thanks
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
JOutlookBar Peter Cheung <cmk128@gmail.com> - 2012-04-26 15:29 -0700
Re: JOutlookBar Lew <lewbloch@gmail.com> - 2012-04-26 16:19 -0700
Re: JOutlookBar Peter Cheung <cmk128@gmail.com> - 2012-04-26 20:17 -0700
Re: JOutlookBar Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-04-27 10:11 -0700
Re: JOutlookBar markspace <-@.> - 2012-04-27 12:33 -0700
Re: JOutlookBar Lew <lewbloch@gmail.com> - 2012-04-27 13:51 -0700
Re: JOutlookBar Peter Cheung <cmk128@gmail.com> - 2012-04-28 03:10 -0700
Re: JOutlookBar Arne Vajhøj <arne@vajhoej.dk> - 2012-04-28 18:03 -0400
Re: JOutlookBar Peter Cheung <cmk128@gmail.com> - 2012-04-28 03:06 -0700
Re: JOutlookBar Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-04-28 15:06 -0700
Re: JOutlookBar Lew <noone@lewscanon.com> - 2012-04-28 21:08 -0700
Re: JOutlookBar Peter Cheung <cmk128@gmail.com> - 2012-04-29 00:13 -0700
Re: JOutlookBar Peter Cheung <cmk128@gmail.com> - 2012-04-29 00:31 -0700
Re: JOutlookBar Lew <noone@lewscanon.com> - 2012-04-29 01:56 -0700
Re: JOutlookBar Peter Cheung <cmk128@gmail.com> - 2012-04-29 07:37 -0700
Re: JOutlookBar Patricia Shanahan <pats@acm.org> - 2012-04-29 07:51 -0700
Re: JOutlookBar Lew <noone@lewscanon.com> - 2012-04-29 12:01 -0700
Re: JOutlookBar Arne Vajhøj <arne@vajhoej.dk> - 2012-05-05 19:53 -0400
csiph-web