Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 71560 invoked from network); 18 Dec 2010 15:52:30 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 18 Dec 2010 15:52:30 -0000 Received: (qmail 55897 invoked by uid 500); 18 Dec 2010 15:52:29 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 55561 invoked by uid 500); 18 Dec 2010 15:52:29 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 55552 invoked by uid 99); 18 Dec 2010 15:52:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 18 Dec 2010 15:52:28 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 18 Dec 2010 15:52:28 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 29F26238897D; Sat, 18 Dec 2010 15:52:08 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1050653 - /tomcat/trunk/webapps/examples/WEB-INF/jsp/applet/Clock2.java Date: Sat, 18 Dec 2010 15:52:08 -0000 To: dev@tomcat.apache.org From: markt@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101218155208.29F26238897D@eris.apache.org> Author: markt Date: Sat Dec 18 15:52:07 2010 New Revision: 1050653 URL: http://svn.apache.org/viewvc?rev=1050653&view=rev Log: Fix Eclipse warnings Modified: tomcat/trunk/webapps/examples/WEB-INF/jsp/applet/Clock2.java Modified: tomcat/trunk/webapps/examples/WEB-INF/jsp/applet/Clock2.java URL: http://svn.apache.org/viewvc/tomcat/trunk/webapps/examples/WEB-INF/jsp/applet/Clock2.java?rev=1050653&r1=1050652&r2=1050653&view=diff ============================================================================== --- tomcat/trunk/webapps/examples/WEB-INF/jsp/applet/Clock2.java (original) +++ tomcat/trunk/webapps/examples/WEB-INF/jsp/applet/Clock2.java Sat Dec 18 15:52:07 2010 @@ -42,8 +42,8 @@ public class Clock2 extends Applet imple Color handColor; // Color of main hands and dial Color numberColor; // Color of second hand and numbers + @Override public void init() { - int x,y; lastxs = lastys = lastxm = lastym = lastxh = lastyh = 0; formatter = new SimpleDateFormat ("EEE MMM dd hh:mm:ss yyyy", Locale.getDefault()); currentDate = new Date(); @@ -101,6 +101,7 @@ public class Clock2 extends Applet imple } // Paint is the main part of the program + @Override public void paint(Graphics g) { int xh, yh, xm, ym, xs, ys, s = 0, m = 10, h = 10, xcenter, ycenter; String today; @@ -179,34 +180,40 @@ public class Clock2 extends Applet imple currentDate=null; } + @Override public void start() { timer = new Thread(this); timer.start(); } + @Override public void stop() { timer = null; } + @Override public void run() { Thread me = Thread.currentThread(); while (timer == me) { try { - Thread.currentThread().sleep(100); + Thread.sleep(100); } catch (InterruptedException e) { } repaint(); } } + @Override public void update(Graphics g) { paint(g); } + @Override public String getAppletInfo() { return "Title: A Clock \nAuthor: Rachel Gollub, 1995 \nAn analog clock."; } + @Override public String[][] getParameterInfo() { String[][] info = { {"bgcolor", "hexadecimal RGB number", "The background color. Default is the color of your browser."}, --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org