Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: Peter Cheung Newsgroups: comp.lang.java.programmer Subject: Re: JOutlookBar Date: Thu, 26 Apr 2012 20:17:41 -0700 (PDT) Organization: http://groups.google.com Lines: 38 Message-ID: <7588566.806.1335496661608.JavaMail.geo-discussion-forums@pbqv7> References: <33049662.264.1335479370702.JavaMail.geo-discussion-forums@pbcnk4> <15997725.898.1335482389670.JavaMail.geo-discussion-forums@pbbps5> NNTP-Posting-Host: 210.5.164.14 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1335496662 9339 127.0.0.1 (27 Apr 2012 03:17:42 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 27 Apr 2012 03:17:42 +0000 (UTC) In-Reply-To: <15997725.898.1335482389670.JavaMail.geo-discussion-forums@pbbps5> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=210.5.164.14; posting-account=10LjMwkAAAAVcy8G3B3qqGRpk0olXjxD User-Agent: G2/1.0 Xref: csiph.com comp.lang.java.programmer:13937 Lew=E6=96=BC 2012=E5=B9=B44=E6=9C=8827=E6=97=A5=E6=98=9F=E6=9C=9F=E4=BA=94U= TC+8=E4=B8=8A=E5=8D=887=E6=99=8219=E5=88=8649=E7=A7=92=E5=AF=AB=E9=81=93=EF= =BC=9A > On Thursday, April 26, 2012 3:29:30 PM UTC-7, Peter Cheung wrote: > > http://www.youtube.com/watch?v=3Dp6PzTWYgezM > > how to make swing [sic] timer run faster? > > I use swing [sic] timer to draw the animation, but it runs slowly. >=20 > Please provide code. >=20 > Best is to prepare a Simple, Self-Contained Compilable Example. > http://sscce.org/ >=20 > Unless you show us the code, here in the newsgroup, in an example that is= olates the issue, it can be difficult to diagnose your problem. >=20 > I would need to see how you're using the timer now to see what might be w= rong. 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 othe= r demands on the system (e.g., from the video recording software), or you s= imply might not have enough computing power to run it faster.=20 >=20 > The solutions for those issues, if any of them pertain, is to make your c= ode thread-safe, take things off the EDT, shut down other software and serv= ices while you record your video, or use a faster computer, respectively. >=20 > --=20 > 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