Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #13937

Re: JOutlookBar

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 <cmk128@gmail.com>
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> (permalink)
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

Show key headers only | View raw


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 | NextPrevious in thread | Next in thread | Find similar | Unroll thread


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