Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: Roedy Green Newsgroups: comp.lang.java.gui Subject: Re: pls hlep, can't get output Date: Sun, 30 Oct 2011 22:21:06 -0700 Organization: Canadian Mind Products Lines: 31 Message-ID: References: <33f44292-1f4f-4084-acee-259e633dbb59@x16g2000prd.googlegroups.com> Reply-To: Roedy Green NNTP-Posting-Host: Z2l1DcCELS0rATq8NqV4Sw.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 X-Newsreader: Forte Agent 6.00/32.1186 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.gui:4720 On Mon, 17 Oct 2011 21:07:09 -0700 (PDT), kk wrote, quoted or indirectly quoted someone who said : >while(true){ > > > > g.drawLine(startX,startY,endX,endY); > newpoint(); > // >this.repaint(startX,startY,endX,endY); > try{ > Thread.sleep(1000); > }catch(Exception e){} I have enhanced the entry at http://mindprod.com/jgloss/animation.html I think you will find the example very useful. You can start with it and gradually morph it to what you want it to do. It is a complete program that bounces a square diagonally up and down. -- Roedy Green Canadian Mind Products http://mindprod.com It's difficult to be rigorous about whether a machine really knows, thinks, etc., because we’re hard put to define these things. We understand human mental processes only slightly better than a fish understands swimming. ~ John McCarthy (born: 1927-09-04 died: 2011-10-23 at age: 84). Inventor of the term AI (Artificial Intelligence), the short-circuit OR operator (|| in Java), and LISP (LIst Processing Language) that makes EMACS (Extensible MACro System) so addictive.